-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
executable file
·74 lines (61 loc) · 1.02 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
include_directories(.)
# Profiling
add_executable(
profile
profiling/profile.cpp
)
target_link_libraries(
profile
${LIBFF_LIBRARIES}
${GMP_LIBRARIES}
${GMPXX_LIBRARIES}
${PROCPS_LIBRARIES}
)
set_target_properties(
profile
PROPERTIES
COMPILE_FLAGS "-fopenmp"
LINK_FLAGS "-fopenmp"
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_HOME_DIRECTORY}
)
target_compile_definitions(
profile
PUBLIC
-DMULTICORE
)
# Tests
add_executable(
test_circuit
EXCLUDE_FROM_ALL
test/test_circuit.cpp
)
target_link_libraries(
test_circuit
${LIBFF_LIBRARIES}
${GMP_LIBRARIES}
${GMPXX_LIBRARIES}
${PROCPS_LIBRARIES}
)
add_executable(
test_verifier
EXCLUDE_FROM_ALL
test/test_verifier.cpp
)
target_link_libraries(
test_verifier
${LIBFF_LIBRARIES}
${GMP_LIBRARIES}
${GMPXX_LIBRARIES}
${PROCPS_LIBRARIES}
)
include(CTest)
add_test(
NAME test_circuit
COMMAND test_circuit
)
add_test(
NAME test_verifier
COMMAND test_verifier
)
add_dependencies(check test_circuit)
add_dependencies(check test_verifier)