CMakeLists.txt
changeset 10563 247e36ba2814
parent 10561 8b65886906f3
child 10606 8e95911cb86b
child 10660 79fa79c77c38
--- 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")