Skip to content

Commit 1aad891

Browse files
committed
Install template.yml to <install-dir>/share/
1 parent ca6fd00 commit 1aad891

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

fetchcontent/src/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,18 @@ install(
3131
COMPONENT bin
3232
)
3333

34+
35+
file(
36+
COPY
37+
template.yml
38+
DESTINATION
39+
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}
40+
)
41+
42+
install(
43+
FILES
44+
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/template.yml
45+
DESTINATION
46+
${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}
47+
)
48+

fetchcontent/tests/darts/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
execute_process(
22
COMMAND
33
cmake -E create_symlink
4-
"${PROJECT_SOURCE_DIR}/src/template.yml" # Old name
4+
"${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/template.yml" # Old name
55
"${CMAKE_CURRENT_BINARY_DIR}/template.yml" # New name
66
)
77

fetchcontent/tests/darts_default/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
execute_process(
22
COMMAND
33
cmake -E create_symlink
4-
"${PROJECT_SOURCE_DIR}/src/template.yml" # Old name
4+
"${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/template.yml" # Old name
55
"${CMAKE_CURRENT_BINARY_DIR}/template.yml" # New name
66
)
77

fetchcontent/tests/integration/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
execute_process(
22
COMMAND
33
cmake -E create_symlink
4-
"${PROJECT_SOURCE_DIR}/src/template.yml" # Old name
4+
"${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/template.yml" # Old name
55
"${CMAKE_CURRENT_BINARY_DIR}/template.yml" # New name
66
)
77

fetchcontent/tests/integration_default/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
execute_process(
22
COMMAND
33
cmake -E create_symlink
4-
"${PROJECT_SOURCE_DIR}/src/template.yml" # Old name
4+
"${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/template.yml" # Old name
55
"${CMAKE_CURRENT_BINARY_DIR}/template.yml" # New name
66
)
77

0 commit comments

Comments
 (0)