File tree 5 files changed +127
-74
lines changed
5 files changed +127
-74
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.6.0)
2
2
project (fcitx5-skk VERSION 5.1.5)
3
3
4
+ set (REQUIRED_FCITX_VERSION 5.1.12)
4
5
find_package (ECM 1.0.0 REQUIRED)
5
6
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR} /cmake" ${CMAKE_MODULE_PATH} )
6
7
option (ENABLE_QT "Enable Qt for GUI configuration" On )
@@ -10,7 +11,7 @@ include(ECMUninstallTarget)
10
11
include (FeatureSummary)
11
12
12
13
find_package (PkgConfig REQUIRED)
13
- find_package (Fcitx5Core 5.0.6 REQUIRED)
14
+ find_package (Fcitx5Core ${REQUIRED_FCITX_VERSION} REQUIRED)
14
15
find_package (Gettext REQUIRED)
15
16
pkg_check_modules(GObject2 IMPORTED_TARGET "gobject-2.0" REQUIRED)
16
17
find_package (LibSKK REQUIRED)
Original file line number Diff line number Diff line change 2
2
set (SKK_SOURCES
3
3
skk.cpp
4
4
)
5
- add_library (skk MODULE ${SKK_SOURCES} )
5
+ add_fcitx5_addon (skk ${SKK_SOURCES} )
6
6
target_link_libraries (skk
7
7
Fcitx5::Core
8
8
Fcitx5::Config
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ Library=skk
7
7
Type=SharedLibrary
8
8
OnDemand=True
9
9
Configurable=True
10
+
11
+ [Addon/Dependencies]
12
+ 0=core:@REQUIRED_FCITX_VERSION@
You can’t perform that action at this time.
0 commit comments