Changeset View
Changeset View
Standalone View
Standalone View
autotests/CMakeLists.txt
1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | 1 | remove_definitions(-DQT_NO_CAST_FROM_ASCII) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | include(ECMAddTests) | 3 | include(ECMAddTests) | ||
4 | 4 | | |||
5 | if(BUILD_TESTING) | 5 | if(BUILD_TESTING) | ||
6 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Test) | 6 | find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED Core Test) | ||
7 | 7 | | |||
8 | configure_file(testdata.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/testdata.h) | 8 | configure_file(testdata.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/testdata.h) | ||
9 | ecm_add_test(symlinktest.cpp | 9 | ecm_add_test(symlinktest.cpp | ||
10 | TEST_NAME "symlink" | 10 | TEST_NAME "symlink" | ||
11 | LINK_LIBRARIES Qt5::Test | 11 | LINK_LIBRARIES Qt5::Test | ||
12 | ) | 12 | ) | ||
13 | ecm_add_test(newlinetest.cpp | 13 | ecm_add_test(newlinetest.cpp | ||
14 | TEST_NAME "newline" | 14 | TEST_NAME "newline" | ||
15 | LINK_LIBRARIES Qt5::Test | 15 | LINK_LIBRARIES Qt5::Test | ||
16 | ) | 16 | ) | ||
17 | ecm_add_test(dupetest.cpp | 17 | ecm_add_test(dupetest.cpp kiconloaderdummy.cpp | ||
18 | TEST_NAME "dupe" | 18 | TEST_NAME "dupe" | ||
19 | LINK_LIBRARIES Qt5::Test | 19 | LINK_LIBRARIES Qt5::Test | ||
20 | ) | 20 | ) | ||
21 | ecm_add_test(scalabletest.cpp | 21 | ecm_add_test(scalabletest.cpp kiconloaderdummy.cpp | ||
22 | TEST_NAME "scalable" | 22 | TEST_NAME "scalable" | ||
23 | LINK_LIBRARIES Qt5::Test | 23 | LINK_LIBRARIES Qt5::Test | ||
24 | ) | 24 | ) | ||
25 | endif() | 25 | endif() |