Skip to content

Commit

Permalink
Also install plugin with library
Browse files Browse the repository at this point in the history
  • Loading branch information
rprospero committed Aug 15, 2024
1 parent 9b6d3e6 commit 0333d62
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,38 @@ qt_add_qml_module(

target_include_directories(
QuickPlot PRIVATE ${PROJECT_SOURCE_DIR}/lib ${PROJECT_BINARY_DIR}/lib
${Qt6Widgets_INCLUDE_DIRS} ${Qt6Quick3D_INCLUDE_DIRS})
${Qt6Widgets_INCLUDE_DIRS} ${Qt6Quick3D_INCLUDE_DIRS})

set_target_properties(QuickPlot PROPERTIES PUBLIC_HEADER lineGeometry.h)

install(TARGETS QuickPlot)
install(TARGETS QuickPlot QuickPlotplugin)

# Main target
qt_add_executable(demo main.cpp)
qt_add_qml_module(demo
VERSION 1.0
URI PlotDemo
qt_add_qml_module(
demo
VERSION
1.0
URI
PlotDemo
QML_FILES
main.qml
)
main.qml)

target_include_directories(
demo
PRIVATE ${PROJECT_SOURCE_DIR}/src ${PROJECT_BINARY_DIR}/src
${PROJECT_SOURCE_DIR}/lib ${PROJECT_BINARY_DIR}/lib
${Qt6Widgets_INCLUDE_DIRS} ${Qt6Quick3D_INCLUDE_DIRS})

target_link_libraries(demo PRIVATE QuickPlot QuickPlotplugin Qt6::Widgets Qt6::Gui Qt6::Qml
Qt6::Core Qt6::Quick3D)
target_link_libraries(
demo
PRIVATE QuickPlot
QuickPlotplugin
Qt6::Widgets
Qt6::Gui
Qt6::Qml
Qt6::Core
Qt6::Quick3D)

set_target_properties(demo PROPERTIES RUNTIME demo)

Expand Down

0 comments on commit 0333d62

Please sign in to comment.