forked from profitviews/heisenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (32 loc) · 1011 Bytes
/
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
cmake_minimum_required(VERSION 3.27)
# set the project name
project(cpp_crypto_algos LANGUAGES CXX VERSION 2.0)
include(FetchContent)
FetchContent_Declare(
ccapi
GIT_REPOSITORY https://github.com/profitviews/ccapi.git
GIT_TAG windows-msvc
)
FetchContent_Declare(
websocketpp
GIT_REPOSITORY https://github.com/zaphoyd/websocketpp.git
GIT_TAG develop
)
FetchContent_Declare(
csv2
GIT_REPOSITORY https://github.com/p-ranav/csv2
GIT_TAG master
)
FetchContent_MakeAvailable(ccapi websocketpp csv2)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
find_package(Boost REQUIRED)
find_package(fmt REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(RapidJSON REQUIRED)
find_package(Threads REQUIRED)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
configure_file(cmake/cpp_crypto_algos_config.hpp.in cpp_crypto_algos_config.hpp)
include(clang_format)
add_subdirectory(src)