CMakeLists.txt 390 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
set(PRIVC_SRCS
    "crypto.cc"
    "privc_context.cc"
)

add_library(privc_o OBJECT ${PRIVC_SRCS})
add_dependencies(privc_o crypto privc3)

add_library(privc SHARED $<TARGET_OBJECTS:privc_o>)

target_link_libraries(privc psi)

#set(CMAKE_BUILD_TYPE Debug)

cc_test(crypto_test SRCS crypto_test.cc DEPS privc)
cc_test(privc_fixedpoint_tensor_test SRCS fixedpoint_tensor_test.cc DEPS privc)