Descent3/netcon/lanclient/CMakeLists.txt

13 lines
414 B
CMake
Raw Normal View History

set(HEADERS lanclient.h)
set(CPPS lanclient.cpp)
2024-04-16 03:43:29 +00:00
set(NETGAME_MODULE "TCP_IP")
2024-04-16 03:43:29 +00:00
add_library(${NETGAME_MODULE} MODULE ${CPPS} ${HEADERS})
2024-04-16 03:43:29 +00:00
set_target_properties(${NETGAME_MODULE} PROPERTIES PREFIX "")
set_target_properties(${NETGAME_MODULE} PROPERTIES SUFFIX ".d3c")
target_link_libraries(${NETGAME_MODULE} inetfile)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(${NETGAME_MODULE} ws2_32)
endif()