From ba75a6c6a0231f93fd40480992beec46b0f64885 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sun, 30 Jul 2017 15:47:29 +0200 Subject: Allow to build KConfig without Qt5Gui Summary: This is particularly useful for cross-compilation, where we only need the kconfig_compiler on the host system. Reviewers: #frameworks, apol, aacid Reviewed By: aacid Subscribers: aacid Tags: #frameworks Differential Revision: https://phabricator.kde.org/D6994 --- autotests/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'autotests/CMakeLists.txt') diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index a07636d5..fd3816d1 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -52,6 +52,7 @@ ecm_add_tests( target_include_directories(test_kconf_update PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/../src/kconf_update) +if(TARGET Qt5::Gui) ecm_add_tests( kconfigguitest.cpp kconfigloadertest.cpp @@ -67,4 +68,4 @@ set_tests_properties(kconfigcore-kconfignokdehometest PROPERTIES RUN_SERIAL TRUE set_tests_properties(kconfiggui-kconfigguitest PROPERTIES RUN_SERIAL TRUE) add_subdirectory(kconfig_compiler) - +endif() -- cgit v1.2.1