-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (23 loc) · 837 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
31 lines (23 loc) · 837 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
project(DPFPIR)
cmake_minimum_required(VERSION 3.4.1)
enable_language(C CXX)
set(CMAKE_CXX_STANDARD 14)
set(SRCS
AES.cpp
Defines.cpp
Log.cpp
PRNG.cpp
dpf.cpp
hashdatastore.cpp)
set(CMAKE_C_FLAGS "-ffunction-sections -Wall -maes -msse2 -msse4.1 -mavx2 -mpclmul -Wfatal-errors -pthread -Wno-strict-overflow -fPIC -Wno-ignored-attributes")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++14")
# Select flags.
SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO " -O2 -g -ggdb -rdynamic")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb -rdynamic")
add_executable(dpf_pir ${SRCS} main.cpp)
target_link_libraries(dpf_pir crypto)
add_executable(bench ${SRCS} bench.cpp)
target_link_libraries(bench crypto)
add_executable(dpf_tests ${SRCS} test.cpp)
target_link_libraries(dpf_tests crypto)