Update CMakeLists.txt

This commit is contained in:
Andrea Cavalli 2020-12-27 11:56:35 +01:00
parent 93f3831e49
commit 3df9f70d59

View File

@ -10,8 +10,11 @@ if (MSVC)
set(CMAKE_EXE_LINKER_FLAGS "/SUBSYSTEM:CONSOLE") set(CMAKE_EXE_LINKER_FLAGS "/SUBSYSTEM:CONSOLE")
endif() endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG .)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE .)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO .)
add_executable(${PROJECT_NAME} ${SOURCES}) add_executable(${PROJECT_NAME} ${SOURCES})
set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY .)
if (NOT WIN32) if (NOT WIN32)
target_link_libraries(${PROJECT_NAME} m) target_link_libraries(${PROJECT_NAME} m)
endif() endif()