Adjust prerequisites for tests in cmake

This commit is contained in:
Manuel Pégourié-Gonnard 2015-07-01 10:06:27 +02:00
parent abc729e664
commit d3a9166afe

View File

@ -73,8 +73,12 @@ ADD_CUSTOM_TARGET(apidoc
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if(ENABLE_TESTING) if(ENABLE_TESTING)
find_package(PERL)
if(PERL_FOUND)
add_subdirectory(tests) add_subdirectory(tests)
if(UNIX)
ADD_CUSTOM_TARGET(covtest ADD_CUSTOM_TARGET(covtest
COMMAND make test COMMAND make test
COMMAND programs/test/selftest COMMAND programs/test/selftest
@ -100,4 +104,6 @@ if(ENABLE_TESTING)
COMMAND rm -f memcheck.log COMMAND rm -f memcheck.log
COMMAND mv DartConfiguration.tcl.bak DartConfiguration.tcl COMMAND mv DartConfiguration.tcl.bak DartConfiguration.tcl
) )
endif(UNIX)
endif(PERL_FOUND)
endif() endif()