diff --git a/CMake/LofarConfig.cmake b/CMake/LofarConfig.cmake
index 0b54db067afe0997f8b2a73aeb285c70ddeaaf87..c06179cf361839371cebe5856c6c4238336768e7 100644
--- a/CMake/LofarConfig.cmake
+++ b/CMake/LofarConfig.cmake
@@ -43,4 +43,11 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
     ${CMAKE_BINARY_DIR}/lofarinit.csh
     DESTINATION .)
 
+  # Configure the CTestCustom.cmake file, used by CTest/Dart, if it exists.
+  if(EXISTS ${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in)
+    configure_file(
+      ${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in
+      ${CMAKE_BINARY_DIR}/CTestCustom.cmake @ONLY)
+  endif(EXISTS ${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in)
+  
 endif("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
diff --git a/CTestConfig.cmake b/CTestConfig.cmake
index a32c90bc7892c3706ff5f9982ebc48d6154f2a69..2ca5cff05f275708ba2af83645e57dcaf294c97a 100644
--- a/CTestConfig.cmake
+++ b/CTestConfig.cmake
@@ -11,5 +11,3 @@ set(CTEST_DROP_METHOD "http")
 set(CTEST_DROP_SITE "svn.astron.nl")
 set(CTEST_DROP_LOCATION "/CDash/submit.php?project=LOFAR")
 set(CTEST_DROP_SITE_CDASH TRUE)
-
-set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS "200")
diff --git a/CTestCustom.cmake.in b/CTestCustom.cmake.in
new file mode 100644
index 0000000000000000000000000000000000000000..e00453665d58a42c890c4e505eaf8ec616a86043
--- /dev/null
+++ b/CTestCustom.cmake.in
@@ -0,0 +1,47 @@
+# - CTest custom settings.
+# See http://www.cmake.org/Wiki/CMake_Testing_With_CTest for details.
+
+# Regular expression for errors during build process
+set(CTEST_CUSTOM_ERROR_MATCH)
+
+# Regular expression for error exceptions during build process
+set(CTEST_CUSTOM_ERROR_EXCEPTION)
+
+# Regular expression for warnings during build process
+set(CTEST_CUSTOM_WARNING_MATCH)
+
+# Regular expression for warning exception during build process
+set(CTEST_CUSTOM_WARNING_EXCEPTION)
+
+# Maximum number of errors to display
+set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_ERRORS)
+
+# Maximum number of warnings to display
+set(CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS 200)
+
+# List of tests to ignore during the Test stage
+set(CTEST_CUSTOM_TESTS_IGNORE)
+
+# List of tests to ignore during the MemCheck stage
+set(CTEST_CUSTOM_MEMCHECK_IGNORE)
+
+# Command to execute before any tests are run during Test stage
+set(CTEST_CUSTOM_PRE_TEST)
+
+# Command to execute after any tests are run during Test stage
+set(CTEST_CUSTOM_POST_TEST)
+
+# Maximum size of passed test output
+set(CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE)
+
+# Maximum size of failed test output
+set(CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE)
+
+# Command to execute before any tests are run during MemCheck stage
+set(CTEST_CUSTOM_PRE_MEMCHECK)
+
+# Command to execute after any tests are run during MemCheck stage
+set(CTEST_CUSTOM_POST_MEMCHECK)
+
+# Regular expression for excluding files from coverage testing
+set(CTEST_CUSTOM_COVERAGE_EXCLUDE)