1 2 3
set(CMAKE_UNITY_BUILD ON) set(CMAKE_UNITY_BUILD_BATCH_SIZE 2) add_executable(main main.cpp some_source_file_1.cpp some_source_file_2.cpp some_source_file_3.cpp)