-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
47 lines (37 loc) · 1022 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
project(qaptools)
cmake_minimum_required(VERSION 3.1)
set (CMAKE_CXX_STANDARD 11)
find_path(GMP_INCLUDE_DIR NAMES gmp.h)
find_library(GMP_LIBRARIES NAMES gmp libgmp)
find_library(GMPXX_LIBRARIES NAMES gmpxx libgmpxx)
include_directories(${GMP_INCLUDE_DIR})
include_directories(depends/ate-pairing/include)
include_directories(depends/xbyak)
add_definitions(-DBN_SUPPORT_SNARK=1)
add_library(
zm
STATIC
depends/ate-pairing/src/zm.cpp
depends/ate-pairing/src/zm2.cpp
)
add_library(
qap
STATIC
key.cpp
proof.cpp
modp.cpp
base.cpp
qap2key.cpp
fft.cpp
prove.cpp
qap.cpp
verify.cpp
)
link_libraries(qap zm ${GMP_LIBRARIES} ${GMPXX_LIBRARIES})
add_executable(qapgen qapgen.cpp)
add_executable(qapcoeffcache qapcoeffcache.cpp)
add_executable(qapgenf qapgenf.cpp)
add_executable(qapinput qapinput.cpp)
add_executable(qapprove qapprove.cpp)
add_executable(qapver qapver.cpp)
install (TARGETS qapgen qapcoeffcache qapgenf qapinput qapprove qapver DESTINATION bin)