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