forked from lefticus/cons_expr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencies.cmake
More file actions
35 lines (28 loc) · 764 Bytes
/
Copy pathDependencies.cmake
File metadata and controls
35 lines (28 loc) · 764 Bytes
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
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(cons_expr_setup_dependencies)
# For each dependency, see if it's
# already been provided to us by a parent project
if(NOT TARGET spdlog::spdlog)
cpmaddpackage(
NAME
spdlog
VERSION
1.14.1
GITHUB_REPOSITORY
"gabime/spdlog"
OPTIONS
"SPDLOG_USE_STD_FORMAT ON")
endif()
if(NOT TARGET Catch2::Catch2WithMain)
cpmaddpackage("gh:catchorg/Catch2@3.8.1")
endif()
if(NOT TARGET CLI11::CLI11)
cpmaddpackage("gh:CLIUtils/CLI11@2.4.2")
endif()
if(NOT TARGET ftxui::screen)
cpmaddpackage("gh:ArthurSonzogni/FTXUI#main")
endif()
endfunction()