CMakeLists.txt 826 字节
Newer Older
J
jingqinghe 已提交
1 2 3 4 5 6 7 8
set(PRIVC3_SRCS
    "./aes.cc"
    "./paddle_tensor.cc"
    "./prng.cc"
    "./rand_utils.cc"
    "./tensor_adapter_factory.cc"
)

J
jhjiangcs 已提交
9 10 11 12
if (USE_AES_NI)
    add_compile_definitions(USE_AES_NI)
endif (USE_AES_NI)

J
jingqinghe 已提交
13 14 15 16
add_library(privc3_o OBJECT ${PRIVC3_SRCS})
add_dependencies(privc3_o fluid_framework)

add_library(privc3 STATIC $<TARGET_OBJECTS:privc3_o>)
J
jhjiangcs 已提交
17 18 19 20 21 22

if (USE_OPENMP)
    target_link_libraries(privc3 fluid_framework OpenMP::OpenMP_CXX OpenMP::OpenMP_C crypto)
else()
    target_link_libraries(privc3 fluid_framework crypto)
endif (USE_OPENMP)
J
jingqinghe 已提交
23 24 25 26 27 28

cc_test(fixedpoint_util_test SRCS fixedpoint_util_test.cc DEPS privc3)
cc_test(paddle_tensor_test SRCS paddle_tensor_test.cc DEPS privc3)
cc_test(boolean_tensor_test SRCS boolean_tensor_test.cc DEPS privc3)

cc_test(fixedpoint_tensor_test SRCS fixedpoint_tensor_test.cc DEPS privc3)