| 1 |
set(CLOUDPINYIN_SOURCES |
| 2 |
cloudpinyin.cpp |
| 3 |
fetch.cpp |
| 4 |
) |
| 5 |
|
| 6 |
if (ENABLE_CLOUDPINYIN) |
| 7 |
add_fcitx5_addon(cloudpinyin ${CLOUDPINYIN_SOURCES}) |
| 8 |
target_link_libraries(cloudpinyin Fcitx5::Core Fcitx5::Config PkgConfig::Curl Pthread::Pthread) |
| 9 |
install(TARGETS cloudpinyin DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx5") |
| 10 |
configure_file(cloudpinyin.conf.in.in cloudpinyin.conf.in) |
| 11 |
fcitx5_translate_desktop_file("${CMAKE_CURRENT_BINARY_DIR}/cloudpinyin.conf.in" cloudpinyin.conf) |
| 12 |
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/cloudpinyin.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon" |
| 13 |
COMPONENT config) |
| 14 |
|
| 15 |
fcitx5_export_module(CloudPinyin TARGET cloudpinyin BUILD_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" HEADERS cloudpinyin_public.h INSTALL) |
| 16 |
endif() |
| 17 |
|