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 )
|
2017-08-17 23:48:47 +09:00
|
|
|
|
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 )
|
2017-08-17 23:48:47 +09:00
|
|
|
|
2018-09-20 23:31:38 +02:00
|
|
|
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake )
|
2017-09-13 11:46:17 +02:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Common and library path
|
2018-03-06 23:20:07 +01:00
|
|
|
set( LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/libraries" )
|
2017-09-13 11:46:17 +02:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
# Dependencies and compiler settings
|
|
|
|
include( "cmake/mysql.cmake" )
|
|
|
|
include( "cmake/compiler.cmake" )
|
2018-02-28 11:51:44 +01:00
|
|
|
include( "cmake/cotire.cmake" )
|
2017-09-13 18:06:31 -04:00
|
|
|
##############################
|
|
|
|
# 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 )
|
2017-09-13 18:06:31 -04:00
|
|
|
|
2017-09-13 11:46:17 +02:00
|
|
|
##########################################################################
|
2018-10-24 23:31:26 +11:00
|
|
|
add_subdirectory( "deps/datReader" )
|
|
|
|
add_subdirectory( "deps/mysqlConnector" )
|
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" )
|
2018-02-27 09:32:50 +01:00
|
|
|
#add_subdirectory("src/tools/pcb_reader")
|
|
|
|
#add_subdirectory("src/tools/event_object_parser")
|