From 354b53aa7e778b64fb30aaa649f7bf15d42eb41c Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 14 Jan 2014 18:59:18 +0100 Subject: [PATCH] Include test-dbus and test-bus in cmake 'make check' target. Because test-dbus and test-bus lives in subdirectory dbus/bus, we need to define make 'check' in top level source directory. --- cmake/CMakeLists.txt | 3 +++ cmake/test/CMakeLists.txt | 4 ---- 2 Dateien geändert, 3 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 56fbc79..dc5434c 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -502,6 +502,9 @@ add_subdirectory( dbus ) add_subdirectory( bus ) if (DBUS_BUILD_TESTS) add_subdirectory( test ) + add_custom_target(check + COMMAND ctest -R ^test-.* + ) endif (DBUS_BUILD_TESTS) add_subdirectory( tools ) add_subdirectory( doc ) diff --git a/cmake/test/CMakeLists.txt b/cmake/test/CMakeLists.txt index d0a1ecc..c0c900d 100644 --- a/cmake/test/CMakeLists.txt +++ b/cmake/test/CMakeLists.txt @@ -162,7 +162,3 @@ FOREACH(FILE ${FILES}) MESSAGE("FROM: ${FILE}\nTO: ${TARGET}\n") ENDIF (CONFIG_VERBOSE) ENDFOREACH(FILE) - -add_custom_target(check - COMMAND ctest -R ^test-.* -) -- 1.7.10.4