mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-23 03:58:59 +00:00
6972b649bb
Fix compilation and runtime errors.
32 lines
947 B
CMake
32 lines
947 B
CMake
set(CPPS
|
|
chat_api.cpp
|
|
mt_net.cpp
|
|
mtclient.cpp
|
|
mtgametrack.cpp
|
|
mtpilottracker.cpp
|
|
)
|
|
|
|
add_library(Parallax_Online MODULE ${CPPS})
|
|
set_target_properties(Parallax_Online PROPERTIES PREFIX "")
|
|
set_target_properties(Parallax_Online PROPERTIES CXX_VISIBILITY_PRESET "hidden")
|
|
set_target_properties(Parallax_Online PROPERTIES OUTPUT_NAME "Parallax Online")
|
|
target_link_libraries(Parallax_Online PRIVATE
|
|
ddio
|
|
inetfile
|
|
# $<$<PLATFORM_ID:Windows>:
|
|
# ws2_32
|
|
# >
|
|
)
|
|
|
|
add_custom_target(Parallax_Online_Hog
|
|
COMMAND $<TARGET_FILE:HogMaker>
|
|
"$<TARGET_FILE_DIR:Descent3>/online/Parallax Online.d3c"
|
|
"${CMAKE_SOURCE_DIR}/netcon/mtclient/Parallax_Online.d3c.txt"
|
|
"${CMAKE_SOURCE_DIR}/scripts/data/fullhog/"
|
|
"$<TARGET_FILE_DIR:Parallax_Online>"
|
|
|
|
DEPENDS Parallax_Online HogMaker
|
|
COMMENT "Generate 'Parallax Online.d3c'"
|
|
)
|
|
install(FILES "$<TARGET_FILE_DIR:Descent3>/online/Parallax Online.d3c" DESTINATION ${CMAKE_INSTALL_DATADIR}/online)
|