generated from koinos/koinos-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (33 loc) · 1.24 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
cmake_minimum_required(VERSION 3.19.0)
cmake_policy(VERSION 3.19.0...3.27.4)
include(FetchContent)
FetchContent_Declare(
koinos_cmake
GIT_REPOSITORY https://github.com/koinos/koinos-cmake.git
GIT_TAG v1.0.0)
FetchContent_MakeAvailable(koinos_cmake)
include("${koinos_cmake_SOURCE_DIR}/Koinos.cmake")
project(koinos_state_db
VERSION 1.1.1
DESCRIPTION "The Koinos statedb library"
LANGUAGES CXX C)
koinos_define_version()
koinos_add_package(Boost CONFIG REQUIRED
ADD_COMPONENTS log exception program_options test
FIND_COMPONENTS log log_setup exception program_options
)
koinos_add_package(rocksdb NAME RocksDB CONFIG REQUIRED)
koinos_add_package(Protobuf CONFIG REQUIRED)
koinos_add_package(ethash CONFIG REQUIRED)
koinos_add_package(libsecp256k1-vrf CONFIG REQUIRED)
koinos_add_package(nlohmann_json CONFIG REQUIRED)
koinos_add_package(OpenSSL REQUIRED)
koinos_add_package(yaml-cpp CONFIG REQUIRED)
koinos_add_package(gRPC CONFIG REQUIRED)
koinos_add_package(koinos_proto CONFIG REQUIRED)
koinos_add_package(koinos_exception CONFIG REQUIRED)
koinos_add_package(koinos_log CONFIG REQUIRED)
koinos_add_package(koinos_crypto CONFIG REQUIRED)
koinos_add_package(koinos_util CONFIG REQUIRED)
add_subdirectory(src)
add_subdirectory(tests)