Tests: Add test for install(SCRIPT ... COMPONENT)
This commit is contained in:
parent
2201fb6f43
commit
11ca374b28
@ -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)
|
||||
|
1
Tests/RunCMake/install/SCRIPT-COMPONENT-all-check.cmake
Normal file
1
Tests/RunCMake/install/SCRIPT-COMPONENT-all-check.cmake
Normal file
@ -0,0 +1 @@
|
||||
check_installed([[^empty1.txt;empty2.txt$]])
|
1
Tests/RunCMake/install/SCRIPT-COMPONENT-dev-check.cmake
Normal file
1
Tests/RunCMake/install/SCRIPT-COMPONENT-dev-check.cmake
Normal file
@ -0,0 +1 @@
|
||||
check_installed([[^empty1.txt;empty2.txt$]])
|
1
Tests/RunCMake/install/SCRIPT-COMPONENT-uns-check.cmake
Normal file
1
Tests/RunCMake/install/SCRIPT-COMPONENT-uns-check.cmake
Normal file
@ -0,0 +1 @@
|
||||
check_installed([[^$]])
|
5
Tests/RunCMake/install/SCRIPT-COMPONENT.cmake
Normal file
5
Tests/RunCMake/install/SCRIPT-COMPONENT.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
install(
|
||||
SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/install_script.cmake"
|
||||
CODE "write_empty_file(empty2.txt)"
|
||||
COMPONENT dev
|
||||
)
|
Loading…
Reference in New Issue
Block a user