2022-09-28 22:06:44 +00:00
|
|
|
set(TARGET_NAME qskinputcontext)
|
2022-09-28 21:49:30 +00:00
|
|
|
|
2023-03-30 15:56:14 +00:00
|
|
|
list(APPEND HEADERS QskInputContextGlobal.h)
|
|
|
|
list(APPEND SOURCES QskInputContextPlugin.cpp)
|
|
|
|
list(APPEND OTHER_FILES metadata.json)
|
2022-09-28 21:49:30 +00:00
|
|
|
|
2022-10-27 17:01:10 +00:00
|
|
|
if(ENABLE_PINYIN)
|
2023-03-30 15:56:14 +00:00
|
|
|
list(APPEND HEADERS
|
2022-11-03 15:48:04 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/inputpanel/QskPinyinTextPredictor.h)
|
2023-03-30 15:56:14 +00:00
|
|
|
list(APPEND SOURCES
|
2022-11-03 15:48:04 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/inputpanel/QskPinyinTextPredictor.cpp)
|
2022-10-27 17:01:10 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ENABLE_HUNSPELL)
|
2023-03-30 15:56:14 +00:00
|
|
|
list(APPEND HEADERS
|
2022-11-03 15:48:04 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/inputpanel/QskHunspellTextPredictor.h)
|
2023-03-30 15:56:14 +00:00
|
|
|
list(APPEND SOURCES
|
2022-11-03 15:48:04 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/src/inputpanel/QskHunspellTextPredictor.cpp)
|
2022-10-27 17:01:10 +00:00
|
|
|
endif()
|
|
|
|
|
2023-03-30 15:56:14 +00:00
|
|
|
qsk_plugin(qskinputcontext platforminputcontexts)
|
2022-09-28 22:06:44 +00:00
|
|
|
|
2022-11-03 15:48:04 +00:00
|
|
|
if(ENABLE_PINYIN)
|
2023-03-30 15:56:14 +00:00
|
|
|
target_link_libraries(qskinputcontext PRIVATE pinyin Fcitx5::Utils)
|
2022-11-03 15:48:04 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ENABLE_HUNSPELL)
|
2023-03-30 15:56:14 +00:00
|
|
|
target_link_libraries(qskinputcontext PRIVATE hunspell)
|
2022-11-03 15:48:04 +00:00
|
|
|
endif()
|
|
|
|
|
2023-03-30 15:56:14 +00:00
|
|
|
target_compile_definitions(qskinputcontext PRIVATE QSK_INPUTCONTEXT_MAKEDLL)
|
|
|
|
target_link_libraries(qskinputcontext PRIVATE qskinny Qt::GuiPrivate)
|