-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy paththirdparty.cmake
59 lines (52 loc) · 1.43 KB
/
thirdparty.cmake
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
cmake_minimum_required(VERSION 3.25)
find_package(Vulkan 1.3.275 REQUIRED)
# GPU-side allocator for Vulkan by AMD
CPMAddPackage(
NAME VulkanMemoryAllocator
GITHUB_REPOSITORY GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator
# A little bit after v3.1.0 to get nice cmake
GIT_TAG b8e57472fffa3bd6e0a0b675f4615bf0a823ec4d
)
# VMA headers emit a bunch of warnings >:(
set_property(TARGET VulkanMemoryAllocator PROPERTY SYSTEM TRUE)
# Official library for parsing SPIRV bytecode
# We grab the exact SDK version from github so that
# you don't have to remember to mark a checkbox while installing the SDK =)
CPMAddPackage(
NAME SpirvReflect
GITHUB_REPOSITORY KhronosGroup/SPIRV-Reflect
GIT_TAG "vulkan-sdk-${Vulkan_VERSION}"
OPTIONS
"SPIRV_REFLECT_EXECUTABLE OFF"
"SPIRV_REFLECT_STRIPPER OFF"
"SPIRV_REFLECT_EXAMPLES OFF"
"SPIRV_REFLECT_BUILD_TESTS OFF"
"SPIRV_REFLECT_STATIC_LIB ON"
)
# Fmt is a dependency of spdlog, but to be
# safe we explicitly specify our version
CPMAddPackage(
NAME fmt
GITHUB_REPOSITORY fmtlib/fmt
GIT_TAG 10.2.1
OPTIONS
"FMT_SYSTEM_HEADERS"
"FMT_DOC OFF"
"FMT_INSTALL OFF"
"FMT_TEST OFF"
)
# Simple logging without headaches
CPMAddPackage(
NAME spdlog
GITHUB_REPOSITORY gabime/spdlog
VERSION 1.13.0
OPTIONS
SPDLOG_FMT_EXTERNAL
)
# A profiler for both CPU and GPU
CPMAddPackage(
GITHUB_REPOSITORY wolfpld/tracy
GIT_TAG v0.11.1
OPTIONS
"TRACY_ON_DEMAND ON"
)