[CMake] .h file preprocessor definition

Alex H aditya15417 at hotmail.com
Sun Nov 22 00:53:49 EST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091122/eef6a991/attachment.htm>


More information about the CMake mailing list