blob: 9d84b673e8fffe8f17781c4b17805087c04f83fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Generated from application-manager.pro.
cmake_minimum_required(VERSION 3.16)
include(.cmake.conf)
project(QtApplicationManager # special case
VERSION "${QT_REPO_MODULE_VERSION}"
DESCRIPTION "QtAplicationManager Tools and Libraries" # special case
HOMEPAGE_URL "https://qt.io/"
LANGUAGES CXX C
)
set(QT_NO_INTERNAL_COMPATIBILITY_FUNCTIONS TRUE)
# populate the platform check variables
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals)
if(NOT (ANDROID OR IOS OR LINUX OR MACOS OR (WIN32 AND NOT WINRT)))
message(NOTICE "Skipping the build as building is only supported on Windows, macOS, Linux, Android and iOS.")
return()
endif()
# find the all modules (Gui isn't really optional, but we have to deal with a no-gui CI configuration)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core Concurrent)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS
Gui
Qml
Quick
QuickTest
DBus
WaylandClient
WaylandCompositor
QuickTest
Widgets
ZlibPrivate
GeniviExtras
)
if(NOT TARGET Qt::Gui OR NOT TARGET Qt::Quick)
message(NOTICE "Skipping the build as QtGui and/or QtQuick are not available.")
return()
endif()
qt_build_repo()
|