| 1 |
set(QT_WRAPPER_SRCS |
| 2 |
main.cpp |
| 3 |
wrapperapp.cpp |
| 4 |
mainwindow.cpp |
| 5 |
) |
| 6 |
|
| 7 |
fcitx_translate_add_sources( |
| 8 |
${QT_WRAPPER_SRCS} |
| 9 |
) |
| 10 |
|
| 11 |
include_directories( |
| 12 |
${CMAKE_CURRENT_BINARY_DIR} |
| 13 |
) |
| 14 |
|
| 15 |
link_directories(${FCITX4_FCITX_UTILS_LIBRARY_DIRS}) |
| 16 |
|
| 17 |
qt5_wrap_ui(QT_WRAPPER_SRCS mainwindow.ui) |
| 18 |
|
| 19 |
add_executable(fcitx-qt5-gui-wrapper ${QT_WRAPPER_SRCS}) |
| 20 |
|
| 21 |
set_target_properties(fcitx-qt5-gui-wrapper |
| 22 |
PROPERTIES AUTOMOC TRUE) |
| 23 |
|
| 24 |
target_link_libraries(fcitx-qt5-gui-wrapper |
| 25 |
Qt5::Core |
| 26 |
Qt5::Gui |
| 27 |
Qt5::Widgets |
| 28 |
FcitxQt5::DBusAddons |
| 29 |
FcitxQt5::WidgetsAddons |
| 30 |
LibIntl::LibIntl |
| 31 |
${FCITX4_FCITX_UTILS_LIBRARIES} |
| 32 |
) |
| 33 |
|
| 34 |
install(TARGETS fcitx-qt5-gui-wrapper DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx/libexec") |