https://github.com/stdware/vcpkg-overlay
Custom overlay configuration for vcpkg.
https://github.com/stdware/vcpkg-overlay
Last synced: 2 months ago
JSON representation
Custom overlay configuration for vcpkg.
- Host: GitHub
- URL: https://github.com/stdware/vcpkg-overlay
- Owner: stdware
- License: mit
- Created: 2023-11-22T19:37:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-16T17:55:11.000Z (2 months ago)
- Last Synced: 2026-01-17T05:45:47.634Z (2 months ago)
- Language: CMake
- Homepage:
- Size: 184 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VCPKG Overlay
Custom overlay configuration for vcpkg.
## Use Pre-built Qt Libraries
### Get Overlay
Clone `vcpkg-overlay` in the subdirectory `script/vcpkg` of your repository.
```sh
git clone https://github.com/SineStriker/vcpkg-overlay.git scripts/vcpkg
```
### Make Manifest File
Make configuration file `vcpkg.json` in subdirectory `scripts/vcpkg-manifest`.
```json
{
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"dependencies": [
"some-depencency"
],
"vcpkg-configuration": {
"overlay-ports": [
"../vcpkg/ports"
],
"overlay-triplets": [
"../vcpkg/triplets"
]
}
}
```
### Setup Environment
You need to install Qt libraries first. (Take Qt5 as an example)
#### Windows
```sh
set QT_DIR= # directory `Qt5Config.cmake` locates
set Qt5_DIR=%QT_DIR%
set VCPKG_KEEP_ENV_VARS=QT_DIR;Qt5_DIR
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
vcpkg install --x-manifest-root=../scripts/vcpkg-manifest --x-install-root=./installed --triplet=x64-windows
```
#### Unix
```sh
export QT_DIR= # directory `Qt5Config.cmake` locates
export Qt5_DIR=$QT_DIR
export VCPKG_KEEP_ENV_VARS="QT_DIR;Qt5_DIR"
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg install \
--x-manifest-root=../scripts/vcpkg-manifest \
--x-install-root=./installed \
--triplet=
# triplet:
# Mac: `x64-osx` or `arm64-osx`
# Linux: `x64-linux` or `arm64-linux`
```