macro(SET_OUTPUT_NAMES projname) if (UNIX) if(CMAKE_BUILD_TYPE STREQUAL "Debug") set_target_properties(${projname} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/Debug") endif() if(CMAKE_BUILD_TYPE STREQUAL "Release") set_target_properties(${projname} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/Release") endif() if(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") set_target_properties(${projname} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin/Relwithdeb") endif() endif() endmacro()