| 1 |
set(ControlsPlugin_SRCS |
| 2 |
${CMAKE_CURRENT_SOURCE_DIR}/ControlsPlugin.cpp |
| 3 |
${CMAKE_CURRENT_SOURCE_DIR}/QQuickStack.cpp |
| 4 |
) |
| 5 |
|
| 6 |
add_library(controlsplugin MODULE ${ControlsPlugin_SRCS}) |
| 7 |
|
| 8 |
target_include_directories(controlsplugin |
| 9 |
PUBLIC |
| 10 |
${CMAKE_CURRENT_SOURCE_DIR} |
| 11 |
) |
| 12 |
|
| 13 |
target_link_libraries(controlsplugin |
| 14 |
PUBLIC |
| 15 |
Qt5::Core |
| 16 |
Qt5::Quick |
| 17 |
Qt5::Svg |
| 18 |
) |
| 19 |
|
| 20 |
set(CONTROLS_PLUGIN_DIR ${QT_IMPORTS_DIR}/Dekko/Controls) |
| 21 |
|
| 22 |
set(QML_CTRL_SRCS |
| 23 |
${CMAKE_CURRENT_SOURCE_DIR}/StackView.qml |
| 24 |
${CMAKE_CURRENT_SOURCE_DIR}/StackViewTransition.qml |
| 25 |
${CMAKE_CURRENT_SOURCE_DIR}/StackViewDelegate.qml |
| 26 |
${CMAKE_CURRENT_SOURCE_DIR}/StackSlideDelegate.qml |
| 27 |
${CMAKE_CURRENT_SOURCE_DIR}/Stack.js |
| 28 |
${CMAKE_CURRENT_SOURCE_DIR}/qmldir |
| 29 |
) |
| 30 |
add_custom_target(DekkoControlsQml ALL SOURCES ${QML_CTRL_SRCS}) |
| 31 |
|
| 32 |
install(TARGETS controlsplugin DESTINATION ${CONTROLS_PLUGIN_DIR}) |
| 33 |
install(FILES ${QML_CTRL_SRCS} DESTINATION ${CONTROLS_PLUGIN_DIR}) |