mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
Big update.
This commit is contained in:
@@ -39,6 +39,7 @@ set("AC_MODULE_LIST" "")
|
||||
set("AC_SCRIPTS_LIST" "")
|
||||
set(MOD_ELUNA_FOUND 0)
|
||||
set(MOD_ELUNA_PATH "")
|
||||
set(MOD_PLAYERBOTS_FOUND 0)
|
||||
|
||||
foreach(include ${AC_ADD_SCRIPTS_INCLUDE})
|
||||
set("AC_SCRIPTS_INCLUDES" "#include \"${include}\"\n${AC_SCRIPTS_INCLUDES}")
|
||||
@@ -83,6 +84,16 @@ foreach(SOURCE_MODULE ${MODULES_MODULE_LIST})
|
||||
ConfigureElunaModule(${SOURCE_MODULE})
|
||||
endif()
|
||||
|
||||
if (SOURCE_MODULE MATCHES "mod-playerbots")
|
||||
set(MOD_PLAYERBOTS_FOUND 1)
|
||||
target_compile_options(database
|
||||
PRIVATE
|
||||
-DMOD_PLAYERBOTS)
|
||||
target_compile_options(game-interface
|
||||
INTERFACE
|
||||
-DMOD_PLAYERBOTS)
|
||||
endif()
|
||||
|
||||
# Build the Graph values
|
||||
if(${MODULE_MODULE_VARIABLE} MATCHES "dynamic")
|
||||
GetProjectNameOfModuleName(${SOURCE_MODULE} MODULE_SOURCE_PROJECT_NAME)
|
||||
@@ -282,6 +293,7 @@ add_library(modules STATIC
|
||||
target_link_libraries(modules
|
||||
PRIVATE
|
||||
acore-core-interface
|
||||
mysql
|
||||
PUBLIC
|
||||
game-interface)
|
||||
|
||||
@@ -350,6 +362,12 @@ target_compile_options(modules
|
||||
INTERFACE
|
||||
-DCONFIG_FILE_LIST=$<1:"${CONFIG_LIST}">)
|
||||
|
||||
if (MOD_PLAYERBOTS_FOUND)
|
||||
target_compile_options(modules
|
||||
PRIVATE
|
||||
-DMOD_PLAYERBOTS)
|
||||
endif()
|
||||
|
||||
if (MOD_ELUNA_FOUND)
|
||||
if (APPLE)
|
||||
target_compile_definitions(modules
|
||||
|
||||
Reference in New Issue
Block a user