CMakeLists.txt 900 B

123456789101112131415161718192021222324
  1. cmake_minimum_required(VERSION 3.0)
  2. project(PulsarServer)
  3. set(TARGET server)
  4. set(TARGET_HEADER_FILES include/action.h include/client.h include/conf.h include/erreur.h include/exec.h include/game.h
  5. include/ipc.h include/message.h include/network.h include/parser.h include/private.h include/plugins.h
  6. include/public.h include/server.h)
  7. add_executable(${TARGET} main.c init.c plugins.c exec.c ipc.c client.c message.c parser.c map.c map_parser.c bouvier.c
  8. game.c time.c pulse.c objects.c network.c network_connect.c ${TARGET_HEADER_FILES})
  9. target_include_directories(${TARGET} PRIVATE include)
  10. if (ENABLE_PASCAL)
  11. target_compile_definitions(${TARGET} PRIVATE -DENABLE_GPC)
  12. target_link_library(${TARGET} gpc)
  13. endif()
  14. target_compile_options(${TARGET} PRIVATE -rdynamic)
  15. target_link_libraries(${TARGET} pulsarnet)
  16. install(TARGETS ${TARGET} RUNTIME DESTINATION "bin")