From cabeca7756031116bfb4e96ff48cd340ee2b75a9 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 13 Apr 2024 16:50:59 +0200 Subject: [PATCH] Don't build the Qt Quick GUI by default for Windows and Apple platforms It uses Kirigami which is probably not present/wanted on those platforms. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98de497..ac2687b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,6 +120,11 @@ find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.6.0 REQUIRED) use_cpp_utilities() # apply basic configuration +set(BUILD_QUICK_GUI_BY_DEFAULT ON) +if (WIN32 OR APPLE) + set(BUILD_QUICK_GUI_BY_DEFAULT OFF) +endif () +option(QUICK_GUI "enables/disables building the Qt Quick GUI using Kirigami" "${BUILD_QUICK_GUI_BY_DEFAULT}") include(BasicConfig) # find qtutilities