Tests: Add test for install(SCRIPT ... COMPONENT)

This commit is contained in:
Kyle Edwards 2018-07-13 09:08:40 -04:00
parent 2201fb6f43
commit 11ca374b28
5 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -0,0 +1 @@
check_installed([[^empty1.txt;empty2.txt$]])

View File

@ -0,0 +1 @@
check_installed([[^empty1.txt;empty2.txt$]])

View File

@ -0,0 +1 @@
check_installed([[^$]])

View File

@ -0,0 +1,5 @@
install(
SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/install_script.cmake"
CODE "write_empty_file(empty2.txt)"
COMPONENT dev
)