From c4be23758f05719584f2bc4c676fda81c57a9d63 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 16 Oct 2020 16:10:16 +0200 Subject: CMake: Regenerate qt3d examples Many of the examples were missing find_package() calls. Some were missing some example install dir things. Some missing special cases. Some incorrectly specified library names due to missing mappings in pro2cmake. Some incorrectly specified target names. Change-Id: I131a02dc679502ea6c1cdeb32962e77f09e672af Reviewed-by: Mike Krus --- examples/qt3d/planets-qml/CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'examples/qt3d/planets-qml') diff --git a/examples/qt3d/planets-qml/CMakeLists.txt b/examples/qt3d/planets-qml/CMakeLists.txt index 5a536896e..c50080779 100644 --- a/examples/qt3d/planets-qml/CMakeLists.txt +++ b/examples/qt3d/planets-qml/CMakeLists.txt @@ -9,13 +9,24 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_AUTOUIC ON) -set(INSTALL_EXAMPLEDIR "examples") +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}") find_package(Qt6 COMPONENTS Core) find_package(Qt6 COMPONENTS Gui) find_package(Qt6 COMPONENTS Qml) find_package(Qt6 COMPONENTS Quick) find_package(Qt6 COMPONENTS Concurrent) +find_package(Qt6 COMPONENTS 3DCore) +find_package(Qt6 COMPONENTS 3DRender) +find_package(Qt6 COMPONENTS 3DInput) +find_package(Qt6 COMPONENTS 3DQuick) +find_package(Qt6 COMPONENTS 3DQuickRender) +find_package(Qt6 COMPONENTS 3DQuickInput) +find_package(Qt6 COMPONENTS 3DQuickExtras) find_package(Qt6 COMPONENTS Network) add_qt_gui_executable(planets-qml -- cgit v1.2.3