File: CMakeLists.txt

package info (click to toggle)
fcitx 1%3A4.2.9.9-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,800 kB
  • sloc: ansic: 134,151; cpp: 7,280; sh: 2,778; python: 800; xml: 345; makefile: 42
file content (35 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (8)
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
35
set(QT_WRAPPER_SRCS
  main.cpp
  wrapperapp.cpp
  mainwindow.cpp
  )
fcitx_translate_add_sources(
  ${QT_WRAPPER_SRCS})

if(NOT (ENABLE_QT AND ENABLE_QT_GUI))
  return()
endif()

include_directories(
  ${QT_QTCORE_INCLUDE_DIR}
  ${QT_QTGUI_INCLUDE_DIR}
  ${LIBINTL_INCLUDE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  )

qt4_wrap_ui(QT_WRAPPER_SRCS mainwindow.ui)
add_executable(fcitx-qt-gui-wrapper ${QT_WRAPPER_SRCS})
set_target_properties(fcitx-qt-gui-wrapper PROPERTIES AUTOMOC TRUE)
target_link_libraries(fcitx-qt-gui-wrapper
  debug ${QT_QTCORE_LIBRARY_DEBUG}
  debug ${QT_QTDBUS_LIBRARY_DEBUG}
  debug ${QT_QTGUI_LIBRARY_DEBUG}
  optimized ${QT_QTCORE_LIBRARY_RELEASE}
  optimized ${QT_QTDBUS_LIBRARY_RELEASE}
  optimized ${QT_QTGUI_LIBRARY_RELEASE}
  fcitx-utils
  fcitx-config
  fcitx-qt
  )

install(TARGETS fcitx-qt-gui-wrapper DESTINATION ${addondir}/libexec)