2022-07-05 13:14:26 +00:00
|
|
|
# Copyright (C) 2022 The Qt Company Ltd.
|
2022-08-22 13:42:29 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-07-05 13:14:26 +00:00
|
|
|
|
2021-09-22 13:44:23 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2019-05-17 17:13:24 +00:00
|
|
|
|
2020-09-22 15:16:46 +00:00
|
|
|
include(.cmake.conf)
|
2023-02-08 14:40:56 +00:00
|
|
|
project(QtImageFormats
|
2020-09-22 15:16:46 +00:00
|
|
|
VERSION "${QT_REPO_MODULE_VERSION}"
|
2023-02-08 14:40:56 +00:00
|
|
|
DESCRIPTION "Qt ImageFormats Libraries"
|
2019-05-17 17:13:24 +00:00
|
|
|
HOMEPAGE_URL "https://qt.io/"
|
|
|
|
LANGUAGES CXX C
|
|
|
|
)
|
|
|
|
|
2025-05-28 18:00:35 +00:00
|
|
|
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals)
|
|
|
|
|
|
|
|
# This should be called as early as possible, just after find_package(BuildInternals) where it is
|
|
|
|
# defined.
|
2023-04-12 13:04:14 +00:00
|
|
|
qt_internal_project_setup()
|
|
|
|
|
2025-05-28 18:00:35 +00:00
|
|
|
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core)
|
|
|
|
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui)
|
|
|
|
|
2019-10-15 12:07:17 +00:00
|
|
|
if(NOT TARGET Qt::Gui)
|
|
|
|
message(NOTICE "Skipping the build as the condition \"TARGET Qt::Gui\" is not met.")
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
qt_build_repo()
|