From 3c96c33bf3bd1f50c779e6c7ffe0f78710569079 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 14 Aug 2016 22:49:07 +0200 Subject: [PATCH] Make GUI optional --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be67da1..5a67bbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ set(META_APP_CATEGORIES "Utility;Audio;Video;") set(META_APP_AUTHOR "Martchus") set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}") set(META_APP_DESCRIPTION "A tageditor with Qt GUI and command line interface. Supports MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska") +set(META_GUI_OPTIONAL true) set(META_VERSION_MAJOR 2) set(META_VERSION_MINOR 0) set(META_VERSION_PATCH 0) @@ -190,6 +191,7 @@ set(REQUIRED_ICONS # find c++utilities find_package(c++utilities 4.0.0 REQUIRED) use_cpp_utilities() +include(BasicConfig) # find qtutilities if(WIDGETS_GUI OR QUICK_GUI) @@ -206,7 +208,6 @@ list(APPEND TEST_LIBRARIES ${TAG_PARSER_SHARED_LIB}) list(APPEND ADDITIONAL_QT_MODULES Concurrent Network) # include modules to apply configuration -include(BasicConfig) if(WIDGETS_GUI OR QUICK_GUI) include(QtGuiConfig) include(JsProviderConfig)