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.
_______________________________________________
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

Reply via email to