mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
CMake: Fix output dir for DLLs, also default to Release dir for non-debug builds
This commit is contained in:
parent
60232425bb
commit
b0479ce200
1 changed files with 5 additions and 3 deletions
|
@ -407,8 +407,10 @@ set(Server-Header
|
||||||
add_library(game SHARED ${Game-Source} ${Game-Header})
|
add_library(game SHARED ${Game-Source} ${Game-Header})
|
||||||
set_target_properties(game PROPERTIES
|
set_target_properties(game PROPERTIES
|
||||||
PREFIX ""
|
PREFIX ""
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Release/baseq2
|
||||||
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Release/baseq2
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug/baseq2
|
||||||
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug/baseq2
|
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug/baseq2
|
||||||
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release/baseq2
|
|
||||||
)
|
)
|
||||||
target_link_libraries(game ${yquake2LinkerFlags})
|
target_link_libraries(game ${yquake2LinkerFlags})
|
||||||
|
|
||||||
|
@ -416,8 +418,8 @@ target_link_libraries(game ${yquake2LinkerFlags})
|
||||||
add_executable(quake2 ${Client-Source} ${Client-Header} ${Platform-Specific-Source} ${Backends-Generic-Source} ${Backends-Generic-Header})
|
add_executable(quake2 ${Client-Source} ${Client-Header} ${Platform-Specific-Source} ${Backends-Generic-Source} ${Backends-Generic-Header})
|
||||||
set_target_properties(quake2 PROPERTIES
|
set_target_properties(quake2 PROPERTIES
|
||||||
PREFIX ""
|
PREFIX ""
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Release
|
||||||
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug
|
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug
|
||||||
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||||
|
@ -431,8 +433,8 @@ add_executable(q2ded ${Server-Source} ${Server-Header} ${Platform-Specific-Sourc
|
||||||
set_target_properties(q2ded PROPERTIES
|
set_target_properties(q2ded PROPERTIES
|
||||||
PREFIX ""
|
PREFIX ""
|
||||||
COMPILE_DEFINITIONS "DEDICATED_ONLY"
|
COMPILE_DEFINITIONS "DEDICATED_ONLY"
|
||||||
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Release
|
||||||
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug
|
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug
|
||||||
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||||
|
|
Loading…
Reference in a new issue