build-cpp / vcpkg_template

Simple cmkr template to get you started with vcpkg right away.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitpod ready-to-code

vcpkg_template

This is a template showcasing cmkr together with vcpkg for frictionless cross platform dependency management with CMake.

Building (IDE)

Clone this repository and open it in your favorite IDE with CMake support (Visual Studio, CLion, Qt Creator). Everything should work out of the box.

Building (command line)

cmake -Bbuild

Then open the .sln (Windows) or run make (Unix) from the build directory.

cmake.toml

Under the hood cmkr generates the CMakeLists.txt required to build this project from the cmake.toml file:

[cmake]
version = "3.15"
cmkr-include = "cmake/cmkr.cmake"

[project]
name = "vcpkg_template"

# See https://vcpkg.io/en/packages.html for available packages
# Chose a version from https://github.com/microsoft/vcpkg/releases
[vcpkg]
version = "2021.05.12"
packages = ["fmt", "sqlite3"]

[find-package]
fmt = { version = "*" }
unofficial-sqlite3 = { version = "*" }

[target.example]
type = "executable"
sources = ["src/main.cpp"]
link-libraries = ["fmt::fmt", "unofficial::sqlite3::sqlite3"]

About

Simple cmkr template to get you started with vcpkg right away.

License:Boost Software License 1.0


Languages

Language:CMake 98.3%Language:C++ 1.7%