-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·38 lines (27 loc) · 1.12 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
cmake_minimum_required (VERSION 2.8.11)
project (emp-input-validity)
include_directories(${CMAKE_SOURCE_DIR})
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} cmake/)
FIND_PACKAGE(emp-ot)
INCLUDE_DIRECTORIES(${EMP-OT_INCLUDE_DIRS})
set (CMAKE_C_FLAGS "-pthread -Wall -march=native -O3 -maes")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg -ggdb")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++0x")
macro (add_test _name)
add_executable("test_${_name}" "test/${_name}.cpp" ${basics})
target_link_libraries("test_${_name}" relic ${OPENSSL_LIBRARIES} gmp ${EMP-TOOL_LIBRARIES})
endmacro()
macro (add_bench _name)
add_executable("bench_${_name}" "bench/${_name}.cpp" ${basics})
target_link_libraries("bench_${_name}" relic ${OPENSSL_LIBRARIES} gmp ${EMP-TOOL_LIBRARIES})
endmacro()
macro (add_example _name)
add_executable("example_${_name}" "example/${_name}.cpp" ${basics})
target_link_libraries("example_${_name}" relic ${OPENSSL_LIBRARIES} gmp ${EMP-TOOL_LIBRARIES})
endmacro()
set(basics
)
add_test (input-dev)
add_bench (input-check-cutoff)
add_bench (input-check-malicious)