qt: make qt dependencies a feature in vcpkg

so they are not included if building non-qt
This commit is contained in:
ts-korhonen
2022-02-06 13:30:39 +02:00
parent 7b3eaac6cf
commit 577a72748f
2 changed files with 16 additions and 5 deletions

View File

@@ -18,6 +18,10 @@ cmake_minimum_required(VERSION 3.16)
cmake_policy(SET CMP0091 NEW)
cmake_policy(SET CMP0079 NEW)
if (QT)
list(APPEND VCPKG_MANIFEST_FEATURES "qt-ui")
endif()
project(86Box
VERSION 3.2
DESCRIPTION "Emulator of x86-based systems"

View File

@@ -3,14 +3,21 @@
"version-string": "3.1",
"homepage": "https://86box.net/",
"documentation": "http://86box.readthedocs.io/",
"license": "GPL-2.0-only",
"license": "GPL-2.0-or-later",
"dependencies": [
"freetype",
"libpng",
"openal-soft",
"sdl2",
"rtmidi",
"rtmidi"
],
"features": {
"qt-ui": {
"description": "Qt User Interface",
"dependencies": [
"qt5-base",
"qt5-translations"
]
}
}
}