File: CMakeLists.txt

package info (click to toggle)
fcitx-qt5 1.2.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 940 kB
  • sloc: cpp: 6,202; xml: 340; makefile: 12; sh: 4
file content (34 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
set(QT_WRAPPER_SRCS
  main.cpp
  wrapperapp.cpp
  mainwindow.cpp
  )

fcitx_translate_add_sources(
  ${QT_WRAPPER_SRCS}
  )

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  )

link_directories(${FCITX4_FCITX_UTILS_LIBRARY_DIRS})

qt5_wrap_ui(QT_WRAPPER_SRCS mainwindow.ui)

add_executable(fcitx-qt5-gui-wrapper ${QT_WRAPPER_SRCS})

set_target_properties(fcitx-qt5-gui-wrapper
  PROPERTIES AUTOMOC TRUE)

target_link_libraries(fcitx-qt5-gui-wrapper
      Qt5::Core
      Qt5::Gui
      Qt5::Widgets
      FcitxQt5::DBusAddons
      FcitxQt5::WidgetsAddons
      LibIntl::LibIntl
      ${FCITX4_FCITX_UTILS_LIBRARIES}
)

install(TARGETS fcitx-qt5-gui-wrapper DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx/libexec")