diff options
author | Doris Verria <doris.verria@qt.io> | 2020-12-21 11:19:46 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-01-20 19:14:40 +0000 |
commit | 147e4acb1cd30e2547c8a107fb56d37dda75f961 (patch) | |
tree | 583e39c75d21bb13a10dda2cc49a4346bd74edd4 /CMakeLists.txt | |
parent | b125e0861a3077cde3754c282afef053af769863 (diff) |
Initial Cmake port for qtmultimedia
Fixes: QTBUG-89540
Change-Id: I2cf8d0edae2769a53cadd667ab5ac4f9cb754a50
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..7e6ed4476 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,26 @@ +# Generated from qtmultimedia.pro. + +cmake_minimum_required(VERSION 3.15.0) + +include(.cmake.conf) +project(QtMultimedia + VERSION "${QT_REPO_MODULE_VERSION}" + DESCRIPTION "Qt Multimedia Libraries" + HOMEPAGE_URL "https://qt.io/" + LANGUAGES CXX C +) + +# special case begin +find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Gui Network) +# find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS SET_ME_TO_SOMETHING_USEFUL) +# special case end + +if(NOT TARGET Qt::Gui) + message(NOTICE "Skipping the build as the condition \"TARGET Qt::Gui\" is not met.") + return() +endif() +if(NOT TARGET Qt::Network) + message(NOTICE "Skipping the build as the condition \"TARGET Qt::Network\" is not met.") + return() +endif() +qt_build_repo() |