summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2009-12-15 21:52:27 (GMT)
committerDavid Cole <david.cole@kitware.com>2009-12-15 21:52:27 (GMT)
commit5eb8e80b2abf2c7ae24bd673400f85e7a4d0e1a7 (patch)
treec8a9d808d3a65d4d0d424098fea1c8e4cdb6c38e /Tests
parent56ee3b43a98642b734005d230b364ffdc71d605c (diff)
downloadCMake-5eb8e80b2abf2c7ae24bd673400f85e7a4d0e1a7.zip
CMake-5eb8e80b2abf2c7ae24bd673400f85e7a4d0e1a7.tar.gz
CMake-5eb8e80b2abf2c7ae24bd673400f85e7a4d0e1a7.tar.bz2
Add a test to build the CSE project if the optional cache entry CMAKE_TEST_PROJECT_CSE_DIR is set.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 7986daa..4f53a69 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1579,6 +1579,19 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
ENDIF(PREFIX_IS_FOR_TEST)
ENDIF(UNIX)
+ IF(CMAKE_TEST_PROJECT_CSE_DIR)
+ SET(script "${CMAKE_TEST_PROJECT_CSE_DIR}/BuildProjectCSE.cmake")
+ IF(NOT EXISTS "${script}")
+ SET(script "${CMAKE_TEST_PROJECT_CSE_DIR}/cse_build.cmake")
+ ENDIF(NOT EXISTS "${script}")
+ IF(NOT EXISTS "${script}")
+ MESSAGE("warning: CMAKE_TEST_PROJECT_CSE_DIR set, but no build script found...")
+ ENDIF(NOT EXISTS "${script}")
+
+ ADD_TEST(BuildCSE ${CMAKE_CTEST_COMMAND} -V -S "${script}")
+ SET_TESTS_PROPERTIES(BuildCSE PROPERTIES TIMEOUT 5400)
+ ENDIF(CMAKE_TEST_PROJECT_CSE_DIR)
+
IF(CMAKE_TEST_PLPLOT_DIR)
ADD_TEST(plplot ${CMAKE_CTEST_COMMAND} -V -S ${CMAKE_TEST_PLPLOT_DIR}/../../EasyDashboardScripts/plplot.cmake )
SET_TESTS_PROPERTIES ( plplot PROPERTIES TIMEOUT 5400)