forked from 55199789/SWAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (33 loc) · 1.08 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
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
project(SWAT VERSION 1.0
DESCRIPTION "Secure DB for range queries with differentially oblivious updates and smoothed search frequency"
LANGUAGES C CXX)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/rocksdb/librocksdb.a)
execute_process(COMMAND make static_lib -j
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/rocksdb
)
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
set(ROCKSDB_INCLUDE_PATH ${CMAKE_SOURCE_DIR}/rocksdb/include)
set(ROCKSDB_LIBARIES
${CMAKE_SOURCE_DIR}/rocksdb/librocksdb.a
snappy
bz2
dl
z
zstd
lz4
)
OPTION(OBLIVIOUSMERGE "Option description" ON)
IF(OBLIVIOUSMERGE)
ADD_DEFINITIONS(-DOBLIVIOUSMERGE)
ENDIF(OBLIVIOUSMERGE)
IF(NOT DEFINED RECORD_LENGTH_IN_BYTE)
SET(RECORD_LENGTH_IN_BYTE 4096)
ENDIF()
message(RECORD_LENGTH_IN_BYTE=${RECORD_LENGTH_IN_BYTE})
ADD_DEFINITIONS(-DRECORD_LENGTH_IN_BYTE=${RECORD_LENGTH_IN_BYTE})
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
find_package(SGX REQUIRED)
add_subdirectory(clientProxy)
add_subdirectory(serverProxy)