[CMake] Start compiles with cmake platform independently?

Brad King brad.king at kitware.com
Thu Jun 30 09:45:23 EDT 2005


wedekind wrote:
> CMake is a great Makefile-generator :) I do not know whether I have
> understood its purpose correctly, but is it possible to start compiles with
> cmake too? Cmake "knows" the compiler/maketool of the platform and all the
> flags and stuff. So it should only be logical to use cmake to run a build,
> right? It would make build-scripts more portable since they only need to
> call "cmake CMakeLists.txt" or something like that to build a project on
> different platforms...

If you want to drive a build from a command line in a cross-platform way 
look at the ctest executable's "--build-and-test" option.  Look in 
CMake/Source/CMakeLists.txt for examples of using this feature for testing.

-Brad


More information about the CMake mailing list