Debian Codegraph @

macro-editor/CMakeLists.txt

raw
1
2
3 set(MACRO_EDITOR_SRCS
4 model.cpp
5 main.cpp
6 editor.cpp
7 dialog.cpp
8 )
9 set(MACRO_EDITOR_HDRS
10 model.h
11 editor.h
12 dialog.h
13 main.h
14 )
15 fcitx_translate_add_sources(
16 ${MACRO_EDITOR_SRCS}
17 ${MACRO_EDITOR_HDRS})
18
19 if (NOT ENABLE_QT)
20 return()
21 endif (NOT ENABLE_QT)
22
23 include_directories(
24 ${CMAKE_CURRENT_BINARY_DIR}
25 ${PROJECT_SOURCE_DIR}/unikey
26 )
27
28 link_directories(
29 ${FCITX4_FCITX_UTILS_LIBRARY_DIRS}
30 ${FCITX4_FCITX_CONFIG_LIBRARY_DIRS}
31 )
32 qt5_wrap_ui(MACRO_EDITOR_SRCS editor.ui dialog.ui)
33 add_library(fcitx-unikey-macro-editor
34 MODULE ${MACRO_EDITOR_SRCS} ${MACRO_EDITOR_MOCS})
35 set_target_properties(fcitx-unikey-macro-editor PROPERTIES
36 LINK_FLAGS "-Wl,--no-undefined"
37 AUTOMOC TRUE
38 )
39 target_link_libraries(fcitx-unikey-macro-editor
40 Qt5::Core
41 Qt5::Widgets
42 FcitxQt5::WidgetsAddons
43 LibIntl::LibIntl
44 unikey
45 ${FCITX4_FCITX_UTILS_LIBRARIES}
46 ${FCITX4_FCITX_CONFIG_LIBRARIES}
47 )
48
49 install(TARGETS fcitx-unikey-macro-editor DESTINATION ${FCITX4_ADDON_INSTALL_DIR}/qt)