openmohaa/code/server/CMakeLists.txt

21 lines
630 B
Text
Raw Permalink Normal View History

2024-11-30 00:36:33 +01:00
cmake_minimum_required(VERSION 3.12)
2023-06-17 01:44:38 +02:00
project(omohserver)
add_subdirectory("../fgame" "./fgame")
file(GLOB_RECURSE SOURCES_SERVER "./*.c*")
set(SOURCES_SERVER ${SOURCES_SERVER}
# Gamespy
"${CMAKE_SOURCE_DIR}/code/gamespy/sv_gamespy.c"
"${CMAKE_SOURCE_DIR}/code/gamespy/sv_gqueryreporting.c"
)
2023-08-16 18:13:47 +02:00
add_library(omohserver INTERFACE)
target_sources(omohserver INTERFACE ${SOURCES_SERVER})
target_compile_features(omohserver INTERFACE cxx_nullptr)
target_compile_features(omohserver INTERFACE c_variadic_macros)
target_link_libraries(omohserver INTERFACE qcommon qcommon_standalone)
target_link_libraries(omohserver INTERFACE gcd)