1
0
mirror of https://github.com/qt/qtmqtt.git synced 2026-10-25 16:16:26 +00:00
qtmqtt/CMakeLists.txt
Alexey Edelev df0dfd4c53 Add the use of the qt_internal_project_setup function
The function sets the required CMake variables and policies.

Pick-to: 6.5
Task-number: QTBUG-112685
Change-Id: I11a1f26d27e77234a5f4097efd13723e9f9ce01b
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
2023-05-10 18:50:21 +02:00

20 lines
609 B
CMake

# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16)
include(.cmake.conf)
project(QtMqtt
VERSION "${QT_REPO_MODULE_VERSION}"
DESCRIPTION "Qt Mqtt Libraries"
HOMEPAGE_URL "https://qt.io/"
LANGUAGES CXX C
)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network)
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick WebSockets # For tests
Gui Widgets) # For examples
qt_internal_project_setup()
qt_build_repo()