diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 78ef79b..0204584 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,7 +23,7 @@ else() add_definitions(-DFCITX_RIME_NO_DBUS) endif() -add_library(rime MODULE ${RIME_SOURCES}) +add_fcitx5_addon(rime ${RIME_SOURCES}) target_link_libraries(rime ${RIME_LINK_LIBRARIES}) install(TARGETS rime DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx5") fcitx5_translate_desktop_file(rime.conf.in rime.conf) diff --git a/src/rime-addon.conf.in.in b/src/rime-addon.conf.in.in index d1fb52e..d0b2052 100644 --- a/src/rime-addon.conf.in.in +++ b/src/rime-addon.conf.in.in @@ -4,7 +4,7 @@ Comment=Rime Wrapper For Fcitx Category=InputMethod Version=@PROJECT_VERSION@ Library=export:librime -Type=SharedLibrary +Type=@FCITX_ADDON_TYPE@ OnDemand=True Configurable=True