Revision control
Copy as Markdown
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
include(.cmake.conf)
project(QtLottie
VERSION "${QT_REPO_MODULE_VERSION}"
DESCRIPTION "Qt Lottie Libraries"
LANGUAGES CXX C
)
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.
qt_internal_project_setup()
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui Qml Quick QuickTest QuickTestUtilsPrivate
QuickVectorImageGeneratorPrivate QuickVectorImagePrivate QuickControls2 QuickTimeline)
if(NOT TARGET Qt6::Gui)
message(NOTICE "Skipping the build as Qt6::Gui cannot be found.")
return()
endif()
if(NOT TARGET Qt6::QuickVectorImagePrivate)
message(NOTICE "Skipping the build as Qt6::QuickVectorImagePrivate cannot be found.")
return()
endif()
include("${CMAKE_CURRENT_LIST_DIR}/tools/lottietoqml/Qt6LottieToQmlMacros.cmake")
qt_build_repo()