forked from pool/fcitx
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 370aa7a..26c86c2 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -17,8 +17,9 @@ option(ENABLE_DEBUG "Enable Debug" OFF)
|
||
|
option(ENABLE_TABLE "Enable Table IM" ON)
|
||
|
option(ENABLE_GTK2_IM_MODULE "Enable GTK2 IM Module" ON)
|
||
|
option(ENABLE_GTK3_IM_MODULE "Enable GTK3 IM Module" OFF)
|
||
|
-option(ENABLE_QT "Enable Qt-based lib and configuration GUI" On)
|
||
|
+option(ENABLE_QT "Enable Qt-based lib" On)
|
||
|
option(ENABLE_QT_IM_MODULE "Enable Qt IM Module" ON)
|
||
|
+option(ENABLE_QT_GUI "Enable Qt-based configuration GUI" On)
|
||
|
option(ENABLE_OPENCC "Enable OpenCC for Chinese Transform" ON)
|
||
|
option(FORCE_OPENCC
|
||
|
"Enable opencc even if the library is not found at compile time" Off)
|
||
|
diff --git a/tools/gui/quickphrase-editor/CMakeLists.txt b/tools/gui/quickphrase-editor/CMakeLists.txt
|
||
|
index 9ef7e86..3fff180 100644
|
||
|
--- a/tools/gui/quickphrase-editor/CMakeLists.txt
|
||
|
+++ b/tools/gui/quickphrase-editor/CMakeLists.txt
|
||
|
@@ -16,7 +16,7 @@ fcitx_translate_add_sources(
|
||
|
${QUICKPHRASE_EDITOR_HDRS}
|
||
|
${QUICKPHRASE_EDITOR_SRCS})
|
||
|
|
||
|
-if(NOT ENABLE_QT)
|
||
|
+if(NOT (ENABLE_QT AND ENABLE_QT_GUI))
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
diff --git a/tools/gui/wrapper/CMakeLists.txt b/tools/gui/wrapper/CMakeLists.txt
|
||
|
index ab1fbaa..b5bad62 100644
|
||
|
--- a/tools/gui/wrapper/CMakeLists.txt
|
||
|
+++ b/tools/gui/wrapper/CMakeLists.txt
|
||
|
@@ -11,7 +11,7 @@ fcitx_translate_add_sources(
|
||
|
${QT_WRAPPER_SRCS}
|
||
|
${QT_WRAPPER_HDRS})
|
||
|
|
||
|
-if(NOT ENABLE_QT)
|
||
|
+if(NOT (ENABLE_QT AND ENABLE_QT_GUI))
|
||
|
return()
|
||
|
endif()
|
||
|
|