Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
Show All 25 Lines | 24 | macro(FRAMEWORKINTEGRATION_TESTS _testname) | |||
---|---|---|---|---|---|
26 | set_target_properties(${_testname} PROPERTIES COMPILE_FLAGS "-DUNIT_TEST") | 26 | set_target_properties(${_testname} PROPERTIES COMPILE_FLAGS "-DUNIT_TEST") | ||
27 | add_test(NAME frameworkintegration-${_testname} COMMAND ${_testname}) | 27 | add_test(NAME frameworkintegration-${_testname} COMMAND ${_testname}) | ||
28 | ecm_mark_as_test(${_testname}) | 28 | ecm_mark_as_test(${_testname}) | ||
29 | ecm_mark_nongui_executable(${_testname}) | 29 | ecm_mark_nongui_executable(${_testname}) | ||
30 | target_include_directories(${_testname} PRIVATE ${CMAKE_BINARY_DIR}/src/platformtheme) | 30 | target_include_directories(${_testname} PRIVATE ${CMAKE_BINARY_DIR}/src/platformtheme) | ||
31 | target_link_libraries(${_testname} Qt5::GuiPrivate Qt5::Test Qt5::DBus Qt5::X11Extras Qt5::QuickControls2 ${QT5PLATFORMSUPPORT_LIBS} KF5::ConfigWidgets KF5::ConfigCore KF5::IconThemes KF5::KIOFileWidgets KF5::I18n KF5::Notifications KF5::WindowSystem KF5::WaylandClient XCB::XCB) | 31 | target_link_libraries(${_testname} Qt5::GuiPrivate Qt5::Test Qt5::DBus Qt5::X11Extras Qt5::QuickControls2 ${QT5PLATFORMSUPPORT_LIBS} KF5::ConfigWidgets KF5::ConfigCore KF5::IconThemes KF5::KIOFileWidgets KF5::I18n KF5::Notifications KF5::WindowSystem KF5::WaylandClient XCB::XCB) | ||
32 | endmacro() | 32 | endmacro() | ||
33 | 33 | | |||
34 | set(dbus_interface) | ||||
35 | qt5_add_dbus_interface(dbus_interface ../src/platformtheme/org.kde.StatusNotifierWatcher.xml statusnotifierwatcher_interface) | ||||
36 | | ||||
34 | set(platformThemeSRCS | 37 | set(platformThemeSRCS | ||
35 | ../src/platformtheme/qdbusmenubar.cpp # fork of Qt's qdbusmenubar with some added setters for our convenience | 38 | ../src/platformtheme/qdbusmenubar.cpp # fork of Qt's qdbusmenubar with some added setters for our convenience | ||
36 | ../src/platformtheme/kdeplatformtheme.cpp | 39 | ../src/platformtheme/kdeplatformtheme.cpp | ||
37 | ../src/platformtheme/kfontsettingsdata.cpp | 40 | ../src/platformtheme/kfontsettingsdata.cpp | ||
38 | ../src/platformtheme/khintssettings.cpp | 41 | ../src/platformtheme/khintssettings.cpp | ||
39 | ../src/platformtheme/kdeplatformfiledialoghelper.cpp | 42 | ../src/platformtheme/kdeplatformfiledialoghelper.cpp | ||
40 | ../src/platformtheme/kdeplatformfiledialogbase.cpp | 43 | ../src/platformtheme/kdeplatformfiledialogbase.cpp | ||
41 | ../src/platformtheme/kdeplatformsystemtrayicon.cpp | 44 | ../src/platformtheme/kdeplatformsystemtrayicon.cpp | ||
42 | ../src/platformtheme/kdirselectdialog.cpp | 45 | ../src/platformtheme/kdirselectdialog.cpp | ||
43 | ../src/platformtheme/kfiletreeview.cpp | 46 | ../src/platformtheme/kfiletreeview.cpp | ||
44 | ../src/platformtheme/kwaylandintegration.cpp | 47 | ../src/platformtheme/kwaylandintegration.cpp | ||
45 | ../src/platformtheme/x11integration.cpp | 48 | ../src/platformtheme/x11integration.cpp | ||
49 | ${dbus_interface} | ||||
46 | ) | 50 | ) | ||
47 | 51 | | |||
48 | qt5_add_dbus_interface(platformThemeSRCS ../src/platformtheme/org.kde.StatusNotifierWatcher.xml statusnotifierwatcher_interface) | | |||
49 | | ||||
50 | frameworkintegration_tests( | 52 | frameworkintegration_tests( | ||
51 | kdeplatformtheme_unittest | 53 | kdeplatformtheme_unittest | ||
52 | ${platformThemeSRCS} | 54 | ${platformThemeSRCS} | ||
53 | ) | 55 | ) | ||
54 | 56 | | |||
55 | frameworkintegration_tests( | 57 | frameworkintegration_tests( | ||
56 | kfontsettingsdata_unittest | 58 | kfontsettingsdata_unittest | ||
57 | ../src/platformtheme/kfontsettingsdata.cpp | 59 | ../src/platformtheme/kfontsettingsdata.cpp | ||
58 | ) | 60 | ) | ||
59 | 61 | | |||
60 | frameworkintegration_tests( | 62 | frameworkintegration_tests( | ||
61 | kfiledialog_unittest | 63 | kfiledialog_unittest | ||
62 | ) | 64 | ) | ||
63 | 65 | | |||
64 | frameworkintegration_tests( | 66 | frameworkintegration_tests( | ||
65 | ksni_unittest | 67 | ksni_unittest | ||
66 | ) | 68 | ) | ||
67 | 69 | | |||
68 | frameworkintegration_tests( | 70 | frameworkintegration_tests( | ||
71 | kdeplatformsystemtrayicon_unittest | ||||
72 | ../src/platformtheme/kdeplatformsystemtrayicon.cpp | ||||
73 | ${dbus_interface} | ||||
74 | ) | ||||
75 | | ||||
76 | frameworkintegration_tests( | ||||
69 | kdirselectdialog_unittest | 77 | kdirselectdialog_unittest | ||
70 | ../src/platformtheme/kdeplatformfiledialogbase.cpp | 78 | ../src/platformtheme/kdeplatformfiledialogbase.cpp | ||
71 | ../src/platformtheme/kdirselectdialog.cpp | 79 | ../src/platformtheme/kdirselectdialog.cpp | ||
72 | ../src/platformtheme/kfiletreeview.cpp | 80 | ../src/platformtheme/kfiletreeview.cpp | ||
73 | ) | 81 | ) | ||
74 | 82 | | |||
75 | frameworkintegration_tests( | 83 | frameworkintegration_tests( | ||
76 | khintssettings_unittest | 84 | khintssettings_unittest | ||
Show All 9 Lines |