[CMake] -D constants

stephan ripke flappinski at web.de
Mon Mar 31 15:36:33 EDT 2008


Hello,
I am a cmake-beginner and I want to "translate" my old project for use with
cmake:
1) I brought some constants with the preprocessor from the Makefile into my
sourcecode (e.g.: g++ -Dconstant=10 main.cpp). How do I do something like
this with cmake?
2) Are there constants like "Windows" "Unix" "Linux", so
the compiling of my project could react depending on the system?

Sorry for these beginner-questions, but I did not find these solutions on
the website...

Thanks,
Stephan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080331/7f05cc9e/attachment.htm>


More information about the CMake mailing list