From c8293b20a982af5657e3bfc30cb07f785bec09b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 25 Jun 2015 09:22:25 +0200 Subject: [PATCH] cmake: no reason for test to depend on gcc/clang --- CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a89a9bcff..516b00698 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,12 +64,6 @@ endif(ENABLE_ZLIB_SUPPORT) add_subdirectory(library) add_subdirectory(include) -if(ENABLE_TESTING) - if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) - add_subdirectory(tests) - endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) -endif() - if(ENABLE_PROGRAMS) add_subdirectory(programs) endif() @@ -79,6 +73,8 @@ ADD_CUSTOM_TARGET(apidoc WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) if(ENABLE_TESTING) + add_subdirectory(tests) + ADD_CUSTOM_TARGET(covtest COMMAND make test COMMAND programs/test/selftest