Descent3/netgames/entropy/CMakeLists.txt
Azamat H. Hackimov 44806e77f0 Restore proper module names for netgames
Using names as defined in Steam installation.
2024-10-27 22:04:00 +03:00

17 lines
746 B
CMake

set(HEADERS Entropy.h Entropystr.h EntropyAux.h)
set(CPPS EntropyBase.cpp EntropyPackets.cpp EntropyRoom.cpp)
set(NETGAME_MODULE entropy)
add_library(${NETGAME_MODULE} MODULE ${CPPS} ${HEADERS})
set_target_properties(${NETGAME_MODULE} PROPERTIES CXX_VISIBILITY_PRESET "hidden")
set_target_properties(${NETGAME_MODULE} PROPERTIES PREFIX "")
set_target_properties(${NETGAME_MODULE} PROPERTIES SUFFIX ".d3m")
set_target_properties(${NETGAME_MODULE} PROPERTIES LIBRARY_OUTPUT_NAME "entropy")
set_target_properties(${NETGAME_MODULE} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "$<TARGET_FILE_DIR:Descent3>/netgames")
target_link_libraries(${NETGAME_MODULE} PRIVATE
dmfc
)
install(TARGETS "${NETGAME_MODULE}" DESTINATION ${CMAKE_INSTALL_LIBDIR}/netgames)