Descent3/netgames/coop/CMakeLists.txt

19 lines
684 B
CMake
Raw Normal View History

set(HEADERS
coop.h
coopstr.h)
set(CPPS coop.cpp)
2024-04-16 03:43:29 +00:00
set(NETGAME_MODULE coop)
2024-04-16 03:43:29 +00:00
add_library(${NETGAME_MODULE} MODULE ${CPPS} ${HEADERS})
set_target_properties(${NETGAME_MODULE} PROPERTIES CXX_VISIBILITY_PRESET "hidden")
2024-04-16 03:43:29 +00:00
set_target_properties(${NETGAME_MODULE} PROPERTIES PREFIX "")
set_target_properties(${NETGAME_MODULE} PROPERTIES SUFFIX ".d3m")
set_target_properties(${NETGAME_MODULE} PROPERTIES LIBRARY_OUTPUT_NAME "co-op")
set_target_properties(${NETGAME_MODULE} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "$<TARGET_FILE_DIR:Descent3>/netgames")
2024-04-16 03:43:29 +00:00
target_link_libraries(${NETGAME_MODULE} PRIVATE
dmfc
)
install(TARGETS "${NETGAME_MODULE}" DESTINATION ${CMAKE_INSTALL_LIBDIR}/netgames)