diff options
author | Brad King <brad.king@kitware.com> | 2017-11-09 13:12:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-11-09 13:13:07 (GMT) |
commit | 43edaee0ce663e4f1c2cfdfa4742450640a2f6e1 (patch) | |
tree | 48ebd22e605ad638efe2b17d7a4a4d6ade6af4bf | |
parent | 1e9304bccb933956f8c8349f2dd89927dd0ec08b (diff) | |
parent | 05e9f6ec52a2cb87b529ee41059d809446a8e50d (diff) | |
download | CMake-43edaee0ce663e4f1c2cfdfa4742450640a2f6e1.zip CMake-43edaee0ce663e4f1c2cfdfa4742450640a2f6e1.tar.gz CMake-43edaee0ce663e4f1c2cfdfa4742450640a2f6e1.tar.bz2 |
Merge topic 'contract-plplot'
05e9f6ec Tests: Add contract test for PLplot
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1452
-rw-r--r-- | Tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | Tests/Contracts/PLplot/CMakeLists.txt | 18 | ||||
-rw-r--r-- | Tests/Contracts/PLplot/Configure.cmake | 4 |
3 files changed, 23 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 1c69805..b9558f1 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -3396,6 +3396,7 @@ ${CMake_BINARY_DIR}/bin/cmake -DDIR=dev -P ${CMake_SOURCE_DIR}/Utilities/Release # sets "CMake_TEST_CONTRACT_<project>_<var>" variables to configure # the code below. foreach(project + PLplot Trilinos VTK ) diff --git a/Tests/Contracts/PLplot/CMakeLists.txt b/Tests/Contracts/PLplot/CMakeLists.txt new file mode 100644 index 0000000..b87b4c3 --- /dev/null +++ b/Tests/Contracts/PLplot/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 3.9) +project(PLplotDriver NONE) +include(ExternalProject) +include(${CMAKE_CURRENT_SOURCE_DIR}/../Home.cmake) +set(PLplot_PREFIX "${HOME}/.cmake/Contracts/PLplot") +file(REMOVE_RECURSE "${PLplot_PREFIX}") +separate_arguments(PLplot_CMAKE_ARGS UNIX_COMMAND "${PLplot_CMAKE_FLAGS}") +if(NOT PLplot_GIT_TAG) + set(PLplot_GIT_TAG "plplot-5.13.0") +endif() +ExternalProject_Add(PLplot + GIT_REPOSITORY "https://git.code.sf.net/p/plplot/plplot.git" + GIT_TAG "${PLplot_GIT_TAG}" + PREFIX "${PLplot_PREFIX}" + CMAKE_ARGS + -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR> + ${PLplot_CMAKE_ARGS} + ) diff --git a/Tests/Contracts/PLplot/Configure.cmake b/Tests/Contracts/PLplot/Configure.cmake new file mode 100644 index 0000000..83591d4 --- /dev/null +++ b/Tests/Contracts/PLplot/Configure.cmake @@ -0,0 +1,4 @@ +set(Contracts.PLplot_BUILD_OPTIONS + -DPLplot_CMAKE_FLAGS=${CMake_TEST_CONTRACT_PLplot_CMAKE_FLAGS} + -DPLplot_GIT_TAG=${CMake_TEST_CONTRACT_PLplot_GIT_TAG} + ) |