mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
CMake: Use a single output dir "release", like the official Makefile
This commit is contained in:
parent
a6b0796f03
commit
11750e8273
1 changed files with 11 additions and 17 deletions
|
@ -407,22 +407,18 @@ set(Server-Header
|
||||||
# Build the game dynamic library
|
# Build the game dynamic library
|
||||||
add_library(game MODULE ${Game-Source} ${Game-Header})
|
add_library(game MODULE ${Game-Source} ${Game-Header})
|
||||||
set_target_properties(game PROPERTIES
|
set_target_properties(game PROPERTIES
|
||||||
PREFIX ""
|
PREFIX ""
|
||||||
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug/baseq2
|
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release/baseq2
|
||||||
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug/baseq2
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release/baseq2
|
||||||
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release/baseq2
|
)
|
||||||
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release/baseq2
|
|
||||||
)
|
|
||||||
target_link_libraries(game ${yquake2LinkerFlags})
|
target_link_libraries(game ${yquake2LinkerFlags})
|
||||||
|
|
||||||
# Main Quake 2 executable
|
# Main Quake 2 executable
|
||||||
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_DEBUG ${CMAKE_BINARY_DIR}/Debug
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release
|
||||||
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release
|
)
|
||||||
)
|
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||||
target_link_libraries(quake2 ${yquake2LinkerFlags} ws2_32 winmm)
|
target_link_libraries(quake2 ${yquake2LinkerFlags} ws2_32 winmm)
|
||||||
else()
|
else()
|
||||||
|
@ -432,12 +428,10 @@ endif()
|
||||||
# Quake 2 Dedicated Server
|
# Quake 2 Dedicated Server
|
||||||
add_executable(q2ded ${Server-Source} ${Server-Header} ${Platform-Specific-Source})
|
add_executable(q2ded ${Server-Source} ${Server-Header} ${Platform-Specific-Source})
|
||||||
set_target_properties(q2ded PROPERTIES
|
set_target_properties(q2ded PROPERTIES
|
||||||
PREFIX ""
|
PREFIX ""
|
||||||
COMPILE_DEFINITIONS "DEDICATED_ONLY"
|
COMPILE_DEFINITIONS "DEDICATED_ONLY"
|
||||||
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug
|
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/release
|
||||||
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR}/Release
|
)
|
||||||
)
|
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||||
target_link_libraries(q2ded ${yquake2LinkerFlags} ws2_32 winmm)
|
target_link_libraries(q2ded ${yquake2LinkerFlags} ws2_32 winmm)
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in a new issue