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)

Cheers
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to