Tests: Add test for CONFIGURATIONS parameter of install()

This commit is contained in:
Kyle Edwards
2018-07-12 09:03:06 -04:00
parent ae1c917f1a
commit bce8fa229a
3 changed files with 4 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ unset(RunCMake_TEST_OPTIONS)
run_install_test(Deprecated)
run_install_test(PRE_POST_INSTALL_SCRIPT)
run_install_test(SCRIPT)
run_install_test(TARGETS-CONFIGURATIONS)
set(run_install_test_components 1)
run_install_test(FILES-EXCLUDE_FROM_ALL)

View File

@@ -0,0 +1 @@
check_installed([[^src;src/main-d.c$]])

View File

@@ -0,0 +1,2 @@
install(FILES main.c DESTINATION src CONFIGURATIONS Debug RENAME main-d.c)
install(FILES main.c DESTINATION src CONFIGURATIONS Release RENAME main-r.c)