forked from DigiAsset-Core/DigiAsset_Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (31 loc) · 730 Bytes
/
CMakeLists.txt
File metadata and controls
39 lines (31 loc) · 730 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
36
37
38
39
cmake_minimum_required(VERSION 3.24)
project(digiasset_core)
option(BUILD_CLI "Build CLI" ON)
option(BUILD_WEB "Build Web Server" ON)
option(BUILD_TEST "Build Tests" OFF)
# Set compiler settings
set(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_FLAGS "-std=c++11 -g -Wall")
# Set version number
SET(MAJOR_VERSION 0)
SET(MINOR_VERSION 3)
SET(PATCH_VERSION 0)
SET(SO_VERSION 0)
# Add source directory
include_directories(src)
ADD_SUBDIRECTORY(src)
#create cli
if(BUILD_CLI)
include_directories(cli)
ADD_SUBDIRECTORY(cli)
endif()
#create web
if(BUILD_WEB)
include_directories(web)
ADD_SUBDIRECTORY(web)
endif()
#build test script
if(BUILD_TEST)
set(GOOGLETEST_VERSION 1.11.0)
ADD_SUBDIRECTORY(tests)
endif()