forked from shreya-28/Secure-ML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·35 lines (32 loc) · 1.03 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
cmake_minimum_required (VERSION 3.0)
project (Secure-ML)
set(NAME "Secure-ML")
set (CMAKE_CXX_STANDARD 11)
find_path(CMAKE_FOLDER NAMES cmake/emp-tool-config.cmake)
include(${CMAKE_FOLDER}/cmake/common.cmake)
include(${CMAKE_FOLDER}/cmake/source_of_randomness.cmake)
include(${CMAKE_FOLDER}/cmake/threading.cmake)
find_package(emp-ot REQUIRED)
find_package(Eigen3 REQUIRED NO_MODULE)
INCLUDE_DIRECTORIES(${EMP-OT_INCLUDE_DIRS})
set(CMAKE_BUILD_TYPE Debug)
# add_executable(ideal_functionality
# src/ideal_functionality.cpp
# src/util.cpp
# )
add_executable(secure_ML
src/secure_ML.cpp
src/linear_regression.cpp
src/online_phase.cpp
src/setup_phase.cpp
src/util.cpp
)
add_executable(matrix_generate
src/matrix_generate_main.cpp
src/matrix_generate_setup.cpp
src/online_phase.cpp
src/util.cpp
)
# target_link_libraries(ideal_functionality ${EMP-OT_LIBRARIES} Eigen3::Eigen)
target_link_libraries(secure_ML ${EMP-OT_LIBRARIES} Eigen3::Eigen)
target_link_libraries(matrix_generate ${EMP-OT_LIBRARIES} Eigen3::Eigen)