mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 22:26:22 +00:00
feat(Core/Modules): add separated lib for modules (#9281)
This commit is contained in:
@@ -71,18 +71,3 @@ 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