Re: [CMake] .h file preprocessor definition

2009-11-22 Thread Mike Jackson
http://www.cmake.org/Wiki/BuildingWinDLLI think is what you want to read. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer D

Re: [CMake] .h file preprocessor definition

2009-11-22 Thread Pau Garcia i Quiles
On Sun, Nov 22, 2009 at 6:53 AM, Alex H 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

[CMake] .h file preprocessor definition

2009-11-21 Thread Alex H
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 a