file(GLOB QML_FILES *.qml qmldir)

set(PLUGIN_DIR ${QT_IMPORTS_DIR}/Lomiri/Components/Extras)
install(FILES ${QML_FILES} DESTINATION ${PLUGIN_DIR})

# copy qml files over to build dir to be able to import them in tests
foreach(qmlFile ${QML_FILES} Example PhotoEditor TabsBar)
  file(COPY ${qmlFile} DESTINATION ${CMAKE_BINARY_DIR}/tests/unittests/Lomiri/Components/Extras/)
endforeach(qmlFile)

add_subdirectory(Example)
add_subdirectory(PhotoEditor)
add_subdirectory(TabsBar)
