[CMake] Building two binaries from common source: different defines required

Vladimir Pouzanov farcaller at gmail.com
Mon Jan 14 05:35:10 EST 2008


I have a project consisting of two binaries build from same source (they do
differ in one .cpp file though).

Is it possible to set ADD_DEFINITIONS on per-executable basis somehow? I need to
add a define specifying which binary type is being built.



More information about the CMake mailing list