diff options
author | Brad King <brad.king@kitware.com> | 2017-08-21 13:02:56 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-08-21 13:03:00 (GMT) |
commit | b14fdea3a63c7c8d91b0b02c57d1254a106376de (patch) | |
tree | 72e739fcaa21ee971e399f5aa5ad3ac3605bf368 | |
parent | ab5667b516f3a67349437b4ca662a70d1edf5913 (diff) | |
parent | 80047bd611e2734cfddc11e4f383589cc7acff84 (diff) | |
download | CMake-b14fdea3a63c7c8d91b0b02c57d1254a106376de.zip CMake-b14fdea3a63c7c8d91b0b02c57d1254a106376de.tar.gz CMake-b14fdea3a63c7c8d91b0b02c57d1254a106376de.tar.bz2 |
Merge topic 'cpack-extend-test-capabilities'
80047bd6 CPack: extend testing framework
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1162
-rw-r--r-- | Tests/RunCMake/CPack/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/RunCMake/CPack/README.txt | 5 |
2 files changed, 9 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() diff --git a/Tests/RunCMake/CPack/README.txt b/Tests/RunCMake/CPack/README.txt index 7c98f69..cf7c02c 100644 --- a/Tests/RunCMake/CPack/README.txt +++ b/Tests/RunCMake/CPack/README.txt @@ -91,6 +91,11 @@ If test will be used for multiple generators but some of them require some generator specific commands then those commands should be added to 'test.cmake' script wrapped with 'if(GENERATOR_TYPE STREQUAL <name_of_the_generator>)'. +NOTE: In some cases (for example when testing CPackComponent.cmake functions) +the test has to run some functions after CPack.cmake is included. In such cases +a function run_after_include_cpack can be declared in test.cmake file and that +function will run after the inclusion of CPack.cmake. + build phase (optional and not available for source package tests) ----------------------------------------------------------------- |