[CMake] ADD_DEFINITION for just one executable, one specific
config
Alexander Neundorf
a.neundorf-work at gmx.net
Thu Oct 26 06:51:29 EDT 2006
Hi,
Von: "Stefanos Carlström" <stefanos.carlstrom at gmail.com>
> How do I do to add a definition for just one of the executables in a
> CMakeLists.txt-file and
> only for one of its configs?
>
> I want to define DEBUG for foo.exe but not for bar.exe, and I want DEBUG
> only to be set for
> the Debug configuration of that executable.
>
> I use Visual Studio 2005 and my CMakeLists.txt looks essentially like
> this:
>
> Project(Foobar C CXX)
>
> add_executable(foo foo.c)
> add_executable(bar bar.c)
Does SET_TARGET_PROPERTIES(... COMPILE_FLAGS ... ) do what you want ?
Alex
--
GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist!
NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
More information about the CMake
mailing list