[CMake] Compile multiple-sources at a time?

Oliver kfsone Smith osmith at playnet.com
Thu Jan 19 17:09:43 EST 2012


I realize not every build environment supports the option, but is there 
a way to get CMake to generate Makefiles which aggregate source files, e.g.

$ g++ -pipe -o library.a lib1.cpp lib2.cpp lib3.cpp
$ g++ -pipe -o exeutable file1.cpp file2.cpp file3.cpp library.a


- Oliver



More information about the CMake mailing list