forked from XPIR-team/XPIR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
61 lines (45 loc) · 1.64 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
cmake_minimum_required(VERSION 2.6.0)
project(XPIR)
include(CMakeCompilers.txt)
enable_language(CXX ASM)
if(APPLE)
cmake_policy(SET CMP0042 NEW)
endif()
set(CMAKE_C_COMPILER "gcc")
set(CMAKE_CXX_COMPILER "g++")
set(CMAKE_CXX_FLAGS "-std=c++11 -fopenmp -ggdb -Wno-deprecated-declarations")
set(CMAKE_EXE_LINKER_FLAGS "-fopenmp")
set(BOOST_ROOT "./local")
SET( Boost_USE_STATIC_LIBS FALSE )
find_package(Boost 1.55.0 REQUIRED
COMPONENTS atomic chrono date_time exception program_options regex system thread program_options)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
find_package(GMP 6 REQUIRED)
find_package(MPFR 3.1.2 REQUIRED)
include_directories("/opt/local/include")
option(SEND_CATALOG "Send the catalog to the client (default is send catalog if |catalog|<1000)" ON)
if(SEND_CATALOG)
message(STATUS "Send the catalog to the client")
add_definitions(-DSEND_CATALOG)
else()
message(STATUS "Do not send the catalog to the client")
endif()
option(MULTI_THREAD "Use multi-threading" ON)
if(MULTI_THREAD)
message(STATUS "Use multi-threading")
add_definitions(-DMULTI_THREAD)
else()
message(STATUS "Do not use multi-threading")
endif()
option(PERF_TIMERS "Show performance measurements during execution" ON)
if(PERF_TIMERS)
message(STATUS "Show performance measurements during execution")
add_definitions(-DPERF_TIMERS)
else()
message(STATUS "Do not show performance measurements during execution")
endif()
add_subdirectory("apps")
add_subdirectory("crypto")
add_subdirectory("pir")