]> cloud.milkyroute.net Git - dolphin.git/blob - src/tests/CMakeLists.txt
Move non-exported code to a static library
[dolphin.git] / src / tests / CMakeLists.txt
1 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
2
3 find_package(Qt5Test CONFIG REQUIRED)
4 include(ECMAddTests)
5
6 # KItemSetTest
7 ecm_add_test(kitemsettest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
8
9 # KItemRangeTest
10 ecm_add_test(kitemrangetest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
11
12
13 # KItemListSelectionManagerTest
14 ecm_add_test(kitemlistselectionmanagertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
15
16 # KItemListControllerTest
17 ecm_add_test(kitemlistcontrollertest.cpp testdir.cpp
18 TEST_NAME kitemlistcontrollertest
19 LINK_LIBRARIES dolphinprivate Qt5::Test)
20
21 # KFileItemListViewTest
22 ecm_add_test(kfileitemlistviewtest.cpp testdir.cpp
23 TEST_NAME kfileitemlistviewtest
24 LINK_LIBRARIES dolphinprivate Qt5::Test)
25
26 # KFileItemModelTest
27 ecm_add_test(kfileitemmodeltest.cpp testdir.cpp
28 TEST_NAME kfileitemmodeltest
29 LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
30
31 # KFileItemModelBenchmark
32 ecm_add_test(kfileitemmodelbenchmark.cpp testdir.cpp
33 TEST_NAME kfileitemmodelbenchmark
34 LINK_LIBRARIES dolphinprivate Qt5::Test)
35
36 # KItemListKeyboardSearchManagerTest
37 ecm_add_test(kitemlistkeyboardsearchmanagertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
38
39 # DolphinSearchBox
40 if (KF5Baloo_FOUND)
41 ecm_add_test(dolphinsearchboxtest.cpp
42 TEST_NAME dolphinsearchboxtest
43 LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
44 endif()
45
46 # KStandardItemModelTest
47 ecm_add_test(kstandarditemmodeltest.cpp
48 TEST_NAME kstandarditemmodeltest
49 LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)
50
51 # ViewPropertiesTest
52 ecm_add_test(viewpropertiestest.cpp testdir.cpp
53 TEST_NAME viewpropertiestest
54 LINK_LIBRARIES dolphinprivate dolphinstatic Qt5::Test)