diff options
author | Brad King <brad.king@kitware.com> | 2009-03-30 15:36:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-03-30 15:36:32 (GMT) |
commit | d2175580e746b8ed07a35efe8c13f8518e9127ff (patch) | |
tree | 2197cd7225ba1bc8ab7279ef520409c667c197f8 /Tests/ExternalProject | |
parent | c45c862ef4c3689d7d01af5ff3a54efa2ea0d922 (diff) | |
download | CMake-d2175580e746b8ed07a35efe8c13f8518e9127ff.zip CMake-d2175580e746b8ed07a35efe8c13f8518e9127ff.tar.gz CMake-d2175580e746b8ed07a35efe8c13f8518e9127ff.tar.bz2 |
ENH: Generalize AddExternalProject step creation
This creates function 'add_external_project_step' to centralize creation
of external project steps. Users may call it to add custom steps to
external project builds.
Diffstat (limited to 'Tests/ExternalProject')
-rw-r--r-- | Tests/ExternalProject/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/ExternalProject/CMakeLists.txt b/Tests/ExternalProject/CMakeLists.txt index 813cd4d..37374c1 100644 --- a/Tests/ExternalProject/CMakeLists.txt +++ b/Tests/ExternalProject/CMakeLists.txt @@ -129,6 +129,13 @@ add_external_project(${proj} CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${prefix} -G ${CMAKE_GENERATOR} ${source_dir}/${proj} INSTALL_COMMAND "" ) +add_external_project_step(${proj} mypatch + COMMAND ${CMAKE_COMMAND} -E echo "This is a custom external project step." + COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/Step1Patch.cmake + WORKING_DIRECTORY ${source_dir}/TutorialStep1-LocalNoDirTAR + DEPENDEES download + DEPENDERS configure + ) # Local TGZ: @@ -268,7 +275,7 @@ add_test(TutorialStep1-LocalTAR-BuildTreeTest "${build_dir}/TutorialStep1-LocalTAR/EP-Tutorial" 36) add_test(TutorialStep1-LocalNoDirTAR-BuildTreeTest - "${build_dir}/TutorialStep1-LocalNoDirTAR/Tutorial" 25) + "${build_dir}/TutorialStep1-LocalNoDirTAR/EP-Tutorial" 25) add_test(TutorialStep1-LocalTGZ-BuildTreeTest "${build_dir}/TutorialStep1-LocalTGZ/Tutorial" 16) |