Refactored build into multiple cmake projects