1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-24 21:57:44 +00:00
sapphire/CMakeLists.txt

48 lines
1.7 KiB
Text
Raw Normal View History

2018-09-20 23:31:38 +02:00
cmake_policy( SET CMP0014 NEW )
cmake_minimum_required( VERSION 3.0.2 )
project( Sapphire )
2017-08-08 13:53:47 +02:00
2018-09-20 23:31:38 +02:00
set( CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin )
2018-09-20 23:31:38 +02:00
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin )
set( LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin )
set( EXECUTABLE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin )
2018-09-20 23:31:38 +02:00
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake )
##########################################################################
# Common and library path
2018-10-26 15:00:22 +02:00
set( LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/deps" )
##########################################################################
# Dependencies and compiler settings
include( "cmake/mysql.cmake" )
include( "cmake/compiler.cmake" )
include( "cmake/cotire.cmake" )
##############################
# Git #
##############################
2018-03-06 23:20:07 +01:00
include( GetGitRevisionDescription )
get_git_head_revision( GIT_REFSPEC GIT_SHA1 )
git_describe( VERSION --all --dirty=-d )
configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/src/common/Version.cpp.in"
"${CMAKE_CURRENT_SOURCE_DIR}/src/common/Version.cpp" @ONLY )
##########################################################################
add_subdirectory( "deps/datReader" )
add_subdirectory( "deps/mysqlConnector" )
2018-10-26 15:00:22 +02:00
add_subdirectory( "deps/zlib" )
2018-03-06 23:20:07 +01:00
add_subdirectory( "src/common" )
2017-12-18 14:45:15 +01:00
2018-03-06 23:20:07 +01:00
add_subdirectory( "src/servers" )
2018-10-24 12:56:41 +02:00
#add_subdirectory( "src/dbm" )
2018-03-06 22:22:19 +01:00
2018-10-26 22:14:12 +11:00
#add_subdirectory( "src/tools/exd_common_gen" )
#add_subdirectory( "src/tools/exd_struct_gen" )
#add_subdirectory( "src/tools/exd_struct_test" )
#add_subdirectory( "src/tools/quest_parser" )
#add_subdirectory( "src/tools/discovery_parser" )
#add_subdirectory( "src/tools/mob_parse" )
#add_subdirectory("src/tools/pcb_reader")
#add_subdirectory("src/tools/event_object_parser")