[CMake] .h file preprocessor definition
Pau Garcia i Quiles
pgquiles at elpauer.org
Sun Nov 22 09:54:04 EST 2009
On Sun, Nov 22, 2009 at 6:53 AM, Alex H <aditya15417 at hotmail.com> wrote:
> 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
More information about the CMake
mailing list