-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (42 loc) · 1.18 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
add_definitions(-DKSMSERVER_UNIT_TEST)
include(ECMMarkAsTest)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/..)
set( kcmTest_SRCS
kcmtest.cpp
../kcm.cpp
../../krdb/krdb.cpp
../../cursortheme/xcursor/cursortheme.cpp
../../cursortheme/xcursor/xcursortheme.cpp
)
set(klauncher_xml ${KINIT_DBUS_INTERFACES_DIR}/kf5_org.kde.KLauncher.xml)
qt5_add_dbus_interface(kcmTest_SRCS ${klauncher_xml} klauncher_iface)
add_executable(kcmTest ${kcmTest_SRCS})
add_dependencies(kcmTest kcm_lookandfeel)
target_link_libraries(kcmTest
Qt5::Test
KF5::KIOWidgets
KF5::CoreAddons
KF5::KCMUtils
KF5::I18n
KF5::Plasma
KF5::PlasmaQuick
KF5::KDELibs4Support
KF5::Declarative
KF5::QuickAddons
KF5::NewStuff
Qt5::DBus
Qt5::Widgets
Qt5::QuickWidgets
${X11_LIBRARIES}
)
if(X11_FOUND)
target_link_libraries(kcmTest Qt5::X11Extras)
endif()
if (X11_Xcursor_FOUND)
target_link_libraries(kcmTest ${X11_Xcursor_LIB})
endif ()
if (X11_Xfixes_FOUND)
target_link_libraries(kcmTest ${X11_Xfixes_LIB})
endif ()
add_test(NAME lookandfeel-kcmTest COMMAND kcmTest)
ecm_mark_as_test(kcmTest)