]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Include test-dbus and test-bus in cmake 'make check' target.
authorRalf Habacker <ralf.habacker@freenet.de>
Tue, 14 Jan 2014 17:59:18 +0000 (18:59 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 24 Oct 2014 16:49:44 +0000 (18:49 +0200)
Because test-dbus and test-bus lives in subdirectory dbus/bus, we need
to define make 'check' in top level source directory.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73689
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
cmake/CMakeLists.txt
cmake/test/CMakeLists.txt

index 628a681a98f96fbdca0edafd6a434aca17208c72..32250f59d60c1575c07e5f3148db66427d57ef2d 100644 (file)
@@ -496,6 +496,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 )
index a373458abc194baf7cb0e97a4257c72ed0757349..5e81e7f9a3430fb10cf99e69314f75e29982146f 100644 (file)
@@ -172,7 +172,3 @@ FOREACH(FILE ${FILES})
         MESSAGE("FROM: ${FILE}\nTO: ${TARGET}\n")
     ENDIF (CONFIG_VERBOSE)
 ENDFOREACH(FILE)
-
-add_custom_target(check
-    COMMAND ctest -R ^test-.*
-)