| 1 |
set(PUNCTUATION_SOURCES |
| 2 |
punctuation.cpp |
| 3 |
) |
| 4 |
|
| 5 |
set(PUNCTUATION_DATA_FILES |
| 6 |
punc.mb.zh_CN |
| 7 |
punc.mb.zh_HK |
| 8 |
punc.mb.zh_TW |
| 9 |
) |
| 10 |
|
| 11 |
add_fcitx5_addon(punctuation ${PUNCTUATION_SOURCES}) |
| 12 |
target_link_libraries(punctuation Fcitx5::Core Fcitx5::Config Fcitx5::Module::Notifications) |
| 13 |
install(TARGETS punctuation DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx5") |
| 14 |
configure_file(punctuation.conf.in.in punctuation.conf.in) |
| 15 |
fcitx5_translate_desktop_file("${CMAKE_CURRENT_BINARY_DIR}/punctuation.conf.in" punctuation.conf) |
| 16 |
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/punctuation.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon" |
| 17 |
COMPONENT config) |
| 18 |
install(FILES ${PUNCTUATION_DATA_FILES} DESTINATION "${CMAKE_INSTALL_DATADIR}/fcitx5/punctuation" |
| 19 |
COMPONENT config) |
| 20 |
|
| 21 |
fcitx5_export_module(Punctuation TARGET punctuation BUILD_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" HEADERS punctuation_public.h INSTALL) |