diff --git a/src/plugins/camera_fps/CMakeLists.txt b/src/plugins/camera_fps/CMakeLists.txt
index e9f053158..a07028094 100644
--- a/src/plugins/camera_fps/CMakeLists.txt
+++ b/src/plugins/camera_fps/CMakeLists.txt
@@ -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})
diff --git a/src/plugins/camera_fps/CameraFps.qrc b/src/plugins/camera_fps/CameraFps.qrc
deleted file mode 100644
index 57549c350..000000000
--- a/src/plugins/camera_fps/CameraFps.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- CameraFps.qml
-
-
diff --git a/src/plugins/camera_tracking/CMakeLists.txt b/src/plugins/camera_tracking/CMakeLists.txt
index cf71123aa..7ca87bbb0 100644
--- a/src/plugins/camera_tracking/CMakeLists.txt
+++ b/src/plugins/camera_tracking/CMakeLists.txt
@@ -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})
diff --git a/src/plugins/minimal_scene/CMakeLists.txt b/src/plugins/minimal_scene/CMakeLists.txt
index 301eab35d..1785b781b 100644
--- a/src/plugins/minimal_scene/CMakeLists.txt
+++ b/src/plugins/minimal_scene/CMakeLists.txt
@@ -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
diff --git a/src/plugins/minimal_scene/MinimalScene.cc b/src/plugins/minimal_scene/MinimalScene.cc
index b5e653a15..97af23f13 100644
--- a/src/plugins/minimal_scene/MinimalScene.cc
+++ b/src/plugins/minimal_scene/MinimalScene.cc
@@ -57,8 +57,11 @@
# include "MinimalSceneRhiOpenGL.hh"
#endif
+#if MINIMAL_SCENE_HAVE_VULKAN
#include
#include "MinimalSceneRhiVulkan.hh"
+#include
+#endif // MINIMAL_SCENE_HAVE_VULKAN
#if MINIMAL_SCENE_HAVE_METAL
# include "MinimalSceneRhiMetal.hh"