Skip to content
Snippets Groups Projects
Commit 7459e847 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

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.
parent f70a0bf4
No related branches found
No related tags found
1 merge request!3update project template
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment