Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add qml #449

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0aa87ed
Fix CMake warnings
bansan85 Oct 17, 2023
94be995
Fix MSVC warnings
bansan85 Oct 17, 2023
c96829b
Add calculator_test
bansan85 Oct 21, 2024
5bf9066
Missing MultiplicationModel.hpp in CMakeLists.txt
bansan85 Oct 23, 2023
c51ebc3
Minors fixes in library
bansan85 Oct 24, 2023
8c6b9fc
Apply clang-format
bansan85 Oct 21, 2024
285ebc9
Remove qml debug messages
bansan85 Oct 21, 2024
dc79eaf
IWYU qml
bansan85 Oct 21, 2024
31a267e
IWYU
bansan85 Oct 21, 2024
05752dd
Avoid overlap between connections and nodes
bansan85 Nov 3, 2023
144a7eb
Add Acquisition Viewer
bansan85 Oct 21, 2024
c755681
Fix Dynamic ports example
bansan85 Nov 6, 2023
671b4c4
Add Compute viewer that embedded parameters
bansan85 Oct 21, 2024
9639b52
Fix Load / Save for Acquisition Viewer
bansan85 Nov 7, 2023
0ea5f78
Implement full compute_viewer
bansan85 Oct 21, 2024
9860f83
Call WINDEPLOYQT_EXECUTABLE for all example
bansan85 Nov 8, 2023
4f8f543
Don't skip default action for mouse event
bansan85 Nov 10, 2023
ef934e0
Use ResultWidget
bansan85 Oct 21, 2024
2941a32
Add images for examples
bansan85 Nov 15, 2023
c650806
Add package init in Config.cmake.in
bansan85 Jan 24, 2024
cc44a1c
Fix examples Win static build
bansan85 Oct 21, 2024
ee0860d
Fix format and dedicated CI
bansan85 Oct 21, 2024
7290349
Remove openGL dependency
bansan85 Jun 26, 2024
7cc0759
Fix CI and reduce dependencies
bansan85 Oct 21, 2024
a70646d
Fix usage of dataInvalidated
bansan85 Oct 21, 2024
0888da8
Fix typos
bansan85 Jun 26, 2024
a195372
setPortData should return true if success
bansan85 Jun 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions examples/acquisition_viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ add_executable(acquisition_viewer ${ACQ_SOURCE_FILES} ${ACQ_HEADER_FILES}
CMakeLists.txt)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a good idea to add WINDEPLOYQT_EXECUTABLE for all examples ?


target_link_libraries(acquisition_viewer QtNodes)

if(WIN32)
add_custom_command(
TARGET acquisition_viewer
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:acquisition_viewer>")
endif()
14 changes: 14 additions & 0 deletions examples/calculator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,17 @@ add_executable(headless_calculator
)

target_link_libraries(headless_calculator QtNodes)

if(WIN32)
add_custom_command(
TARGET calculator
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:calculator>")
add_custom_command(
TARGET headless_calculator
POST_BUILD
COMMAND
${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:headless_calculator>")
endif()
10 changes: 10 additions & 0 deletions examples/calculator_qml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ qt_add_qml_module(
)

target_link_libraries(calculator_qml PRIVATE Qt6::Gui Qt6::Quick QtNodes)

if(WIN32)
add_custom_command(
TARGET calculator_qml
POST_BUILD
COMMAND
${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --qmldir ${CMAKE_CURRENT_SOURCE_DIR} --pdb
"$<TARGET_FILE:calculator_qml>")
endif()
8 changes: 8 additions & 0 deletions examples/compute_viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,11 @@ add_executable(compute_viewer ${COMPUTE_SOURCE_FILES} ${COMPUTE_HEADER_FILES}
CMakeLists.txt)

target_link_libraries(compute_viewer QtNodes)

if(WIN32)
add_custom_command(
TARGET compute_viewer
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:calculator_qml>")
endif()
8 changes: 8 additions & 0 deletions examples/connection_colors/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ file(GLOB_RECURSE HPPS ./*.hpp )
add_executable(connection_colors ${CPPS} ${HPPS})

target_link_libraries(connection_colors QtNodes)

if(WIN32)
add_custom_command(
TARGET connection_colors
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:connection_colors>")
endif()
8 changes: 8 additions & 0 deletions examples/dynamic_ports/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ add_executable(
"PortAddRemoveWidget.hpp")

target_link_libraries(dynamic_ports QtNodes)

if(WIN32)
add_custom_command(
TARGET dynamic_ports
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:dynamic_ports>")
endif()
10 changes: 10 additions & 0 deletions examples/lock_nodes_and_connections/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,13 @@ file(GLOB_RECURSE CPPS ./*.cpp )
add_executable(lock_nodes_and_connections ${CPPS})

target_link_libraries(lock_nodes_and_connections QtNodes)

if(WIN32)
add_custom_command(
TARGET lock_nodes_and_connections
POST_BUILD
COMMAND
${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb
"$<TARGET_FILE:lock_nodes_and_connections>")
endif()
8 changes: 8 additions & 0 deletions examples/resizable_images/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ file(GLOB_RECURSE HPPS ./*.hpp )
add_executable(resizable_images ${CPPS} ${HPPS})

target_link_libraries(resizable_images QtNodes)

if(WIN32)
add_custom_command(
TARGET resizable_images
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:resizable_images>")
endif()
8 changes: 8 additions & 0 deletions examples/simple_graph_model/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ file(GLOB_RECURSE HPPS ./*.hpp )
add_executable(simple_graph_model ${CPPS} ${HPPS})

target_link_libraries(simple_graph_model QtNodes)

if(WIN32)
add_custom_command(
TARGET simple_graph_model
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:simple_graph_model>")
endif()
8 changes: 8 additions & 0 deletions examples/styles/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ file(GLOB_RECURSE HPPS ./*.hpp )
add_executable(styles ${CPPS} ${HPPS})

target_link_libraries(styles QtNodes)

if(WIN32)
add_custom_command(
TARGET styles
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:styles>")
endif()
8 changes: 8 additions & 0 deletions examples/text/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,11 @@ file(GLOB_RECURSE HPPS ./*.hpp )
add_executable(text ${CPPS} ${HPPS})

target_link_libraries(text QtNodes)

if(WIN32)
add_custom_command(
TARGET text
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:text>")
endif()
8 changes: 8 additions & 0 deletions examples/vertical_layout/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ file(GLOB_RECURSE CPPS ./*.cpp )
add_executable(vertical_layout ${CPPS})

target_link_libraries(vertical_layout QtNodes)

if(WIN32)
add_custom_command(
TARGET vertical_layout
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E env VCINSTALLDIR=${CMAKE_GENERATOR_INSTANCE}/VC
${WINDEPLOYQT_EXECUTABLE} --pdb "$<TARGET_FILE:vertical_layout>")
endif()