parent
ffdedbdace
commit
7b20d8c54c
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
# Automatically generated from tests/vcpkg/cmake.toml - DO NOT EDIT
|
||||||
|
layout: default
|
||||||
|
title: Dependencies from vcpkg
|
||||||
|
permalink: /examples/vcpkg
|
||||||
|
parent: Examples
|
||||||
|
nav_order: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
# Dependencies from vcpkg
|
||||||
|
|
||||||
|
Downloads [fmt v7.1.3](https://fmt.dev/7.1.3/) using [vcpkg](https://vcpkg.io/) and links an `example` target to it:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[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`.
|
||||||
|
|
||||||
|
<sup><sub>This page was automatically generated from [tests/vcpkg/cmake.toml](https://github.com/build-cpp/cmkr/tree/main/tests/vcpkg/cmake.toml).</sub></sup>
|
@ -0,0 +1,21 @@
|
|||||||
|
# Downloads [fmt v7.1.3](https://fmt.dev/7.1.3/) using [vcpkg](https://vcpkg.io/) 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`.
|
@ -0,0 +1,6 @@
|
|||||||
|
#include <fmt/core.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
fmt::print("Hello, world!\n");
|
||||||
|
}
|
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"$cmkr": "This file is automatically generated from cmake.toml - DO NOT EDIT",
|
||||||
|
"$cmkr-url": "https://github.com/build-cpp/cmkr",
|
||||||
|
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
||||||
|
"dependencies": [
|
||||||
|
"fmt"
|
||||||
|
],
|
||||||
|
"description": "Example of using vcpkg",
|
||||||
|
"name": "vcpkg",
|
||||||
|
"version-string": ""
|
||||||
|
}
|
Loading…
Reference in new issue