CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

# Settings:
set(CTEST_DASHBOARD_ROOT                "@CMake_BINARY_DIR@/Tests/CTestTest")
set(CTEST_SITE                          "CDashTestingSite")
set(CTEST_BUILD_NAME                    "CTestTest-Build-Crash")

set(CTEST_SOURCE_DIRECTORY     "@CDash_SOURCE_DIR@/tests/ctest/simple")
set(CTEST_BINARY_DIRECTORY     "@CDash_BINARY_DIR@/tests/ctest/simple")
set(CTEST_CMAKE_GENERATOR               "@CMAKE_GENERATOR@")
set(CTEST_NOTES_FILES                   "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "@CDASH_SERVER@")
set(CTEST_DROP_LOCATION "/@CDASH_DIR_NAME@/submit.php?project=InsightExample")
set(CTEST_CMAKE_GENERATOR "@CMAKE_GENERATOR@")
set(CTEST_PROJECT_NAME Simple)


ctest_start(Experimental)
ctest_configure(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
ctest_build(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
ctest_test(BUILD "${CTEST_BINARY_DIRECTORY}" RETURN_VALUE res)
ctest_submit()
