[Build] Enhanced Build System

Added additional build options:

BUILD_MANGOSD
BUILD_REALMD

ALSO DECOUPLED BUILD_TOOLS

All three can now be built separately from each other

EasyBuild has been update to support the extra options
This commit is contained in:
Antz 2016-09-15 00:51:25 +01:00 committed by Antz
parent 068c67b932
commit c4c83f5b58
3 changed files with 37 additions and 11 deletions

View file

@ -19,8 +19,10 @@
# Needs to link against mangos_world.lib
if(WIN32)
link_directories("${CMAKE_BINARY_DIR}/src/mangosd/${CMAKE_CFG_INTDIR}")
include_directories(${CMAKE_SOURCE_DIR}/dep/include)
if(BUILD_MANGOSD OR BUILD_TOOLS)
link_directories("${CMAKE_BINARY_DIR}/src/mangosd/${CMAKE_CFG_INTDIR}")
include_directories(${CMAKE_SOURCE_DIR}/dep/include)
endif()
endif()
# Build the mangos framework library
@ -29,17 +31,21 @@ add_subdirectory(framework)
# Build the mangos shared library
add_subdirectory(shared)
# Build the mangos game library
add_subdirectory(game)
# Build the mangos realm authentication server
add_subdirectory(realmd)
if(BUILD_REALMD)
add_subdirectory(realmd)
endif()
# Build the mangos world server
add_subdirectory(mangosd)
if(BUILD_MANGOSD)
# Build the mangos game library
add_subdirectory(game)
# Build the selected modules
add_subdirectory(modules)
# Build the mangos world server
add_subdirectory(mangosd)
# Build the selected modules
add_subdirectory(modules)
endif()
# If we want the tools for map/vmap/mmap extraction
if(BUILD_TOOLS)