mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
22 lines
519 B
CMake
22 lines
519 B
CMake
#
|
|
# AC_ADD_SCRIPT
|
|
#
|
|
MACRO(AC_ADD_SCRIPT path)
|
|
CU_ADD_GLOBAL("AC_SCRIPTS_SOURCES" "${path}")
|
|
ENDMACRO()
|
|
|
|
#
|
|
# AC_ADD_SCRIPT_LOADER
|
|
#
|
|
MACRO(AC_ADD_SCRIPT_LOADER script_dec include)
|
|
CU_ADD_GLOBAL("AC_ADD_SCRIPTS_LIST" "Add${script_dec}Scripts()\;")
|
|
|
|
|
|
if (NOT ${include} STREQUAL "")
|
|
CU_GET_GLOBAL("AC_ADD_SCRIPTS_INCLUDE")
|
|
if (NOT ";${AC_ADD_SCRIPTS_INCLUDE};" MATCHES ";${include};")
|
|
CU_ADD_GLOBAL("AC_ADD_SCRIPTS_INCLUDE" "${include}\;")
|
|
endif()
|
|
endif()
|
|
ENDMACRO()
|