[CMake] impl. ADD_SCRIPTS macro for modules

and renamed old to ADD_SCRIPT_LOADER
This commit is contained in:
Yehonal
2016-08-11 14:57:25 +02:00
parent 7a1fe9b4f3
commit 34d4accb5b
10 changed files with 27 additions and 14 deletions

View File

@@ -30,9 +30,9 @@ set(scripts_STAT_SRCS
../game/AI/ScriptedAI/ScriptedFollowerAI.cpp
)
AZTH_ADD_SCRIPTS("Spell" "ScriptLoader.h")
AZTH_ADD_SCRIPTS("SC_Smart" "ScriptLoader.h")
AZTH_ADD_SCRIPTS("Command" "ScriptLoader.h")
AZTH_ADD_SCRIPT_LOADER("Spell" "ScriptLoader.h")
AZTH_ADD_SCRIPT_LOADER("SC_Smart" "ScriptLoader.h")
AZTH_ADD_SCRIPT_LOADER("Command" "ScriptLoader.h")
if(SCRIPTS)
include(World/CMakeLists.txt)
@@ -48,6 +48,12 @@ endif()
AZTH_GET_GLOBAL("AZTH_ADD_SCRIPTS_LIST")
AZTH_GET_GLOBAL("AZTH_ADD_SCRIPTS_INCLUDE")
AZTH_GET_GLOBAL("AZTH_SCRIPTS_SOURCES")
set(scripts_STAT_SRCS
${scripts_STAT_SRCS}
${AZTH_SCRIPTS_SOURCES}
)
set("AZTH_SCRIPTS_INCLUDES" "")