diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,7 +124,7 @@ add_device_backends_cmake() add_subdirectory(src) -if (BUILD_TESTING) +if (TARGET Qt5::DBus AND BUILD_TESTING) add_subdirectory(autotests) endif()