18 lines
523 B
Plaintext
18 lines
523 B
Plaintext
#----------------------------------------------------------------------------
|
|
# Copy all scripts to the build directory, i.e. the directory in which we
|
|
# build EXAMPLE_NAME. This is so that we can run the executable directly because it
|
|
# relies on these scripts being in the current working directory.
|
|
#
|
|
set(EXAMPLE_NAME_SCRIPTS
|
|
EXAMPLE_SCRIPT_LIST
|
|
)
|
|
|
|
foreach(_script ${EXAMPLE_NAME_SCRIPTS})
|
|
configure_file(
|
|
${PROJECT_SOURCE_DIR}/${_script}
|
|
${PROJECT_BINARY_DIR}/${_script}
|
|
COPYONLY
|
|
)
|
|
endforeach()
|
|
|