add_definitions() per target?

Dirk Mueller mueller at kde.org
Wed Apr 26 16:48:29 CEST 2006


Hi, 

suppose I have one source file that is compiled with -DFOO=1 for one target 
(app_foo), and with -DBAR=1 for another target (app_bar) in the same 
CMakeLists.txt. 

How do I do that? add_definitions() seems to be applied to all targets in one 
CMakeLists.txt.

-- 
Dirk//\


More information about the Kde-buildsystem mailing list