Hello,<div><br></div><div>I'm using CMake for Visual Studio as well as Makefiles for Linux. In windows, debug and release directories seem to be added for the executables.</div><div><br></div><div>I actually would like to do three things:</div>
<div><br></div><div>1) Test for a debug or release build</div><div>2) Name the executable created based on it's build. (myProgram_d.exe for debug, myProgram.exe for release.)</div><div>3) Place the output executables into the bin directory without debug and release directories.</div>
<div><br></div><div>I have not found a way to test for the build type but I have tried these together, and in various combinations:</div><div><div><br></div><div><div>set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/../Demo/bin)</div>
<div>set(RUNTIME_OUTPUT_BINARY ${PROJECT_BINARY_DIR}/../Demo/bin)</div><div>set(RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_BINARY_DIR}/../Demo/bin)</div><div>set(RUNTIME_OUTPUT_DIRECTORY_RELEASE ${PROJECT_BINARY_DIR}/../Demo/bin)</div>
<div>set(RUNTIME_OUTPUT_NAME_DEBUG demo_d.exe)</div><div>set(RUNTIME_OUTPUT_NAME_RELEASE demo.exe)</div></div></div><div><br></div><div>The closest I can come are these executables:</div><div>Demo\bin\Debug\helloDemo.exe</div>
<div>Demo\bin\Release\helloDemo.exe</div><div><br></div><div>What I want is:</div><div>Demo\bin\demo_d.exe</div><div>Demo\bin\demo.exe</div><div><br></div><div>Any help or suggestions would be greatly appreciated!</div><div>
-Jim</div><div><br></div><div><br></div><div>P.S.</div><div>For anyone curious what my main CMakeLists.txt looks like, here it is:</div><div><a href="http://codepad.org/Yuev7TWJ">http://codepad.org/Yuev7TWJ</a></div><div>
<br></div>