Add a test to build the CSE project if the optional cache entry CMAKE_TEST_PROJECT_CSE_DIR is set.

This commit is contained in:
David Cole 2009-12-15 16:52:27 -05:00
parent 56ee3b43a9
commit 5eb8e80b2a
1 changed files with 13 additions and 0 deletions

View File

@ -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)