From 01e1986990faa84dc87b915cb9bd17e49351c2f6 Mon Sep 17 00:00:00 2001 From: cyjseagull Date: Wed, 20 Nov 2024 13:17:21 +0800 Subject: [PATCH] optmize link --- cpp/wedpr-computing/ppc-psi/src/cm2020-psi/CMakeLists.txt | 2 +- cpp/wedpr-computing/ppc-psi/src/ecdh-conn-psi/CMakeLists.txt | 2 +- cpp/wedpr-computing/ppc-psi/src/ecdh-multi-psi/CMakeLists.txt | 2 +- cpp/wedpr-computing/ppc-psi/src/ecdh-psi/CMakeLists.txt | 2 +- cpp/wedpr-computing/ppc-psi/src/labeled-psi/CMakeLists.txt | 2 +- cpp/wedpr-computing/ppc-psi/src/psi-framework/CMakeLists.txt | 2 +- cpp/wedpr-computing/ppc-psi/src/ra2018-psi/CMakeLists.txt | 2 +- cpp/wedpr-computing/ppc-psi/tests/CMakeLists.txt | 4 ++-- cpp/wedpr-storage/ppc-storage/src/CMakeLists.txt | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cpp/wedpr-computing/ppc-psi/src/cm2020-psi/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/src/cm2020-psi/CMakeLists.txt index 5b30a110..74fdf391 100644 --- a/cpp/wedpr-computing/ppc-psi/src/cm2020-psi/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/src/cm2020-psi/CMakeLists.txt @@ -28,4 +28,4 @@ add_library(${CM2020_PSI_TARGET} ${SRCS} ${OUT_TARS_H_LIST}) target_include_directories(${CM2020_PSI_TARGET} PUBLIC $) -target_link_libraries(${CM2020_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${BCOS_UTILITIES_TARGET} ${TARS_PROTOCOL_TARGET} ${CRYPTO_TARGET} TBB::tbb) +target_link_libraries(${CM2020_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${CRYPTO_TARGET} TBB::tbb) diff --git a/cpp/wedpr-computing/ppc-psi/src/ecdh-conn-psi/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/src/ecdh-conn-psi/CMakeLists.txt index 5f113b46..2affec1b 100644 --- a/cpp/wedpr-computing/ppc-psi/src/ecdh-conn-psi/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/src/ecdh-conn-psi/CMakeLists.txt @@ -28,4 +28,4 @@ add_library(${ECDH_CONN_PSI_TARGET} ${SRCS} ${OUT_TARS_H_LIST}) target_include_directories(${ECDH_CONN_PSI_TARGET} PUBLIC $) -target_link_libraries(${ECDH_CONN_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${FRONT_TARGET} ${BCOS_UTILITIES_TARGET} ${TARS_PROTOCOL_TARGET} ${CRYPTO_TARGET} ${TOOLS_TARGET} ${PROTOBUF_TARGET} TBB::tbb) \ No newline at end of file +target_link_libraries(${ECDH_CONN_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${CRYPTO_TARGET} ${TOOLS_TARGET} ${PROTOBUF_TARGET} TBB::tbb) \ No newline at end of file diff --git a/cpp/wedpr-computing/ppc-psi/src/ecdh-multi-psi/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/src/ecdh-multi-psi/CMakeLists.txt index d0664c59..a1097acd 100644 --- a/cpp/wedpr-computing/ppc-psi/src/ecdh-multi-psi/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/src/ecdh-multi-psi/CMakeLists.txt @@ -28,4 +28,4 @@ add_library(${ECDH_MULTI_PSI_TARGET} ${SRCS} ${OUT_TARS_H_LIST}) target_include_directories(${ECDH_MULTI_PSI_TARGET} PUBLIC $) -target_link_libraries(${ECDH_MULTI_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${FRONT_TARGET} ${BCOS_UTILITIES_TARGET} ${TARS_PROTOCOL_TARGET} ${CRYPTO_TARGET} TBB::tbb) \ No newline at end of file +target_link_libraries(${ECDH_MULTI_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${CRYPTO_TARGET} TBB::tbb) \ No newline at end of file diff --git a/cpp/wedpr-computing/ppc-psi/src/ecdh-psi/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/src/ecdh-psi/CMakeLists.txt index bd2bc740..e3876908 100644 --- a/cpp/wedpr-computing/ppc-psi/src/ecdh-psi/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/src/ecdh-psi/CMakeLists.txt @@ -1,3 +1,3 @@ file(GLOB_RECURSE SRCS *.cpp) add_library(${ECDH_2PC_PSI_TARGET} ${SRCS}) -target_link_libraries(${ECDH_2PC_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${TARS_PROTOCOL_TARGET} ${TOOLS_TARGET}) \ No newline at end of file +target_link_libraries(${ECDH_2PC_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${TOOLS_TARGET}) \ No newline at end of file diff --git a/cpp/wedpr-computing/ppc-psi/src/labeled-psi/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/src/labeled-psi/CMakeLists.txt index a0bb25c0..5c029ce3 100644 --- a/cpp/wedpr-computing/ppc-psi/src/labeled-psi/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/src/labeled-psi/CMakeLists.txt @@ -27,4 +27,4 @@ add_library(${LABELED_PSI_TARGET} ${SRCS} ${OUT_TARS_H_LIST}) target_include_directories(${LABELED_PSI_TARGET} PUBLIC $) -target_link_libraries(${LABELED_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${TARS_PROTOCOL_TARGET} apsi SEAL::seal Kuku::kuku TBB::tbb) +target_link_libraries(${LABELED_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} apsi SEAL::seal Kuku::kuku TBB::tbb) diff --git a/cpp/wedpr-computing/ppc-psi/src/psi-framework/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/src/psi-framework/CMakeLists.txt index 69d9b68e..de0e60d6 100644 --- a/cpp/wedpr-computing/ppc-psi/src/psi-framework/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/src/psi-framework/CMakeLists.txt @@ -26,4 +26,4 @@ file(GLOB_RECURSE SRCS *.cpp) add_library(${PSI_FRAMEWORK_TARGET} ${SRCS} ${OUT_TARS_H_LIST}) target_include_directories(${PSI_FRAMEWORK_TARGET} PUBLIC $) -target_link_libraries(${PSI_FRAMEWORK_TARGET} PUBLIC ${FRONT_TARGET} ${IO_TARGET} ${TARS_PROTOCOL_TARGET}) +target_link_libraries(${PSI_FRAMEWORK_TARGET} PUBLIC ${BCOS_UTILITIES_TARGET} ${FRONT_TARGET} ${PROTOCOL_TARGET} ${TARS_PROTOCOL_TARGET} ${IO_TARGET}) diff --git a/cpp/wedpr-computing/ppc-psi/src/ra2018-psi/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/src/ra2018-psi/CMakeLists.txt index d38c319b..0d00d3ca 100644 --- a/cpp/wedpr-computing/ppc-psi/src/ra2018-psi/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/src/ra2018-psi/CMakeLists.txt @@ -1,3 +1,3 @@ file(GLOB_RECURSE SRCS *.cpp) add_library(${RA2018_PSI_TARGET} ${SRCS}) -target_link_libraries(${RA2018_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${TARS_PROTOCOL_TARGET} ${TOOLS_TARGET}) \ No newline at end of file +target_link_libraries(${RA2018_PSI_TARGET} PUBLIC ${PSI_FRAMEWORK_TARGET} ${TOOLS_TARGET}) \ No newline at end of file diff --git a/cpp/wedpr-computing/ppc-psi/tests/CMakeLists.txt b/cpp/wedpr-computing/ppc-psi/tests/CMakeLists.txt index ef18c749..327c5bc0 100644 --- a/cpp/wedpr-computing/ppc-psi/tests/CMakeLists.txt +++ b/cpp/wedpr-computing/ppc-psi/tests/CMakeLists.txt @@ -6,6 +6,6 @@ set(TEST_BINARY_NAME test-ppc-psi) add_executable(${TEST_BINARY_NAME} ${SOURCES}) target_include_directories(${TEST_BINARY_NAME} PRIVATE .) -target_link_libraries(${TEST_BINARY_NAME} ${BS_ECDH_PSI_TARGET} ${ECDH_CONN_PSI_TARGET} ${RA2018_PSI_TARGET} ${LABELED_PSI_TARGET} ${CM2020_PSI_TARGET} ${ECDH_2PC_PSI_TARGET} ${PROTOCOL_TARGET} ${LABELED_PSI_TARGET} ${CRYPTO_TARGET} ${BOOST_UNIT_TEST}) -target_link_libraries(${TEST_BINARY_NAME} ${RA2018_PSI_TARGET} ${LABELED_PSI_TARGET} ${CM2020_PSI_TARGET} ${ECDH_2PC_PSI_TARGET} ${PROTOCOL_TARGET} ${LABELED_PSI_TARGET} ${CRYPTO_TARGET} ${BOOST_UNIT_TEST}) +target_link_libraries(${TEST_BINARY_NAME} ${BS_ECDH_PSI_TARGET} ${ECDH_CONN_PSI_TARGET} ${RA2018_PSI_TARGET} ${LABELED_PSI_TARGET} ${CM2020_PSI_TARGET} ${ECDH_2PC_PSI_TARGET} ${LABELED_PSI_TARGET} ${CRYPTO_TARGET} ${BOOST_UNIT_TEST}) +target_link_libraries(${TEST_BINARY_NAME} ${RA2018_PSI_TARGET} ${LABELED_PSI_TARGET} ${CM2020_PSI_TARGET} ${ECDH_2PC_PSI_TARGET} ${LABELED_PSI_TARGET} ${CRYPTO_TARGET} ${BOOST_UNIT_TEST}) add_test(NAME test-ppc-psi WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} COMMAND ${TEST_BINARY_NAME}) \ No newline at end of file diff --git a/cpp/wedpr-storage/ppc-storage/src/CMakeLists.txt b/cpp/wedpr-storage/ppc-storage/src/CMakeLists.txt index 165ec620..5e21c8da 100644 --- a/cpp/wedpr-storage/ppc-storage/src/CMakeLists.txt +++ b/cpp/wedpr-storage/ppc-storage/src/CMakeLists.txt @@ -4,4 +4,4 @@ add_library(${STORAGE_TARGET} ${SRCS}) find_package(redis++ REQUIRED) find_package(unofficial-mysql-connector-cpp REQUIRED) -target_link_libraries(${STORAGE_TARGET} PUBLIC redis++::redis++_static TCMalloc unofficial::mysql-connector-cpp::connector resolv ${HDFS_LIB}) +target_link_libraries(${STORAGE_TARGET} PUBLIC redis++::redis++_static unofficial::mysql-connector-cpp::connector resolv ${HDFS_LIB})