]> cloud.milkyroute.net Git - dolphin.git/blob - src/tests/CMakeLists.txt
Merge branch 'Applications/17.04'
[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
18 kconfig_add_kcfg_files(kitemlistcontrollertest_SRCS GENERATE_MOC
19 ../settings/dolphin_generalsettings.kcfgc
20 )
21 ecm_add_test(kitemlistcontrollertest.cpp testdir.cpp ../dolphindebug.cpp ${kitemlistcontrollertest_SRCS}
22 TEST_NAME kitemlistcontrollertest
23 LINK_LIBRARIES dolphinprivate Qt5::Test)
24
25 # KFileItemListViewTest
26 kconfig_add_kcfg_files(kfileitemlistviewtest_SRCS GENERATE_MOC
27 ../settings/dolphin_generalsettings.kcfgc
28 )
29 ecm_add_test(kfileitemlistviewtest.cpp testdir.cpp ../dolphindebug.cpp ${kfileitemlistviewtest_SRCS}
30 TEST_NAME kfileitemlistviewtest
31 LINK_LIBRARIES dolphinprivate Qt5::Test)
32
33 # KFileItemModelTest
34 kconfig_add_kcfg_files(kfileitemmodeltest_SRCS GENERATE_MOC
35 ../settings/dolphin_generalsettings.kcfgc
36 )
37 ecm_add_test(kfileitemmodeltest.cpp testdir.cpp ../dolphindebug.cpp ${kfileitemmodeltest_SRCS}
38 TEST_NAME kfileitemmodeltest
39 LINK_LIBRARIES dolphinprivate Qt5::Test)
40
41 # KFileItemModelBenchmark
42 kconfig_add_kcfg_files(kfileitemmodelbenchmark_SRCS GENERATE_MOC
43 ../settings/dolphin_generalsettings.kcfgc
44 )
45 ecm_add_test(kfileitemmodelbenchmark.cpp testdir.cpp ../dolphindebug.cpp ${kfileitemmodelbenchmark_SRCS}
46 TEST_NAME kfileitemmodelbenchmark
47 LINK_LIBRARIES dolphinprivate Qt5::Test)
48
49 # KItemListKeyboardSearchManagerTest
50 ecm_add_test(kitemlistkeyboardsearchmanagertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
51
52 # DolphinSearchBox
53 if (KF5Baloo_FOUND)
54 kconfig_add_kcfg_files(dolphinsearchboxtest_SRCS
55 ../search/dolphin_searchsettings.kcfgc
56 )
57 ecm_add_test(dolphinsearchboxtest.cpp ../search/dolphinfacetswidget.cpp ../search/dolphinsearchbox.cpp ${dolphinsearchboxtest_SRCS}
58 TEST_NAME dolphinsearchboxtest
59 LINK_LIBRARIES dolphinprivate Qt5::Test)
60 endif()
61
62 # KStandardItemModelTest
63 ecm_add_test(kstandarditemmodeltest.cpp ../dolphindebug.cpp
64 TEST_NAME kstandarditemmodeltest
65 LINK_LIBRARIES dolphinprivate Qt5::Test)
66
67 # ViewPropertiesTest
68 kconfig_add_kcfg_files(viewpropertiestest_SRCS GENERATE_MOC
69 ../settings/dolphin_generalsettings.kcfgc
70 ../settings/dolphin_directoryviewpropertysettings.kcfgc
71 )
72 ecm_add_test(viewpropertiestest.cpp testdir.cpp ../dolphindebug.cpp ${viewpropertiestest_SRCS}
73 TEST_NAME viewpropertiestest
74 LINK_LIBRARIES dolphinprivate Qt5::Test)