@@ -6,6 +6,7 @@ set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE STRING INTERNAL FORCE)
66project (fcitx5-ios VERSION 0.1.0 LANGUAGES CXX Swift)
77set (CMAKE_OSX_DEPLOYMENT_TARGET 15)
88set (CMAKE_Swift_LANGUAGE_VERSION 5.9)
9+ set (CMAKE_CXX_STANDARD 17)
910
1011set (BUNDLE_IDENTIFIER "org.fcitx.Fcitx5" )
1112set (BUNDLE_NAME "Fcitx5" )
@@ -25,5 +26,31 @@ include(AddSwift)
2526set (KEYBOARD_NAME "Keyboard" )
2627set (KEYBOARD_LANGUAGE "zh-Hans" )
2728
29+ # For dependencies not to be find via pkg-config
30+ set (LibIntl_DIR "build/sysroot/usr/lib/cmake" )
31+ find_package (LibIntl)
32+ set (fmt_DIR "build/sysroot/usr/lib/cmake/fmt" )
33+ find_package (fmt)
34+
35+ option (ENABLE_TEST "" OFF )
36+ option (ENABLE_COVERAGE "" OFF )
37+ option (ENABLE_ENCHANT "" OFF )
38+ option (ENABLE_X11 "" OFF )
39+ option (ENABLE_WAYLAND "" OFF )
40+ option (ENABLE_DBUS "" OFF )
41+ option (ENABLE_DOC "" OFF )
42+ option (ENABLE_SERVER "" OFF )
43+ option (ENABLE_KEYBOARD "" OFF )
44+ option (USE_SYSTEMD "" OFF )
45+ option (ENABLE_XDGAUTOSTART "" OFF )
46+ option (ENABLE_EMOJI "" OFF )
47+ option (ENABLE_LIBUUID "" OFF )
48+ option (BUILD_SPELL_DICT "" OFF )
49+
50+ find_host_package(PkgConfig)
51+ find_host_package(Gettext)
52+
53+ add_subdirectory (fcitx5)
54+
2855add_subdirectory (keyboard)
2956add_subdirectory (src)
0 commit comments