-
-
Notifications
You must be signed in to change notification settings - Fork 200
Expand file tree
/
Copy pathDependencies.cmake
More file actions
83 lines (74 loc) · 1.37 KB
/
Dependencies.cmake
File metadata and controls
83 lines (74 loc) · 1.37 KB
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
78
79
80
81
82
83
include(cmake/CPM.cmake)
# Done as a function so that updates to variables like
# CMAKE_CXX_FLAGS don't propagate out to other
# targets
function(myproject_setup_dependencies)
# For each dependency, see if it's
# already been provided to us by a parent project
if(NOT TARGET fmtlib::fmtlib)
cpmaddpackage(
NAME
fmt
GITHUB_REPOSITORY
"fmtlib/fmt"
GIT_TAG
"12.1.0"
SYSTEM
YES)
endif()
if(NOT TARGET spdlog::spdlog)
cpmaddpackage(
NAME
spdlog
VERSION
1.17.0
GITHUB_REPOSITORY
"gabime/spdlog"
SYSTEM
YES
OPTIONS
"SPDLOG_FMT_EXTERNAL ON")
endif()
if(NOT TARGET Catch2::Catch2WithMain)
cpmaddpackage(
NAME
Catch2
VERSION
3.12.0
GITHUB_REPOSITORY
"catchorg/Catch2"
SYSTEM
YES)
endif()
if(NOT TARGET CLI11::CLI11)
cpmaddpackage(
NAME
CLI11
VERSION
2.6.1
GITHUB_REPOSITORY
"CLIUtils/CLI11"
SYSTEM
YES)
endif()
if(NOT TARGET ftxui::screen)
cpmaddpackage(
NAME
FTXUI
VERSION
6.1.9
GITHUB_REPOSITORY
"ArthurSonzogni/FTXUI"
SYSTEM
YES)
endif()
if(NOT TARGET tools::tools)
cpmaddpackage(
NAME
tools
GITHUB_REPOSITORY
"lefticus/tools"
GIT_TAG
"main")
endif()
endfunction()