How do I do to add a definition for just one of the executables in a CMakeLists.txt-file and<br>only for one of its configs?<br><br>I want to define DEBUG for foo.exe but not for bar.exe, and I want DEBUG only to be set for
<br>the Debug configuration of that executable.<br><br>I use Visual Studio 2005 and my CMakeLists.txt looks essentially like this:<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">Project(Foobar C CXX)
</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">add_executable(foo foo.c)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">add_executable(bar bar.c)<br></span></div><br>Cheers<span style="font-family: courier new,monospace;"></span><br><span style="font-family: courier new,monospace;"></span>