mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-23 12:08:56 +00:00
280dd43636
Replaced CMAKE_BINARY_DIR with target's directory expression generator.
23 lines
645 B
CMake
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'"
|
|
)
|