File tree 4 files changed +7
-3
lines changed
4 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.6)
2
2
3
3
project (fcitx-m17n VERSION 5.1.2)
4
4
5
+ set (REQUIRED_FCITX_VERSION 5.1.12)
5
6
find_package (ECM REQUIRED 1.0.0)
6
7
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR} /cmake" ${CMAKE_MODULE_PATH} )
7
8
include (FeatureSummary)
@@ -12,7 +13,7 @@ option(ENABLE_TEST "Build Test" On)
12
13
option (ENABLE_COVERAGE "Build the project with gcov support (Need ENABLE_TEST=On)" Off )
13
14
set (GCOV_TOOL "gcov" CACHE STRING "Path to gcov tool used by coverage." )
14
15
15
- find_package (Fcitx5Core 5.0.2 REQUIRED)
16
+ find_package (Fcitx5Core ${REQUIRED_FCITX_VERSION} REQUIRED)
16
17
find_package (Fcitx5Module REQUIRED COMPONENTS TestFrontend)
17
18
find_package (Gettext REQUIRED)
18
19
find_package (fmt REQUIRED)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ set(fcitx_m17n_sources
4
4
keysymname.cpp
5
5
)
6
6
7
- add_library (m17n MODULE ${fcitx_m17n_sources} )
7
+ add_fcitx5_addon (m17n ${fcitx_m17n_sources} )
8
8
target_link_libraries (m17n Fcitx5::Core Fcitx5::Config ${FMT_TARGET} PkgConfig::M17NGui)
9
9
target_include_directories (m17n PRIVATE ${PROJECT_BINARY_DIR} )
10
10
set_target_properties (m17n PROPERTIES PREFIX "" )
Original file line number Diff line number Diff line change @@ -624,4 +624,4 @@ void M17NState::select(int index) {
624
624
}
625
625
} // namespace fcitx
626
626
627
- FCITX_ADDON_FACTORY ( fcitx::M17NEngineFactory)
627
+ FCITX_ADDON_FACTORY_V2 (m17n, fcitx::M17NEngineFactory)
Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ Enabled=True
7
7
Library=m17n
8
8
Type=SharedLibrary
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