-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
25 lines (22 loc) · 991 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
cmake_minimum_required(VERSION 3.16)
set(CCF_DIR ${CMAKE_CURRENT_SOURCE_DIR}/CCF)
set(EVM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/eEVM)
include(${CCF_DIR}/cmake/preproject.cmake)
project(cloak-tee LANGUAGES C CXX)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/common.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/ccf.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/eevm.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/web3client.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/cloak.app.cmake)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/tests/sandbox/sandbox.sh ${CMAKE_CURRENT_BINARY_DIR}/sandbox.sh COPYONLY)
option(BUILD_TESTS "Build tests" OFF)
if (BUILD_TESTS)
enable_testing()
add_compile_definitions(WEB3_TEST)
add_compile_definitions(DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/cloak.tests.cmake)
endif()
option(CLANG_FORMAT "Enable clang format" OFF)
if(CLANG_FORMAT)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/install.cmake)
endif()