Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <mjcarroll@intrinsic.ai>
  • Loading branch information
mjcarroll committed Nov 13, 2023
1 parent 2726159 commit ea29c2d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 21 deletions.
21 changes: 15 additions & 6 deletions src/plugins/camera_fps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
gz_gui_add_plugin(CameraFps
SOURCES
CameraFps.cc
QT_HEADERS
CameraFps.hh
PUBLIC_LINK_LIBS
qt6_add_qml_module(CameraFps
URI camera_fps
VERSION 1.0
SOURCES CameraFps.cc
QML_FILES CameraFps.qml
)

target_link_libraries(CameraFps PRIVATE
gz-rendering${GZ_RENDERING_VER}::gz-rendering${GZ_RENDERING_VER}
gz-transport${GZ_TRANSPORT_VER}::gz-transport${GZ_TRANSPORT_VER}
gz-plugin${GZ_PLUGIN_VER}::register
Qt6::Gui
Qt6::Widgets
Qt6::Quick
Qt6::QuickControls2
)

install (TARGETS CameraFps DESTINATION ${GZ_GUI_PLUGIN_INSTALL_DIR})
5 changes: 0 additions & 5 deletions src/plugins/camera_fps/CameraFps.qrc

This file was deleted.

25 changes: 16 additions & 9 deletions src/plugins/camera_tracking/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
gz_gui_add_plugin(CameraTracking
SOURCES
CameraTracking.cc
QT_HEADERS
CameraTracking.hh
TEST_SOURCES
# CameraTracking_TEST.cc
PUBLIC_LINK_LIBS
qt6_add_qml_module(CameraTracking
URI camera_tracking
VERSION 1.0
SOURCES CameraTracking.cc
QML_FILES CameraTracking.qml
)

target_link_libraries(CameraTracking PRIVATE
gz-rendering${GZ_RENDERING_VER}::gz-rendering${GZ_RENDERING_VER}
gz-common${GZ_COMMON_VER}::profiler
gz-transport${GZ_TRANSPORT_VER}::gz-transport${GZ_TRANSPORT_VER}
gz-plugin${GZ_PLUGIN_VER}::register
Qt6::Gui
Qt6::Widgets
Qt6::Quick
Qt6::QuickControls2
)

install(TARGETS CameraTracking DESTINATION ${GZ_GUI_PLUGIN_INSTALL_DIR})
2 changes: 1 addition & 1 deletion src/plugins/minimal_scene/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set(SOURCES
)

qt6_add_qml_module(MinimalScene
URI MinimalScene
URI minimal_scene
VERSION 1.0
SOURCES ${SOURCES}
QML_FILES MinimalScene.qml
Expand Down
3 changes: 3 additions & 0 deletions src/plugins/minimal_scene/MinimalScene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@
# include "MinimalSceneRhiOpenGL.hh"
#endif

#if MINIMAL_SCENE_HAVE_VULKAN
#include <QVulkanInstance>
#include "MinimalSceneRhiVulkan.hh"
#include <gz/rendering/RenderEngineVulkanExternalDeviceStructs.hh>
#endif // MINIMAL_SCENE_HAVE_VULKAN

#if MINIMAL_SCENE_HAVE_METAL
# include "MinimalSceneRhiMetal.hh"
Expand Down

0 comments on commit ea29c2d

Please sign in to comment.