Use ADD_DEFINITIONS:
ADD_DEFINITIONS(-DWIN32 -DWINDOWS)
- Stefan
Mark Wyszomierski schrieb:
Hi,
How do we define a preprocessor statement - in win32 projects you
usually need to see the following in the C/C++ -> Preprocessor
statements section:
_WIN32, _WINDOWS ...etc....
so in the CMakeLists.txt, what syntax is used to put that into the
generated project files?
Thanks,
Mark
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake