[CMake] VS resource compiler preprocessor defines

Andreas Pakulat apaku at gmx.de
Tue Jan 18 11:24:57 EST 2011


On 18.01.11 15:01:13, "Sören Freudiger" wrote:
> hmm.. okay. That means I have to set the target properties for the cxx files like this:
> 
> 
> add_executable( ${MY_PROJECT} WIN32 ${SOURCE_FILES} )
> set_target_properties( ${MY_PROJECT} PROPERTIES COMPILE_DEFINITIONS ${MY_CXX_PRE_DEFS}) 
> 
> with MY_CXX_PRE_DEFS: DEF1;DEF2;DEF3

Either this, or using a cmake list as MY_CXX_PRE_DEFS.
 
> But what's about the rc defines? Do I have to set the target properties for each file???

set_source_files_properties takes a list of files, so you can specify all
.rc files that should get different flags there.

Andreas

-- 
Advancement in position.


More information about the CMake mailing list