1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-06 02:37:47 +00:00
sapphire/src/world/CMakeLists.txt

50 lines
1.4 KiB
Text
Raw Normal View History

2018-12-13 12:40:42 +01:00
cmake_minimum_required( VERSION 3.0.2 )
cmake_policy( SET CMP0015 NEW )
2018-12-13 12:40:42 +01:00
project( world )
2017-08-08 13:53:47 +02:00
2018-12-13 12:40:42 +01:00
file( GLOB SERVER_SOURCE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
*.c*
Actor/*.c*
Action/*.c*
DebugCommand/*.c*
Event/*.c*
Inventory/*.c*
Linkshell/*.c*
Manager/*.c*
Math/*.c*
Network/*.c*
Network/Handlers/*.c*
Network/PacketWrappers/*.c*
Script/*.c*
StatusEffect/*.c*
2018-12-01 18:18:29 +11:00
Territory/*.c*
Territory/Housing/*.c*)
2017-08-08 13:53:47 +02:00
2018-12-13 12:40:42 +01:00
add_executable( world ${SERVER_SOURCE_FILES} )
2017-08-08 13:53:47 +02:00
2018-12-13 12:40:42 +01:00
set_target_properties( world PROPERTIES
CXX_STANDARD 17
2018-09-22 15:04:18 +02:00
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS ON
ENABLE_EXPORTS ON
WINDOWS_EXPORT_ALL_SYMBOLS ON
RUNTIME_OUTPUT_DIRECTORY_DEBUG "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/"
RUNTIME_OUTPUT_DIRECTORY_RELEASE "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/"
RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/"
RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/"
VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/"
2018-12-13 12:40:42 +01:00
)
2017-08-08 13:53:47 +02:00
2018-03-06 22:22:19 +01:00
2018-12-13 12:40:42 +01:00
target_link_libraries( world PUBLIC common )
target_include_directories( world PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" )
2018-09-20 23:31:38 +02:00
2018-09-22 13:07:20 +02:00
if (UNIX)
2018-12-13 12:40:42 +01:00
# cotire( world )
target_link_libraries( world PUBLIC stdc++fs )
2018-10-26 19:28:34 +02:00
else()
2018-12-13 12:40:42 +01:00
target_link_libraries( world PUBLIC mysql )
2018-09-24 09:03:29 -04:00
endif()