| 1 |
find_package(Qt6Concurrent REQUIRED) |
| 2 |
|
| 3 |
set(QUICKPHRASE_EDITOR_SRCS |
| 4 |
main.cpp |
| 5 |
model.cpp |
| 6 |
editor.cpp |
| 7 |
editordialog.cpp |
| 8 |
batchdialog.cpp |
| 9 |
filelistmodel.cpp |
| 10 |
) |
| 11 |
|
| 12 |
add_library(fcitx-quickphrase-editor5 |
| 13 |
MODULE ${QUICKPHRASE_EDITOR_SRCS}) |
| 14 |
set_target_properties(fcitx-quickphrase-editor5 PROPERTIES |
| 15 |
AUTOMOC TRUE AUTOUIC TRUE AUTOUIC_OPTIONS "-tr=fcitx::tr2fcitx;--include=fcitxqti18nhelper.h" |
| 16 |
) |
| 17 |
target_link_libraries(fcitx-quickphrase-editor5 |
| 18 |
Fcitx5::Utils |
| 19 |
Qt6::Core |
| 20 |
Qt6::Gui |
| 21 |
Qt6::Concurrent |
| 22 |
Fcitx5Qt6::WidgetsAddons |
| 23 |
) |
| 24 |
|
| 25 |
install(TARGETS fcitx-quickphrase-editor5 DESTINATION ${CMAKE_INSTALL_LIBDIR}/fcitx5/qt6) |