mirror of
https://github.com/mangosfour/server.git
synced 2025-12-31 13:37:07 +00:00
[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:
parent
068c67b932
commit
c4c83f5b58
3 changed files with 37 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue