@@ -22,7 +22,7 @@ include_directories(
2222
2323remove_definitions(-DQT_NO_KEYWORDS)
2424
25−add_definitions(-DDASHVIEWSTEST_FOLDER="${CMAKE_CURRENT_SOURCE_DIR}")
25+add_definitions(-DTEST_DIR="plugins/Dash")
2626
2727macro(add_lvwph_test FILENAME TESTNAME)
2828 add_executable(${TESTNAME}TestExec
@@ -72,6 +72,10 @@ add_dashview_try_test(verticaljournal VerticalJournal)
7272add_dashview_try_test(horizontaljournal HorizontalJournal)
7373add_dashview_try_test(organicgrid OrganicGrid)
7474
75+# Install data files needed for tests
76+file(GLOB qml_files *.qml)
77+install(FILES ${qml_files} DESTINATION "${SHELL_APP_DIR}/tests/plugins/Dash")
78+
7579# CardCreator test
7680add_executable(CardCreatorTestExec cardcreatortest.cpp)
7781qt5_use_modules(CardCreatorTestExec Test Core Qml)
@@ -80,6 +84,7 @@ install(TARGETS CardCreatorTestExec
8084 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
8185)
8286add_unity8_uitest(CardCreator CardCreatorTestExec DEPENDS Dash-qml)
87+install(DIRECTORY cardcreator DESTINATION "${SHELL_APP_DIR}/tests/plugins/Dash")
8388
8489# plain qml test
8590foreach(dash_test ScopeStyle ListViewWithPageHeaderQML CardAttributes CroppedImageMinimumSourceSize)