--- a/CMakeLists.txt Thu Nov 27 22:06:51 2014 +0100
+++ b/CMakeLists.txt Fri Nov 28 17:38:18 2014 +0100
@@ -230,7 +230,11 @@
include(${CMAKE_MODULE_PATH}/cpackvars.cmake)
+if(NOT BUILD_ENGINE_C)
enable_testing()
+endif(NOT BUILD_ENGINE_C)
+add_custom_target(test COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random)
+add_custom_target(test_verbose COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random -V)
set(LUATESTS_DIR "${CMAKE_SOURCE_DIR}/tests/lua")
set(TESTSDATA_DIR "${CMAKE_SOURCE_DIR}/share/hedgewars/Data")