If I have a .h file and I want to create a library using that .h file and some
other file, how can I set the preprocessor definition to some FLAG?
So far I think the way to go is the following:
set_source_files_properties(vehicle.h PROPERTIES COMPILE_FLAGS "-DPROJECT")
is this right? I tried it and it doesn't work
_________________________________________________________________
New Windows 7: Find the right PC for you. Learn more.
http://windows.microsoft.com/shop
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake