-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
61 lines (54 loc) · 1.42 KB
/
CMakeLists.txt
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
include_directories(${PROJECT_SOURCE_DIR}/layout)
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_fcitx\")
set(kcm_SRCS
main.cpp
module.cpp
addonselector.cpp
configwidget.cpp
global.cpp
subconfigparser.cpp
subconfigpattern.cpp
subconfig.cpp
subconfigwidget.cpp
skinpage.cpp
impage.cpp
uipage.cpp
imconfigdialog.cpp
dummyconfig.cpp
verticalscrollarea.cpp
fontbutton.cpp
configpage.cpp
erroroverlay.cpp
../layout/keyboardlayoutwidget.cpp
)
set(kcm_UIS module.ui skinpage.ui impage.ui fontbutton.ui configpage.ui)
fcitx_translate_add_sources(${kcm_SRCS} ${kcm_UIS} kcm_fcitx.desktop.in)
ki18n_wrap_ui(kcm_SRCS ${kcm_UIS})
add_library(kcm_fcitx MODULE ${kcm_SRCS})
target_link_libraries(kcm_fcitx
Qt5::Widgets
Qt5::X11Extras
KF5::CoreAddons
KF5::WidgetsAddons
KF5::ConfigWidgets
KF5::ItemViews
KF5::I18n
KF5::KIOCore
KF5::KIOWidgets
FcitxQt5::WidgetsAddons
FcitxQt5::DBusAddons
${FCITX4_FCITX_UTILS_LIBRARIES}
${FCITX4_FCITX_CONFIG_LIBRARIES}
${FCITX4_FCITX_LIBRARIES}
${LIBINTL_LIBRARY}
${X11_X11_LIB} ${XKBFILE_LIBRARIES} ${X11_Xkblib_LIB}
)
install(TARGETS kcm_fcitx DESTINATION ${CMAKE_INSTALL_PLUGINDIR})
fcitx_translate_add_apply_source(
kcm_fcitx.desktop.in
"${CMAKE_CURRENT_BINARY_DIR}/kcm_fcitx.desktop")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/kcm_fcitx.desktop"
DESTINATION ${CMAKE_INSTALL_KSERVICES5DIR})
if(ENABLE_TEST)
add_subdirectory(test)
endif(ENABLE_TEST)