Descent3/netcon/lanclient/CMakeLists.txt
Azamat H. Hackimov 280dd43636 Fix search paths on Hog generation
Replaced CMAKE_BINARY_DIR with target's directory expression generator.
2024-05-07 21:18:40 +03:00

23 lines
645 B
CMake

set(CPPS lanclient.cpp)
add_library(Direct_TCP_IP MODULE ${CPPS})
set_target_properties(Direct_TCP_IP PROPERTIES PREFIX "")
set_target_properties(Direct_TCP_IP PROPERTIES OUTPUT_NAME "Direct TCP~IP")
target_link_libraries(Direct_TCP_IP PRIVATE
inetfile
$<$<PLATFORM_ID:Windows>:
ws2_32
>
)
add_custom_target(Direct_TCP_IP_Hog
COMMAND $<TARGET_FILE:HogMaker>
"$<TARGET_FILE_DIR:Descent3>/online/Direct TCP~IP.d3c"
"${CMAKE_SOURCE_DIR}/netcon/lanclient/TCP_IP.d3c.txt"
"${CMAKE_SOURCE_DIR}/scripts/data/fullhog/"
"$<TARGET_FILE_DIR:Direct_TCP_IP>"
DEPENDS Direct_TCP_IP HogMaker
COMMENT "Generate 'Direct TCP~IP.d3c'"
)