mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03:00
Tests: Add test for install(SCRIPT ... COMPONENT)
This commit is contained in:
1 parent
2201fb6f43
commit
11ca374b28
5 files changed
+9
No files matched your search
@@ -95,3 +95,4 @@ set(run_install_test_components 1)
|
||||
run_install_test(FILES-EXCLUDE_FROM_ALL)
|
||||
run_install_test(TARGETS-EXCLUDE_FROM_ALL)
|
||||
run_install_test(TARGETS-NAMELINK_COMPONENT)
|
||||
run_install_test(SCRIPT-COMPONENT)
|
||||
@@ -0,0 +1 @@
|
||||
check_installed([[^empty1.txt;empty2.txt$]])
|
||||
@@ -0,0 +1 @@
|
||||
check_installed([[^empty1.txt;empty2.txt$]])
|
||||
@@ -0,0 +1 @@
|
||||
check_installed([[^$]])
|
||||
@@ -0,0 +1,5 @@
|
||||
install(
|
||||
SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/install_script.cmake"
|
||||
CODE "write_empty_file(empty2.txt)"
|
||||
COMPONENT dev
|
||||
)
|
||||
Reference in new issue
Block a user