Skip to content

Instantly share code, notes, and snippets.

@rocka
Last active June 20, 2021 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rocka/f25d29bc6ceb31033543fd95eba09bf9 to your computer and use it in GitHub Desktop.
Save rocka/f25d29bc6ceb31033543fd95eba09bf9 to your computer and use it in GitHub Desktop.
fcitx5-android-poc CMakeLists.txt changes
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 38090ea..2301442 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,10 +8,10 @@ include(GNUInstallDirs)
include(ECMSetupVersion)
include(ECMUninstallTarget)
-find_package(Fcitx5Core 5.0.4 REQUIRED)
-find_package(Fcitx5Module REQUIRED COMPONENTS Notifications QuickPhrase Spell Clipboard TestFrontend TestIM)
-find_package(Fcitx5ModuleLuaAddonLoader)
-find_package(LibIntl REQUIRED)
+#find_package(Fcitx5Core 5.0.4 REQUIRED)
+#find_package(Fcitx5Module REQUIRED COMPONENTS Notifications QuickPhrase Spell Clipboard TestFrontend TestIM)
+#find_package(Fcitx5ModuleLuaAddonLoader)
+#find_package(LibIntl REQUIRED)
find_package(Pthread REQUIRED)
find_package(PkgConfig REQUIRED)
find_package(Gettext REQUIRED)
@@ -25,7 +25,7 @@ endif ()
pkg_check_modules(Curl REQUIRED IMPORTED_TARGET "libcurl")
-include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake")
+#include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake")
#######################################################################
# Options
@@ -56,8 +56,8 @@ if (ENABLE_GUI)
endif()
find_package(Boost 1.61 REQUIRED COMPONENTS iostreams)
-find_package(LibIMEPinyin REQUIRED)
-find_package(LibIMETable 1.0.3 REQUIRED)
+#find_package(LibIMEPinyin REQUIRED)
+#find_package(LibIMETable 1.0.3 REQUIRED)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 058f5ad..f6dcd5c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,8 +26,8 @@ include(ECMGenerateHeaders)
include(ECMGeneratePkgConfigFile)
include(ECMUninstallTarget)
-find_package(Fcitx5Utils REQUIRED)
-include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake")
+#find_package(Fcitx5Utils REQUIRED)
+#include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake")
find_package(Boost 1.61 REQUIRED COMPONENTS iostreams filesystem regex)
set(LIBIME_INSTALL_PKGDATADIR "${CMAKE_INSTALL_FULL_DATADIR}/libime")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment