Files
dppbots/cmake/macros.cmake
Lyra 2bd126f46f
Some checks failed
Build / Build (push) Failing after 31s
Initial project setup
2026-05-31 22:33:57 -04:00

15 lines
620 B
CMake

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()