diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..0e442e4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,29 @@ +# Copyright (C) 2024 The Qt Company Ltd. +# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Qt-Commercial + +cmake_minimum_required(VERSION 3.16) + +project( + QtCleverAudioPlugin + VERSION 0.1 + DESCRIPTION "Qt Integration with the CLever Audio Plugin standard" + LANGUAGES CXX +) + +option(ADD_EXAMPLES "Add examples" ON) + +find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Grpc Protobuf) +qt_standard_project_setup(REQUIRES 6.6) + +message(STATUS "Qt6 Version: " ${Qt6_VERSION}) +message(STATUS "Qt6 Path: " ${Qt6_DIR}) + +set(MODULE_OUT "${CMAKE_CURRENT_BINARY_DIR}" CACHE STRING "Output directory for the module") + +add_subdirectory(src) + +if (ADD_EXAMPLES) + list(APPEND QML_IMPORT_PATHS "${MODULE_OUT}") + set(QML_IMPORT_PATH "${MODULE_OUT}" CACHE STRING "QML import paths") + add_subdirectory(examples) +endif() |
