summaryrefslogtreecommitdiff
path: root/src/cmake/ac_macros.cmake
diff options
context:
space:
mode:
authorayase <137056643@qq.com>2018-07-20 03:50:30 +0800
committerBarbz <BarbzYHOOL@users.noreply.github.com>2018-07-19 21:50:29 +0200
commitd29a1a330018b89ee608aa27e500068f5310ed2a (patch)
treed01c2010842d4b0390617af4e2ebb0ceabbf99ed /src/cmake/ac_macros.cmake
parent8b1f2ece8ae7f3eb4f885c293f1225ea1c216793 (diff)
Core: Easy module conf creation & reload (#931)
* Change the read method of the config of the module.Developers can now easily read the config file in cmake. e.g. AC_ADD_CONFIG_FILE("${CMAKE_CURRENT_LIST_DIR}/conf/my_first_module.conf.dist") * Update Master.h * Update cs_reload.cpp Command: `.reload config` can now reload the config file of all modules #981
Diffstat (limited to 'src/cmake/ac_macros.cmake')
-rw-r--r--src/cmake/ac_macros.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmake/ac_macros.cmake b/src/cmake/ac_macros.cmake
index 60c415ab45..d107351e57 100644
--- a/src/cmake/ac_macros.cmake
+++ b/src/cmake/ac_macros.cmake
@@ -19,3 +19,11 @@ MACRO(AC_ADD_SCRIPT_LOADER script_dec include)
endif()
endif()
ENDMACRO()
+
+#
+#AC_ADD_CONFIG_FILE
+#
+MACRO(AC_ADD_CONFIG_FILE configFilePath)
+ CU_GET_GLOBAL("MODULE_CONFIG_FILE_LIST")
+ CU_ADD_GLOBAL("MODULE_CONFIG_FILE_LIST" "${configFilePath}")
+ENDMACRO() \ No newline at end of file