| 1 |
# Copyright (C) 2022 The Qt Company Ltd. |
| 2 |
# SPDX-License-Identifier: BSD-3-Clause |
| 3 |
|
| 4 |
cmake_minimum_required(VERSION 3.16) |
| 5 |
project(planets-qml LANGUAGES CXX) |
| 6 |
|
| 7 |
set(CMAKE_AUTOMOC ON) |
| 8 |
|
| 9 |
find_package(Qt6 REQUIRED COMPONENTS 3DCore 3DInput 3DQuick 3DQuickExtras 3DQuickInput 3DQuickRender 3DRender Concurrent Core Gui Network Qml Quick) |
| 10 |
|
| 11 |
qt_add_executable(planets-qml |
| 12 |
main.cpp |
| 13 |
networkcontroller.cpp networkcontroller.h |
| 14 |
) |
| 15 |
|
| 16 |
set_target_properties(planets-qml PROPERTIES |
| 17 |
WIN32_EXECUTABLE TRUE |
| 18 |
MACOSX_BUNDLE TRUE |
| 19 |
) |
| 20 |
|
| 21 |
target_link_libraries(planets-qml PUBLIC |
| 22 |
Qt::3DCore |
| 23 |
Qt::3DInput |
| 24 |
Qt::3DQuick |
| 25 |
Qt::3DQuickExtras |
| 26 |
Qt::3DQuickInput |
| 27 |
Qt::3DQuickRender |
| 28 |
Qt::3DRender |
| 29 |
Qt::Concurrent |
| 30 |
Qt::Core |
| 31 |
Qt::Gui |
| 32 |
Qt::Network |
| 33 |
Qt::Qml |
| 34 |
Qt::Quick |
| 35 |
) |
| 36 |
|
| 37 |
# Resources: |
| 38 |
set(planets-qml_resource_files |
| 39 |
"AppleTVInput.qml" |
| 40 |
"FpsDisplay.qml" |
| 41 |
"InfoSheet.qml" |
| 42 |
"Planet.qml" |
| 43 |
"PlanetButton.qml" |
| 44 |
"PlanetEffect.qml" |
| 45 |
"PlanetFrameGraph.qml" |
| 46 |
"PlanetMaterial.qml" |
| 47 |
"PlanetsLight.qml" |
| 48 |
"PlanetsMain.qml" |
| 49 |
"Ring.qml" |
| 50 |
"ShadowEffect.qml" |
| 51 |
"SolarSystem.qml" |
| 52 |
"StyledSlider.qml" |
| 53 |
"SunEffect.qml" |
| 54 |
"meshes/ring.obj" |
| 55 |
"meshes/starfield.obj" |
| 56 |
"planets.js" |
| 57 |
"shaders/es2/planetD.frag" |
| 58 |
"shaders/es2/planetD.vert" |
| 59 |
"shaders/es2/planetDB.frag" |
| 60 |
"shaders/es2/planetDB.vert" |
| 61 |
"shaders/es2/planetDS.frag" |
| 62 |
"shaders/es2/planetDSB.frag" |
| 63 |
"shaders/es2/sun.frag" |
| 64 |
"shaders/es2/sun.vert" |
| 65 |
"shaders/gl3/planetD.frag" |
| 66 |
"shaders/gl3/planetD.vert" |
| 67 |
"shaders/gl3/planetDB.frag" |
| 68 |
"shaders/gl3/planetDB.vert" |
| 69 |
"shaders/gl3/planetDS.frag" |
| 70 |
"shaders/gl3/planetDSB.frag" |
| 71 |
"shaders/gl3/planetDShadow.frag" |
| 72 |
"shaders/gl3/planetDShadow.vert" |
| 73 |
"shaders/gl3/shadowmap.frag" |
| 74 |
"shaders/gl3/shadowmap.vert" |
| 75 |
"shaders/gl3/sun.frag" |
| 76 |
"shaders/gl3/sun.vert" |
| 77 |
"shaders/rhi/planetD.frag" |
| 78 |
"shaders/rhi/planetD.vert" |
| 79 |
"shaders/rhi/planetDB.frag" |
| 80 |
"shaders/rhi/planetDB.vert" |
| 81 |
"shaders/rhi/planetDS.frag" |
| 82 |
"shaders/rhi/planetDSB.frag" |
| 83 |
"shaders/rhi/planetDShadow.frag" |
| 84 |
"shaders/rhi/planetDShadow.vert" |
| 85 |
"shaders/rhi/shadowmap.frag" |
| 86 |
"shaders/rhi/shadowmap.vert" |
| 87 |
"shaders/rhi/sun.frag" |
| 88 |
"shaders/rhi/sun.vert" |
| 89 |
) |
| 90 |
|
| 91 |
qt6_add_resources(planets-qml "planets-qml" |
| 92 |
PREFIX |
| 93 |
"/" |
| 94 |
FILES |
| 95 |
${planets-qml_resource_files} |
| 96 |
) |
| 97 |
|
| 98 |
set(planets-qml-images_resource_files |
| 99 |
"images/earth.png" |
| 100 |
"images/jupiter.png" |
| 101 |
"images/mars.png" |
| 102 |
"images/mercury.png" |
| 103 |
"images/nasa/uranusringcolortrans.png" |
| 104 |
"images/neptune.png" |
| 105 |
"images/saturn.png" |
| 106 |
"images/solarsystemscope/earthcloudmapcolortrans.png" |
| 107 |
"images/solarsystemscope/earthcloudmapspec.jpg" |
| 108 |
"images/solarsystemscope/earthmap2k.jpg" |
| 109 |
"images/solarsystemscope/earthnormal2k.jpg" |
| 110 |
"images/solarsystemscope/earthspec2k.jpg" |
| 111 |
"images/solarsystemscope/galaxy_starfield.jpg" |
| 112 |
"images/solarsystemscope/jupitermap.jpg" |
| 113 |
"images/solarsystemscope/LICENSE.txt" |
| 114 |
"images/solarsystemscope/marsmap2k.jpg" |
| 115 |
"images/solarsystemscope/marsnormal2k.jpg" |
| 116 |
"images/solarsystemscope/mercurymap.jpg" |
| 117 |
"images/solarsystemscope/mercurynormal.jpg" |
| 118 |
"images/solarsystemscope/moonmap2k.jpg" |
| 119 |
"images/solarsystemscope/moonnormal2k.jpg" |
| 120 |
"images/solarsystemscope/neptunemap.jpg" |
| 121 |
"images/solarsystemscope/saturnmap.jpg" |
| 122 |
"images/solarsystemscope/saturnringcolortrans.png" |
| 123 |
"images/solarsystemscope/sunmap.jpg" |
| 124 |
"images/solarsystemscope/uranusmap.jpg" |
| 125 |
"images/solarsystemscope/venusmap.jpg" |
| 126 |
"images/solarsystemscope/venusnormal.jpg" |
| 127 |
"images/sun.png" |
| 128 |
"images/uranus.png" |
| 129 |
"images/venus.png" |
| 130 |
) |
| 131 |
|
| 132 |
qt6_add_resources(planets-qml "planets-qml-images" |
| 133 |
PREFIX |
| 134 |
"/" |
| 135 |
FILES |
| 136 |
${planets-qml-images_resource_files} |
| 137 |
) |