summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/CMakeLists.txt
diff options
context:
space:
mode:
authorDomen Vrankar <domen.vrankar@gmail.com>2017-08-19 20:41:14 (GMT)
committerDomen Vrankar <domen.vrankar@gmail.com>2017-08-19 20:41:14 (GMT)
commit80047bd611e2734cfddc11e4f383589cc7acff84 (patch)
treee9da5bf07e4f8f6ecde83c8af1bee8dd296b2421 /Tests/RunCMake/CPack/CMakeLists.txt
parent4bf219a43f1f9cb9746e2d87c917ee1d5051549b (diff)
downloadCMake-80047bd611e2734cfddc11e4f383589cc7acff84.zip
CMake-80047bd611e2734cfddc11e4f383589cc7acff84.tar.gz
CMake-80047bd611e2734cfddc11e4f383589cc7acff84.tar.bz2
CPack: extend testing framework
Some CPack tests require running commands after the inclusion of CPack.cmake and this patch enables such tests to declare run_after_include_cpack function which is run after the inclusion.
Diffstat (limited to 'Tests/RunCMake/CPack/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CPack/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/CMakeLists.txt b/Tests/RunCMake/CPack/CMakeLists.txt
index c361af0..1b3dbb2 100644
--- a/Tests/RunCMake/CPack/CMakeLists.txt
+++ b/Tests/RunCMake/CPack/CMakeLists.txt
@@ -15,3 +15,7 @@ include(tests/${RunCMake_TEST_FILE_PREFIX}/test.cmake)
set(CPACK_GENERATOR "${GENERATOR_TYPE}")
include(CPack)
+
+if(COMMAND run_after_include_cpack)
+ run_after_include_cpack()
+endif()