From 7459e8474fbd85f2f16fca21bcfe96d4636a46ee Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Tue, 20 Dec 2022 16:55:06 +0100 Subject: [PATCH] project-template: make config_generator_project future proof The upcoming version of the config generator script package will need more files to be copied into the build directory. This change simply copies all files and does not rely on a particular structure. --- cmake/config_generator_project.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/config_generator_project.cmake b/cmake/config_generator_project.cmake index 87b381f..1bd7b2f 100644 --- a/cmake/config_generator_project.cmake +++ b/cmake/config_generator_project.cmake @@ -22,9 +22,7 @@ find_package(ConfigGenerator 02.00 REQUIRED) set(DESTDIR share/ConfigGenerator-${PROJECT_NAME}-${${PROJECT_NAME}_MAJOR_VERSION}-${${PROJECT_NAME}_MINOR_VERSION}) # copy all script files from config generator to our build directory -file(GLOB scripts RELATIVE ${ConfigGenerator_DIR} ${ConfigGenerator_DIR}/*.sh ${ConfigGenerator_DIR}/*.py - ${ConfigGenerator_DIR}/*.inc ${ConfigGenerator_DIR}/ConfigGenerator/*.py - ${ConfigGenerator_DIR}/TestFacility/*.py) +file(GLOB_RECURSE scripts RELATIVE ${ConfigGenerator_DIR} ${ConfigGenerator_DIR}/*) foreach(script ${scripts}) configure_file("${ConfigGenerator_DIR}/${script}" "${PROJECT_BINARY_DIR}/${script}" COPYONLY) endforeach() -- GitLab