mirror of
https://github.com/build-cpp/cmkr
synced 2026-06-08 13:22:55 +00:00
1.1 KiB
1.1 KiB
layout, title, permalink, parent, nav_order
| layout | title | permalink | parent | nav_order |
|---|---|---|---|---|
| default | Dependencies from vcpkg | /examples/vcpkg | Examples | 4 |
Dependencies from vcpkg
Downloads fmt v7.1.3 using vcpkg and links an example target to it:
[project]
name = "vcpkg"
description = "Dependencies from vcpkg"
# See https://github.com/microsoft/vcpkg/releases for vcpkg versions
# See https://vcpkg.io/en/packages.html for available packages
[vcpkg]
version = "2021.05.12"
packages = ["fmt"]
[find-package]
fmt = {}
[target.example]
type = "executable"
sources = ["src/main.cpp"]
link-libraries = ["fmt::fmt"]
The bootstrapping of vcpkg is fully automated and no user interaction is necessary. You can disable vcpkg by setting CMKR_DISABLE_VCPKG=ON.
To specify package features you can use the following syntax: imgui[docking-experimental,freetype,sdl2-binding,opengl3-binding].
This page was automatically generated from tests/vcpkg/cmake.toml.