-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
28 lines (25 loc) · 1.53 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
# CMakeLists files in this project can
# refer to the root source directory of the project as ${HELLO_SOURCE_DIR} and
# to the root binary directory of the project as ${HELLO_BINARY_DIR}.
cmake_minimum_required (VERSION 3.2)
project (CODE)
find_package( Boost 1.79 COMPONENTS locale unit_test_framework random REQUIRED )
include_directories( ${Boost_INCLUDE_DIRS} )
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/marshalling/core/include)
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/algebra/include)
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/multiprecision/include)
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/marshalling/algebra/include)
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/marshalling/multiprecision/include)
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/hash/include)
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/block/include)
include_directories( ${PROJECT_SOURCE_DIR}/../crypto3/libs/pubkey/include)
include_directories( ${PROJECT_SOURCE_DIR}/include)
ADD_EXECUTABLE( example example/signature.cpp util/base_converter.cpp)
ADD_EXECUTABLE( bilinearity example/bilinearity.cpp )
ADD_EXECUTABLE( genparams util/generate_params.cpp )
ADD_EXECUTABLE( test test/test.cpp util/base_converter.cpp)
link_directories(${Boost_LIBRARY_DIRS})
TARGET_LINK_LIBRARIES( bilinearity ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES( genparams ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES( example ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES( test ${Boost_LIBRARIES})