-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
32 lines (23 loc) · 1021 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
cmake_minimum_required(VERSION 3.8)
project(btcr_did VERSION 1.0.0
DESCRIPTION "Creating and interacting with BTCR DIDs"
LANGUAGES C CXX )
set(CMAKE_CXX_STANDARD 11)
#if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
# message(FATAL_ERROR "In-source builds are not allowed.")
#endif("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
if(CMAKE_CXX_COMPILER_ID MATCHES GNU)
set(DCD_CXX_FLAGS -Wall -Wextra -Wpedantic -Wno-unknown-pragmas)
elseif(CMAKE_CXX_COMPILER_ID MATCHES Clang)
set(DCD_CXX_FLAGS -Weverything -Wno-c++98-compat -Wno-padded -Wno-missing-prototypes)
endif()
add_subdirectory(external/anyoption)
add_subdirectory(external/nlohmann)
add_subdirectory(src)
option(LIBTXREF_BUILD_GOOGLETEST "Build googletest" OFF)
option(LIBTXREF_BUILD_RAPIDCHECK "Build rapidcheck" OFF)
add_subdirectory(libtxref)
enable_testing()
add_subdirectory(test)
add_subdirectory(integration)