-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (38 loc) · 1.08 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.15)
project(kekmonitors)
set(CMAKE_CXX_STANDARD 17)
include(FetchContent)
set(spdlog_version v1.8.5)
set(json_version v3.9.1)
set(fmt_version 8.0.1)
# FIXME: CMAKE_ARGS not working
FetchContent_Declare(
fmt
PREFIX fmt
SOURCE_DIR ${PROJECT_SOURCE_DIR}/deps/fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG ${fmt_version}
GIT_SHALLOW True
)
include_directories(${PROJECT_SOURCE_DIR}/deps/fmt/include)
FetchContent_Declare(
spdlog
PREFIX spdlog
SOURCE_DIR ${PROJECT_SOURCE_DIR}/deps/spdlog
GIT_REPOSITORY https://github.com/gabime/spdlog.git
GIT_TAG ${spdlog_version}
GIT_SHALLOW True
)
include_directories(${PROJECT_SOURCE_DIR}/deps/spdlog/include)
FetchContent_Declare(
json
PREFIX json
SOURCE_DIR ${PROJECT_SOURCE_DIR}/deps/json/include/nlohmann
URL https://github.com/nlohmann/json/releases/download/${json_version}/json.hpp
DOWNLOAD_NO_EXTRACT True
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
)
include_directories(${PROJECT_SOURCE_DIR}/deps/json/include)
FetchContent_MakeAvailable(fmt spdlog json)
add_subdirectory(src)