mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-17 09:14:34 +00:00
feat(Core/DBUpdater): implement db auto update (#6576)
* feat(Core/DBUpdater): implement db auto update * 1 * 2 * 3 * Some minor improvements * add find bin for mysql 8.0 * lic Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -71,3 +71,18 @@ function(IsDynamicLinkingModulesRequired variable)
|
||||
endforeach()
|
||||
set(${variable} ${IS_REQUIRED} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
# Get list all modules
|
||||
function(GetModuleList)
|
||||
file(GLOB LOCALE_MODULE_LIST RELATIVE
|
||||
${CMAKE_SOURCE_DIR}/modules
|
||||
${CMAKE_SOURCE_DIR}/modules/*)
|
||||
|
||||
foreach(MODULE_DIR ${LOCALE_MODULE_LIST})
|
||||
if(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/modules/${MODULE_DIR}")
|
||||
set(MODULE_LIST__ ${MODULE_LIST__}${MODULE_DIR},)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
add_definitions(-DAC_MODULES_LIST=$<1:"${MODULE_LIST__}">)
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user