diff options
Diffstat (limited to 'examples/qt3d/simple-cpp/CMakeLists.txt')
-rw-r--r-- | examples/qt3d/simple-cpp/CMakeLists.txt | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/qt3d/simple-cpp/CMakeLists.txt b/examples/qt3d/simple-cpp/CMakeLists.txt new file mode 100644 index 000000000..4afa8b410 --- /dev/null +++ b/examples/qt3d/simple-cpp/CMakeLists.txt @@ -0,0 +1,34 @@ +# Generated from simple-cpp.pro. + +cmake_minimum_required(VERSION 3.14) +project(simple-cpp LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) + +add_qt_gui_executable(simple-cpp + main.cpp + orbittransformcontroller.cpp orbittransformcontroller.h +) +target_link_libraries(simple-cpp PUBLIC + Qt::3DCore + Qt::3DExtras + Qt::3DInput + Qt::3DRender + Qt::Core + Qt::Gui +) + +install(TARGETS simple-cpp + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |