I want to set the output executable using cmake. I've achieved this by using these:
SET( EXECUTABLE_OUTPUT_PATH ${dir}/bin )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin )
But the problem is now everything is set inside /bin including the binaries of all the libraries used in the project. I only want the executable created by my project to be inside /bin. How can I achieve this?