osb/source/server/CMakeLists.txt
2024-03-08 20:09:27 +11:00

30 lines
774 B
CMake

INCLUDE_DIRECTORIES (
${STAR_EXTERN_INCLUDES}
${STAR_CORE_INCLUDES}
${STAR_BASE_INCLUDES}
${STAR_PLATFORM_INCLUDES}
${STAR_GAME_INCLUDES}
)
SET (star_server_HEADERS
StarServerQueryThread.hpp
StarServerRconClient.hpp
StarServerRconThread.hpp
)
SET (star_server_SOURCES
StarServerQueryThread.cpp
StarServerRconClient.cpp
StarServerRconThread.cpp
main.cpp
)
ADD_EXECUTABLE (starbound_server
$<TARGET_OBJECTS:star_extern> $<TARGET_OBJECTS:star_core> $<TARGET_OBJECTS:star_base> $<TARGET_OBJECTS:star_game>
${star_server_HEADERS} ${star_server_SOURCES})
IF(STAR_PRECOMPILED_HEADERS)
TARGET_PRECOMPILE_HEADERS (starbound_server REUSE_FROM star_core)
ENDIF()
TARGET_LINK_LIBRARIES (starbound_server ${STAR_EXT_LIBS})