qt: make qt dependencies a feature in vcpkg
so they are not included if building non-qt
This commit is contained in:
@@ -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"
|
||||
|
11
vcpkg.json
11
vcpkg.json
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user