From bced686fed0bc9510a302d30bf3115a1f9022d81 Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Wed, 24 Feb 2010 14:26:49 +0000 Subject: [PATCH] Add support for building on the CDash site. Running the 'Experimental' target (that is, 'make Experimental' on Linux) will submit the build results to http://my.cdash.org/index.php?project=PolyVox. I've (hopefully) set up a nightly build as well. --- CMakeLists.txt | 4 ++++ CTestConfig.cmake | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 CTestConfig.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index bc51e43e..ec1475ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,3 +23,7 @@ ADD_SUBDIRECTORY(examples/OpenGL) ADD_DEPENDENCIES(OpenGLExample PolyVoxCore PolyVoxUtil) INCLUDE(Packaging.cmake) + +ENABLE_TESTING() +INCLUDE(CTest) +SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE) diff --git a/CTestConfig.cmake b/CTestConfig.cmake new file mode 100644 index 00000000..317236e0 --- /dev/null +++ b/CTestConfig.cmake @@ -0,0 +1,6 @@ +set(CTEST_PROJECT_NAME "PolyVox") + +set(CTEST_DROP_METHOD "http") +set(CTEST_DROP_SITE "my.cdash.org") +set(CTEST_DROP_LOCATION "/submit.php?project=PolyVox") +set(CTEST_DROP_SITE_CDASH TRUE)