diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-08-16 18:33:46 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-08-16 18:47:52 +0200 |
commit | 9c71a765f0e4f53a6bbae5f550515b93eb9d7c53 (patch) | |
tree | 72dcc4a1048369f428d9c0e1b87cbb2dbb13408d /cmake/common.cmake | |
parent | 0013593d4289e0be2e6651980185e3e95fcb8726 (diff) |
Personal files inclusion now by projects.
Depending on file name you can include some files from your
home or system by project or globally
Change-Id: I1fef678073977633576a21893065e681b286646c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/common.cmake')
-rw-r--r-- | cmake/common.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake index 4e34fcd..1cec2a7 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -26,9 +26,9 @@ file(GLOB project_cmakefiles ${PROJECT_APP_TEMPLATES_DIR}/cmake/cmake.d/[0-9][0-9]-*.cmake) list(SORT project_cmakefiles) -file(GLOB home_cmakefiles $ENV{HOME}/.config/app-templates/cmake.d/[0-9][0-9]-*.cmake) +file(GLOB home_cmakefiles $ENV{HOME}/.config/app-templates/cmake.d/[0-9][0-9]-common-*.cmake $ENV{HOME}/.config/app-templates/cmake.d/[0-9][0-9]-${PROJECT_NAME}-*.cmake) list(SORT home_cmakefiles) -file(GLOB system_cmakefiles /etc/app-templates/cmake.d/[0-9][0-9]-*.cmake) +file(GLOB system_cmakefiles /etc/app-templates/cmake.d/[0-9][0-9]-common-*.cmake /etc/app-templates/cmake.d/[0-9][0-9]-${PROJECT_NAME}-*.cmake) list(SORT system_cmakefiles) foreach(file ${system_cmakefiles} ${home_cmakefiles} ${project_cmakefiles}) |