Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
1 | find_package(Qt5 REQUIRED CONFIG COMPONENTS Test) | 1 | find_package(Qt5 REQUIRED CONFIG COMPONENTS Test) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include_directories(${libksysguard_SOURCE_DIR}) | 3 | include_directories(${libksysguard_SOURCE_DIR}) | ||
4 | if(Qt5WebEngineWidgets_FOUND) | 4 | if(Qt5WebEngineWidgets_FOUND) | ||
5 | # Process unit test | 5 | # Process unit test | ||
6 | ecm_qt_declare_logging_category(processtest_debug_SRCS HEADER processcore_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSCORE CATEGORY_NAME org.kde.libksysguard.processcore) | 6 | ecm_qt_declare_logging_category(processtest_debug_SRCS HEADER processcore_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSCORE CATEGORY_NAME org.kde.libksysguard.processcore) | ||
7 | ecm_add_test(processtest.cpp ${processtest_debug_SRCS} TEST_NAME processtest | 7 | ecm_add_test(processtest.cpp ${processtest_debug_SRCS} TEST_NAME processtest | ||
8 | LINK_LIBRARIES KF5::ProcessUi Qt5::Test) | 8 | LINK_LIBRARIES KSysGuard::ProcessUi Qt5::Test) | ||
9 | endif() | 9 | endif() | ||
10 | 10 | | |||
11 | if (KF5Plasma_FOUND) | 11 | if (KF5Plasma_FOUND) | ||
12 | set(SIGNALPLOTTER_DEBUG_SRCS) | 12 | set(SIGNALPLOTTER_DEBUG_SRCS) | ||
13 | ecm_qt_declare_logging_category(SIGNALPLOTTER_DEBUG_SRCS HEADER ksignalplotter_debug.h IDENTIFIER LIBKSYSGUARD_KSIGNALPLOTTER CATEGORY_NAME org.kde.libksysguard.ksignalplotter) | 13 | ecm_qt_declare_logging_category(SIGNALPLOTTER_DEBUG_SRCS HEADER ksignalplotter_debug.h IDENTIFIER LIBKSYSGUARD_KSIGNALPLOTTER CATEGORY_NAME org.kde.libksysguard.ksignalplotter) | ||
14 | ecm_add_test(signalplotterbenchmark.cpp ../signalplotter/ksignalplotter.cpp ${SIGNALPLOTTER_DEBUG_SRCS} | 14 | ecm_add_test(signalplotterbenchmark.cpp ../signalplotter/ksignalplotter.cpp ${SIGNALPLOTTER_DEBUG_SRCS} | ||
15 | TEST_NAME signalplotterbenchmark | 15 | TEST_NAME signalplotterbenchmark | ||
16 | LINK_LIBRARIES KF5::SignalPlotter Qt5::Test Qt5::Widgets KF5::IconThemes | 16 | LINK_LIBRARIES KSysGuard::SignalPlotter Qt5::Test Qt5::Widgets KF5::IconThemes | ||
17 | ) | 17 | ) | ||
18 | 18 | | |||
19 | ecm_add_test(graphicssignalplotterbenchmark.cpp ../signalplotter/kgraphicssignalplotter.cpp ${SIGNALPLOTTER_DEBUG_SRCS} | 19 | ecm_add_test(graphicssignalplotterbenchmark.cpp ../signalplotter/kgraphicssignalplotter.cpp ${SIGNALPLOTTER_DEBUG_SRCS} | ||
20 | TEST_NAME graphicssignalplotterbenchmark | 20 | TEST_NAME graphicssignalplotterbenchmark | ||
21 | LINK_LIBRARIES KF5::SignalPlotter Qt5::Test Qt5::Widgets KF5::IconThemes KF5::Plasma | 21 | LINK_LIBRARIES KSysGuard::SignalPlotter Qt5::Test Qt5::Widgets KF5::IconThemes KF5::Plasma | ||
22 | ) | 22 | ) | ||
23 | 23 | | |||
24 | ecm_add_test(signalplottertest.cpp ../signalplotter/ksignalplotter.cpp ${SIGNALPLOTTER_DEBUG_SRCS} | 24 | ecm_add_test(signalplottertest.cpp ../signalplotter/ksignalplotter.cpp ${SIGNALPLOTTER_DEBUG_SRCS} | ||
25 | TEST_NAME signalplottertest | 25 | TEST_NAME signalplottertest | ||
26 | LINK_LIBRARIES KF5::SignalPlotter Qt5::Test Qt5::Widgets KF5::IconThemes | 26 | LINK_LIBRARIES KSysGuard::SignalPlotter Qt5::Test Qt5::Widgets KF5::IconThemes | ||
27 | ) | 27 | ) | ||
28 | endif() | 28 | endif() | ||
29 | 29 | | |||
30 | ecm_add_test(chronotest.cpp | 30 | ecm_add_test(chronotest.cpp | ||
31 | TEST_NAME chronotest | 31 | TEST_NAME chronotest | ||
32 | LINK_LIBRARIES Qt5::Test KF5::I18n | 32 | LINK_LIBRARIES Qt5::Test KF5::I18n | ||
33 | ) | 33 | ) | ||
34 | 34 | | |||
Show All 14 Lines |