1 set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
3 find_package(Qt5Test CONFIG REQUIRED)
7 ecm_add_test(kitemsettest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
10 ecm_add_test(kitemrangetest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
13 # KItemListSelectionManagerTest
14 ecm_add_test(kitemlistselectionmanagertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
16 # KItemListControllerTest
18 kconfig_add_kcfg_files(kitemlistcontrollertest_SRCS GENERATE_MOC
19 ../settings/dolphin_generalsettings.kcfgc
21 ecm_add_test(kitemlistcontrollertest.cpp testdir.cpp ../dolphindebug.cpp ${kitemlistcontrollertest_SRCS}
22 TEST_NAME kitemlistcontrollertest
23 LINK_LIBRARIES dolphinprivate Qt5::Test)
25 # KFileItemListViewTest
26 kconfig_add_kcfg_files(kfileitemlistviewtest_SRCS GENERATE_MOC
27 ../settings/dolphin_generalsettings.kcfgc
29 ecm_add_test(kfileitemlistviewtest.cpp testdir.cpp ../dolphindebug.cpp ${kfileitemlistviewtest_SRCS}
30 TEST_NAME kfileitemlistviewtest
31 LINK_LIBRARIES dolphinprivate Qt5::Test)
34 kconfig_add_kcfg_files(kfileitemmodeltest_SRCS GENERATE_MOC
35 ../settings/dolphin_generalsettings.kcfgc
37 ecm_add_test(kfileitemmodeltest.cpp testdir.cpp ../dolphindebug.cpp ${kfileitemmodeltest_SRCS}
38 TEST_NAME kfileitemmodeltest
39 LINK_LIBRARIES dolphinprivate Qt5::Test)
41 # KFileItemModelBenchmark
42 kconfig_add_kcfg_files(kfileitemmodelbenchmark_SRCS GENERATE_MOC
43 ../settings/dolphin_generalsettings.kcfgc
45 ecm_add_test(kfileitemmodelbenchmark.cpp testdir.cpp ../dolphindebug.cpp ${kfileitemmodelbenchmark_SRCS}
46 TEST_NAME kfileitemmodelbenchmark
47 LINK_LIBRARIES dolphinprivate Qt5::Test)
49 # KItemListKeyboardSearchManagerTest
50 ecm_add_test(kitemlistkeyboardsearchmanagertest.cpp LINK_LIBRARIES dolphinprivate Qt5::Test)
54 kconfig_add_kcfg_files(dolphinsearchboxtest_SRCS
55 ../search/dolphin_searchsettings.kcfgc
57 ecm_add_test(dolphinsearchboxtest.cpp ../search/dolphinfacetswidget.cpp ../search/dolphinsearchbox.cpp ${dolphinsearchboxtest_SRCS}
58 TEST_NAME dolphinsearchboxtest
59 LINK_LIBRARIES dolphinprivate Qt5::Test)
62 # KStandardItemModelTest
63 ecm_add_test(kstandarditemmodeltest.cpp ../dolphindebug.cpp
64 TEST_NAME kstandarditemmodeltest
65 LINK_LIBRARIES dolphinprivate Qt5::Test)
68 kconfig_add_kcfg_files(viewpropertiestest_SRCS GENERATE_MOC
69 ../settings/dolphin_generalsettings.kcfgc
70 ../settings/dolphin_directoryviewpropertysettings.kcfgc
72 ecm_add_test(viewpropertiestest.cpp testdir.cpp ../dolphindebug.cpp ${viewpropertiestest_SRCS}
73 TEST_NAME viewpropertiestest
74 LINK_LIBRARIES dolphinprivate Qt5::Test)