-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (40 loc) · 954 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
cmake_minimum_required (VERSION 3.23)
project(
"brake"
VERSION
1.0
LANGUAGES
CXX
)
set (CMAKE_FOLDER ./)
set (name brake)
set (app
test/client.cpp
test/blinding.cpp
test/hash.cpp
test/fuzzyVault.cpp
test/brake.cpp
test/test.cpp
test/time.cpp
)
set (sources
src/core/Core.cpp
src/core/ec.cpp
src/client/Client.cpp
src/server/ComputationServer.cpp
src/server/AuthenticationServer.cpp
src/fuzzyVault/FJFXFingerprint.cpp
src/fuzzyVault/Thimble.cpp
)
find_package(OpenSSL REQUIRED)
include_directories(${OPENSSL_INCLUDE_DIR})
link_libraries(OpenSSL::SSL)
find_library(Thimble NAMES libthimble.a)
find_library(FJFX NAMES libFJFX.a libFRFXLL.a)
include_directories(./src)
foreach(sourcefile ${app})
string( REPLACE ".cpp" "" appname ${sourcefile} )
string( REPLACE "test/" "" appname ${appname} )
add_executable(${appname} ${sourcefile} ${sources})
target_link_libraries(${appname} FJFX FRFXLL thimble)
endforeach(sourcefile ${app})