add install target (#7)

This commit is contained in:
Fan Zhang
2019-05-30 22:33:39 -04:00
committed by Xiao Wang
parent 77210c46d0
commit 163985c8a1
2 changed files with 6 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ project (emp-ag2pc)
set(NAME "emp-ag2pc")
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)
@@ -10,6 +11,9 @@ include(${CMAKE_FOLDER}/cmake/threading.cmake)
FIND_PACKAGE(emp-ot REQUIRED)
INCLUDE_DIRECTORIES(${EMP-OT_INCLUDE_DIRS})
install(DIRECTORY emp-ag2pc DESTINATION include)
install(DIRECTORY cmake/ DESTINATION cmake)
# Test cases
macro (add_test _name)
add_test_with_lib(${_name} ${EMP-OT_LIBRARIES})

View File

@@ -8,4 +8,5 @@ find_package_handle_standard_args(EMP-AG2PC DEFAULT_MSG EMP-AG2PC_INCLUDE_DIR)
if(EMP-AG2PC_FOUND)
set(EMP-AG2PC_INCLUDE_DIRS ${EMP-AG2PC_INCLUDE_DIR} ${EMP-OT_INCLUDE_DIRS})
endif()
set(EMP-AG2PC_LIBRARIES ${EMP-OT_LIBRARIES})
endif()