generated from build-cpp/vcpkg_template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
cmake.toml
33 lines (29 loc) · 759 Bytes
/
cmake.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[cmake]
version = "3.15"
cmkr-include = "cmake/cmkr.cmake"
[project]
name = "glfw_template"
include-after = [
"cmake/generate_shaders.cmake"
]
# 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 = ["glfw3", "glew"]
# vcpkg will download the packages, but you still need to find them to use them
[find-package]
glfw3 = {}
GLEW = {}
[target.example]
type = "executable"
sources = [
"src/example.cpp",
"shaders/FragmentShader.glsl",
"shaders/VertexShader.glsl",
]
link-libraries = ["glfw", "GLEW::GLEW"]
compile-features = ["cxx_std_11"]
cmake-after = """
generate_shaders(${CMKR_TARGET})
"""