-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathshseDependencies.cmake
77 lines (68 loc) · 2.14 KB
/
shseDependencies.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
include(FetchContent)
FetchContent_Declare(
brotli
GIT_REPOSITORY https://github.com/google/brotli
GIT_TAG v1.1.0
OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(brotli)
FetchContent_Declare(
nlohmann_json_schema_validator
GIT_REPOSITORY https://github.com/pboettch/json-schema-validator
GIT_TAG 2.3.0
OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(nlohmann_json_schema_validator)
FetchContent_Declare(
spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog
GIT_TAG v1.14.1
OVERRIDE_FIND_PACKAGE
)
FetchContent_GetProperties(spdlog)
if (NOT spdlog_POPULATED)
FetchContent_Populate(spdlog)
set(SPDLOG_INSTALL ON CACHE INTERNAL "Install SPDLOG for CommonLibSSE")
set(SPDLOG_USE_STD_FORMAT ON CACHE INTERNAL "Use std::format in SPDLOG, not fmt")
add_subdirectory(${spdlog_SOURCE_DIR} ${spdlog_BINARY_DIR})
endif()
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2
GIT_TAG v3.6.0
OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(Catch2)
FetchContent_Declare(
rapidcsv
GIT_REPOSITORY https://github.com/d99kris/rapidcsv
GIT_TAG v8.82
OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(rapidcsv)
set(RAPIDCSV_INCLUDE_DIRS ${rapidcsv_SOURCE_DIR}/src)
# VR supported in repo with PlayerCharacter RE, and don't worry about tests
set(BUILD_TESTS OFF)
FetchContent_Declare(
CommonLibSSE
GIT_REPOSITORY https://github.com/alandtse/CommonLibVR
GIT_TAG 6153f2f27bce6fc25f2b5a8b6a87970007becece
OVERRIDE_FIND_PACKAGE
)
FetchContent_MakeAvailable(CommonLibSSE)
FetchContent_Declare(
MergeMapper
GIT_REPOSITORY https://github.com/alandtse/MergeMapper
GIT_TAG v1.5.0
)
FetchContent_GetProperties(MergeMapper)
if(NOT MergeMapper_POPULATED)
FetchContent_Populate(MergeMapper)
endif()
include_directories(${mergemapper_SOURCE_DIR}/include)
target_compile_options(CommonLibSSE PUBLIC "/I${rapidcsv_SOURCE_DIR}/src")
find_package(spdlog CONFIG REQUIRED)
find_package(directxtk CONFIG REQUIRED)
find_package(CommonLibSSE CONFIG REQUIRED)
find_package(nlohmann_json_schema_validator CONFIG REQUIRED)
find_package(brotli CONFIG REQUIRED)