X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=cmake%2Fcommon.cmake;h=ed13ccc7266ab826df0024bbbf99dc236a8e66b7;hb=9a737858056dae3348e4659ed5e9168d39f1b23a;hp=6465aafd15032bddf5dc65c4803c1dcbf021e8c0;hpb=ed512d6aae18909c85cc92f72930998433cbf3d1;p=apps%2Fapp-templates.git diff --git a/cmake/common.cmake b/cmake/common.cmake index 6465aaf..ed13ccc 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -21,17 +21,17 @@ #-------------------------------------------------------------------------- # WARNING: # Do not change this cmake template -# Customise your preferences in "./etc/config.cmake" +# Customise your preferences in "./conf.d/cmake/config.cmake" #-------------------------------------------------------------------------- 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/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/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 ${project_cmakefiles} ${home_cmakefiles} ${system_cmakefiles}) +foreach(file ${system_cmakefiles} ${home_cmakefiles} ${project_cmakefiles}) message(STATUS "Include: ${file}") include(${file}) endforeach() @@ -42,6 +42,11 @@ else() project_subdirs_add() endif(DEFINED PROJECT_SRC_DIR_PATTERN) +configure_files_in_dir(${PROJECT_APP_TEMPLATES_DIR}/${ENTRY_POINT}/template.d) +configure_files_in_dir($ENV{HOME}/.config/app-templates/scripts) +configure_files_in_dir(/etc/app-templates/scripts) + project_targets_populate() +remote_targets_populate() project_package_build() -project_closing_msg() \ No newline at end of file +project_closing_msg()