Debian Codegraph @

modules/chttrans/CMakeLists.txt

raw
1 set(CHTTRANS_SOURCES
2 chttrans.cpp chttrans-native.cpp
3 )
4 if (ENABLE_OPENCC)
5 set(CHTTRANS_SOURCES ${CHTTRANS_SOURCES} chttrans-opencc.cpp)
6 endif()
7 add_fcitx5_addon(chttrans ${CHTTRANS_SOURCES})
8 target_link_libraries(chttrans Fcitx5::Core Fcitx5::Config Fcitx5::Module::Notifications)
9 if (ENABLE_OPENCC)
10 target_link_libraries(chttrans OpenCC::OpenCC)
11 if (TARGET Boost::json)
12 target_link_libraries(chttrans Boost::json)
13 endif()
14 endif()
15 install(TARGETS chttrans DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx5")
16 configure_file(chttrans.conf.in.in chttrans.conf.in)
17 fcitx5_translate_desktop_file("${CMAKE_CURRENT_BINARY_DIR}/chttrans.conf.in" chttrans.conf)
18 install(FILES "${CMAKE_CURRENT_BINARY_DIR}/chttrans.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon"
19 COMPONENT config)
20 install(FILES gbks2t.tab DESTINATION "${CMAKE_INSTALL_DATADIR}/fcitx5/chttrans" COMPONENT config)