Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
1 | 1 | | |||
---|---|---|---|---|---|
2 | include(ECMMarkAsTest) | 2 | include(ECMMarkAsTest) | ||
3 | include(ECMAddTests) | 3 | include(ECMAddTests) | ||
4 | 4 | | |||
5 | find_package(Qt5Test ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) | 5 | find_package(Qt5Test ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) | ||
6 | 6 | | |||
7 | ########### unittests ############### | 7 | ########### unittests ############### | ||
8 | 8 | | |||
9 | macro(SONNET_UNIT_TESTS) | 9 | ecm_add_tests( | ||
10 | foreach(_testname ${ARGN}) | | |||
11 | ecm_add_test(${_testname}.cpp TEST_NAME sonnet-${_testname} LINK_LIBRARIES KF5::SonnetCore Qt5::Test) | | |||
12 | endforeach() | | |||
13 | endmacro(SONNET_UNIT_TESTS) | | |||
14 | | ||||
15 | sonnet_unit_tests( | | |||
16 | test_filter | 10 | test_filter | ||
17 | test_core | 11 | test_core | ||
18 | test_suggest | 12 | test_suggest | ||
19 | test_settings | 13 | test_settings | ||
14 | NAME_PREFIX "sonnet-" | ||||
15 | LINK_LIBRARIES KF5::SonnetCore Qt5::Test | ||||
20 | ) | 16 | ) | ||
21 | 17 | | |||
18 | ecm_add_tests( | ||||
19 | test_highlighter | ||||
20 | NAME_PREFIX "sonnet-" | ||||
21 | LINK_LIBRARIES KF5::SonnetUi KF5::SonnetCore Qt5::Test | ||||
22 | ) |