diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cc4a7c40f31031011f014857f197be0b71ddcfc..af9d0819fbed418e7c134e257db61061f871343c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,10 +6,10 @@ cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake_support) include(OST) - - project(OpenStructure CXX C) +INCLUDE(CTest) +ENABLE_TESTING() option(USE_SHADER "whether to compile with shader support" OFF) diff --git a/CTestConfig.cmake b/CTestConfig.cmake new file mode 100644 index 0000000000000000000000000000000000000000..bff3a359112cf9e4128d7edf42f9b39e5baad4da --- /dev/null +++ b/CTestConfig.cmake @@ -0,0 +1,13 @@ +## This file should be placed in the root directory of your project. +## Then modify the CMakeLists.txt file in the root directory of your +## project to incorporate the testing dashboard. +## # The following are required to uses Dart and the Cdash dashboard +## ENABLE_TESTING() +## INCLUDE(CTest) +set(CTEST_PROJECT_NAME "OpenStructure") +set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") + +set(CTEST_DROP_METHOD "http") +set(CTEST_DROP_SITE "localhost") +set(CTEST_DROP_LOCATION "/cdash/submit.php?project=OpenStructure") +set(CTEST_DROP_SITE_CDASH TRUE) diff --git a/cmake_support/OST.cmake b/cmake_support/OST.cmake index fb46f78f953453d0b821303ad088ff85265a3ad8..5538e8057010306e7fa80ff6c43e9d6b0c9e56b3 100644 --- a/cmake_support/OST.cmake +++ b/cmake_support/OST.cmake @@ -501,6 +501,8 @@ macro(ost_unittest MODULE SOURCE_FILES) WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "running checks for module ${MODULE}" DEPENDS ${_test_name}) + add_test("${_test_name}" ${CMAKE_CURRENT_BINARY_DIR}/${_test_name} ) + endif() add_dependencies(check "${_test_name}_run")