File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ cmake_minimum_required(VERSION 3.6)
2
2
3
3
project (fcitx5-bamboo VERSION 1.0.6)
4
4
5
+ set (REQUIRED_FCITX_VERSION 5.1.12)
5
6
find_package (ECM 1.0.0 REQUIRED)
6
7
set (CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR} /cmake" ${CMAKE_MODULE_PATH} )
7
8
include (FeatureSummary)
8
9
include (GNUInstallDirs)
9
10
include (ECMUninstallTarget)
10
11
11
- find_package (Fcitx5Core 5.0.22 REQUIRED)
12
+ find_package (Fcitx5Core ${REQUIRED_FCITX_VERSION} REQUIRED)
12
13
find_package (Fcitx5Module REQUIRED COMPONENTS TestFrontend)
13
14
find_package (Gettext REQUIRED)
14
15
find_package (Pthread REQUIRED)
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ set( fcitx_bamboo_sources
3
3
bamboo.cpp
4
4
)
5
5
6
- add_library (bamboo MODULE ${fcitx_bamboo_sources} )
6
+ add_fcitx5_addon (bamboo ${fcitx_bamboo_sources} )
7
7
target_link_libraries (bamboo Fcitx5::Core Fcitx5::Config Bamboo::Core Pthread::Pthread)
8
8
target_include_directories (bamboo PRIVATE ${PROJECT_BINARY_DIR} )
9
9
install (TARGETS bamboo DESTINATION "${CMAKE_INSTALL_LIBDIR} /fcitx5" )
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ OnDemand=True
9
9
Configurable=True
10
10
11
11
[Dependencies]
12
- 0=core:5.0.22
12
+ 0=core:@REQUIRED_FCITX_VERSION@
You can’t perform that action at this time.
0 commit comments