From 139439f0675ec05e936fd4297086462037cd618e Mon Sep 17 00:00:00 2001 From: Stefan Radomski Date: Fri, 5 Apr 2013 15:58:27 +0200 Subject: Make ctest respect custom config --- README.md | 2 +- contrib/ctest/common.ctest.inc | 10 ++++++++-- docs/BUILDING.md | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b49930e..7673a3a 100644 --- a/README.md +++ b/README.md @@ -104,4 +104,4 @@ upon](https://github.com/tklab-tud/uscxml/blob/master/docs/BUILDING.md#build-dep ## Download We do not yet feature installers. Please download the source and have a look at the [build -instructions](https://github.com/tklab-tud/umundo/blob/master/docs/BUILDING.md). +instructions](https://github.com/tklab-tud/uscxml/blob/master/docs/BUILDING.md). diff --git a/contrib/ctest/common.ctest.inc b/contrib/ctest/common.ctest.inc index ed0aa48..4fa5829 100644 --- a/contrib/ctest/common.ctest.inc +++ b/contrib/ctest/common.ctest.inc @@ -71,9 +71,9 @@ set(CTEST_CONFIGURE_COMMAND "${CTEST_CONFIGURE_COMMAND} \"${CTEST_SOURCE_DIRECTO ### Test! ################################################################ # clean build directory for everything but continuous tests -#if (NOT ${CTEST_SUBMIT_TYPE} MATCHES ".*Continuous.*") +if (NOT ${CTEST_SUBMIT_TYPE} MATCHES ".*Continuous.*") ctest_empty_binary_directory(${CTEST_BINARY_DIRECTORY}) -#endif() +endif() ctest_start(${CTEST_SUBMIT_TYPE}) # start testing # @@ -84,6 +84,12 @@ ctest_start(${CTEST_SUBMIT_TYPE}) # start testing ctest_configure() # run cmake +if(EXISTS "${CTEST_BINARY_DIRECTORY}/CTestCustom.cmake") + include(${CTEST_BINARY_DIRECTORY}/CTestCustom.cmake) +elseif(EXISTS "${CTEST_BINARY_DIRECTORY}/CTestCustom.ctest") + include(${CTEST_BINARY_DIRECTORY}/CTestCustom.ctest) +endif() + if (CTEST_TOOLCHAIN) # # We do not want to build the tests everytime we compile something, but we cannot diff --git a/docs/BUILDING.md b/docs/BUILDING.md index 60a3260..c7415b1 100644 --- a/docs/BUILDING.md +++ b/docs/BUILDING.md @@ -40,7 +40,7 @@ your own. >= 2.1.x Event queues with callbacks and the HTTP server. - curl
pre-compiled + curl
required >= 7.29.0 URL downloads. -- cgit v0.12