Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Use CMake imported targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre de Fréminville committed Mar 31, 2020
1 parent 6c72703 commit b82d941
Show file tree
Hide file tree
Showing 13 changed files with 154 additions and 1,308 deletions.
1,162 changes: 0 additions & 1,162 deletions depends/libhdfs3/CMake/FindBoost.cmake

This file was deleted.

9 changes: 9 additions & 0 deletions depends/libhdfs3/CMake/FindCurl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@ INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CURL DEFAULT_MSG CURL_LIBRARIES CURL_INCLUDE_DIR)

MARK_AS_ADVANCED(CURL_INCLUDE_DIR CURL_LIBRARIES)

if(CURL_FOUND AND NOT TARGET Curl::Curl)
add_library(Curl::Curl INTERFACE IMPORTED)
set_target_properties(Curl::Curl
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${CURL_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "${CURL_LIBRARIES}"
)
endif()
11 changes: 10 additions & 1 deletion depends/libhdfs3/CMake/FindGSasl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ INCLUDE(FindPackageHandleStandardArgs)
# all listed variables are TRUE
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GSASL DEFAULT_MSG GSASL_LIBRARIES GSASL_INCLUDE_DIR)

MARK_AS_ADVANCED(GSASL_INCLUDE_DIR GSASL_LIBRARIES)
MARK_AS_ADVANCED(GSASL_INCLUDE_DIR GSASL_LIBRARIES)

if(GSASL_FOUND AND NOT TARGET GSASL::GSASL)
add_library(GSASL::GSASL INTERFACE IMPORTED)
set_target_properties(GSASL::GSASL
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${GSASL_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "${GSASL_LIBRARIES}"
)
endif()
9 changes: 9 additions & 0 deletions depends/libhdfs3/CMake/FindGoogleTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,12 @@ set(GoogleTest_LIBRARIES ${Gtest_LIBRARY} ${Gmock_LIBRARY})
mark_as_advanced(
GoogleTest_INCLUDE_DIR
GoogleTest_LIBRARIES)

if(GoogleTest_FOUND AND NOT TARGET GoogleTest::GoogleTest)
add_library(GoogleTest::GoogleTest INTERFACE IMPORTED)
set_target_properties(GoogleTest::GoogleTest
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${GoogleTest_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "${GoogleTest_LIBRARIES}"
)
endif()
9 changes: 9 additions & 0 deletions depends/libhdfs3/CMake/FindKERBEROS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(KERBEROS DEFAULT_MSG KERBEROS_LIBRARIES KERBEROS_INCLUDE_DIRS)

MARK_AS_ADVANCED(KERBEROS_LIBRARIES KERBEROS_INCLUDE_DIRS)

if(KERBEROS_FOUND AND NOT TARGET KERBEROS::KERBEROS)
add_library(KERBEROS::KERBEROS INTERFACE IMPORTED)
set_target_properties(KERBEROS::KERBEROS
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${KERBEROS_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${KERBEROS_LIBRARIES}"
)
endif()
9 changes: 9 additions & 0 deletions depends/libhdfs3/CMake/FindLibUUID.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUUID DEFAULT_MSG LIBUUID_LIBRARIES LIBUUID_INCLUDE_DIRS)

MARK_AS_ADVANCED(LIBUUID_LIBRARIES LIBUUID_INCLUDE_DIRS)

if(LIBUUID_FOUND AND NOT TARGET LibUUID::LibUUID)
add_library(LibUUID::LibUUID INTERFACE IMPORTED)
set_target_properties(LibUUID::LibUUID
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${LIBUUID_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${LIBUUID_LIBRARIES}"
)
endif()
11 changes: 10 additions & 1 deletion depends/libhdfs3/CMake/FindSSL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,13 @@ INCLUDE(FindPackageHandleStandardArgs)
# all listed variables are TRUE
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SSL DEFAULT_MSG SSL_LIBRARIES SSL_INCLUDE_DIR)

MARK_AS_ADVANCED(SSL_INCLUDE_DIR SSL_LIBRARIES)
MARK_AS_ADVANCED(SSL_INCLUDE_DIR SSL_LIBRARIES)

if(SSL_FOUND AND NOT TARGET SSL::SSL)
add_library(SSL::SSL INTERFACE IMPORTED)
set_target_properties(SSL::SSL
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${SSL_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "${SSL_LIBRARIES}"
)
endif()
5 changes: 2 additions & 3 deletions depends/libhdfs3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ FIND_PACKAGE(KERBEROS REQUIRED)
FIND_PACKAGE(GSasl REQUIRED)
FIND_PACKAGE(GoogleTest REQUIRED)
FIND_PACKAGE(SSL REQUIRED)
FIND_PACKAGE(CURL REQUIRED)
INCLUDE_DIRECTORIES(${GoogleTest_INCLUDE_DIR})
LINK_LIBRARIES(${GoogleTest_LIBRARIES})
FIND_PACKAGE(Curl REQUIRED)
FIND_PACKAGE(Boost REQUIRED)

IF(OS_LINUX)
FIND_PACKAGE(LibUUID REQUIRED)
Expand Down
79 changes: 37 additions & 42 deletions depends/libhdfs3/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,19 @@ ADD_CUSTOM_COMMAND(
TARGET_LINK_LIBRARIES(libhdfs3-static pthread)
TARGET_LINK_LIBRARIES(libhdfs3-shared pthread)

TARGET_LINK_LIBRARIES(libhdfs3-static Boost::boost)
TARGET_LINK_LIBRARIES(libhdfs3-shared Boost::boost)
IF(NEED_BOOST)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(libhdfs3-static boost_thread)
TARGET_LINK_LIBRARIES(libhdfs3-static boost_chrono)
TARGET_LINK_LIBRARIES(libhdfs3-static boost_system)
TARGET_LINK_LIBRARIES(libhdfs3-static boost_atomic)
TARGET_LINK_LIBRARIES(libhdfs3-static boost_iostreams)
TARGET_LINK_LIBRARIES(libhdfs3-shared boost_thread)
TARGET_LINK_LIBRARIES(libhdfs3-shared boost_chrono)
TARGET_LINK_LIBRARIES(libhdfs3-shared boost_system)
TARGET_LINK_LIBRARIES(libhdfs3-shared boost_atomic)
TARGET_LINK_LIBRARIES(libhdfs3-shared boost_iostreams)
TARGET_LINK_LIBRARIES(libhdfs3-static Boost::thread)
TARGET_LINK_LIBRARIES(libhdfs3-static Boost::chrono)
TARGET_LINK_LIBRARIES(libhdfs3-static Boost::system)
TARGET_LINK_LIBRARIES(libhdfs3-static Boost::atomic)
TARGET_LINK_LIBRARIES(libhdfs3-static Boost::iostreams)
TARGET_LINK_LIBRARIES(libhdfs3-shared Boost::thread)
TARGET_LINK_LIBRARIES(libhdfs3-shared Boost::chrono)
TARGET_LINK_LIBRARIES(libhdfs3-shared Boost::system)
TARGET_LINK_LIBRARIES(libhdfs3-shared Boost::atomic)
TARGET_LINK_LIBRARIES(libhdfs3-shared Boost::iostreams)
ENDIF(NEED_BOOST)

IF(NEED_GCCEH)
Expand All @@ -78,43 +79,37 @@ IF(NEED_GCCEH)
ENDIF(NEED_GCCEH)

IF(OS_LINUX)
TARGET_LINK_LIBRARIES(libhdfs3-static ${LIBUUID_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-shared ${LIBUUID_LIBRARIES})
INCLUDE_DIRECTORIES(${LIBUUID_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(libhdfs3-static LibUUID::LibUUID)
TARGET_LINK_LIBRARIES(libhdfs3-shared LibUUID::LibUUID)
ENDIF(OS_LINUX)

INCLUDE_DIRECTORIES(${libhdfs3_ROOT_SOURCES_DIR})
INCLUDE_DIRECTORIES(${libhdfs3_COMMON_SOURCES_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${KERBEROS_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${GSASL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/mock)
INCLUDE_DIRECTORIES(${SSL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})

TARGET_LINK_LIBRARIES(libhdfs3-static ${PROTOBUF_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-static ${LIBXML2_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-static ${KERBEROS_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-static ${GSASL_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-static ${SSL_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-static ${CURL_LIBRARIES})

TARGET_LINK_LIBRARIES(libhdfs3-shared ${PROTOBUF_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-shared ${LIBXML2_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-shared ${KERBEROS_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-shared ${GSASL_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-shared ${SSL_LIBRARIES})
TARGET_LINK_LIBRARIES(libhdfs3-shared ${CURL_LIBRARIES})
TARGET_INCLUDE_DIRECTORIES(libhdfs3-static PUBLIC ${libhdfs3_ROOT_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(libhdfs3-static PUBLIC ${libhdfs3_COMMON_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(libhdfs3-static PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
TARGET_INCLUDE_DIRECTORIES(libhdfs3-static PUBLIC ${CMAKE_SOURCE_DIR}/mock)

TARGET_INCLUDE_DIRECTORIES(libhdfs3-shared PUBLIC ${libhdfs3_ROOT_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(libhdfs3-shared PUBLIC ${libhdfs3_COMMON_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(libhdfs3-shared PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
TARGET_INCLUDE_DIRECTORIES(libhdfs3-shared PUBLIC ${CMAKE_SOURCE_DIR}/mock)

TARGET_LINK_LIBRARIES(libhdfs3-static protobuf::libprotobuf)
TARGET_LINK_LIBRARIES(libhdfs3-static LibXml2::LibXml2)
TARGET_LINK_LIBRARIES(libhdfs3-static KERBEROS::KERBEROS)
TARGET_LINK_LIBRARIES(libhdfs3-static GSASL::GSASL)
TARGET_LINK_LIBRARIES(libhdfs3-static SSL::SSL)
TARGET_LINK_LIBRARIES(libhdfs3-static Curl::Curl)

TARGET_LINK_LIBRARIES(libhdfs3-shared protobuf::libprotobuf)
TARGET_LINK_LIBRARIES(libhdfs3-shared LibXml2::LibXml2)
TARGET_LINK_LIBRARIES(libhdfs3-shared KERBEROS::KERBEROS)
TARGET_LINK_LIBRARIES(libhdfs3-shared GSASL::GSASL)
TARGET_LINK_LIBRARIES(libhdfs3-shared SSL::SSL)
TARGET_LINK_LIBRARIES(libhdfs3-shared Curl::Curl)

SET_TARGET_PROPERTIES(libhdfs3-static PROPERTIES OUTPUT_NAME "hdfs3")
SET_TARGET_PROPERTIES(libhdfs3-shared PROPERTIES OUTPUT_NAME "hdfs3")

IF(NEED_BOOST)
SET_TARGET_PROPERTIES(libhdfs3-shared libhdfs3-static PROPERTIES LINK_FLAGS "-L${Boost_LIBRARY_DIRS}")
ENDIF(NEED_BOOST)

SET_TARGET_PROPERTIES(libhdfs3-shared PROPERTIES
VERSION ${libhdfs3_VERSION_MAJOR}.${libhdfs3_VERSION_MINOR}.${libhdfs3_VERSION_PATCH}
SOVERSION ${libhdfs3_VERSION_API})
Expand Down
2 changes: 1 addition & 1 deletion depends/libhdfs3/src/client/CryptoCodec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ namespace Hdfs {
return -1;
}

LOG(DEBUG3, "CryptoCodec init success, length of the decrypted key is : %llu, crypto method is : %d", AlgorithmBlockSize, crypto_method);
LOG(DEBUG3, "CryptoCodec init success, length of the decrypted key is : %lu, crypto method is : %d", AlgorithmBlockSize, crypto_method);
return 1;

}
Expand Down
54 changes: 20 additions & 34 deletions depends/libhdfs3/test/function/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

AUTO_SOURCES(function_SOURCES "*.cpp" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}")

INCLUDE_DIRECTORIES(${gmock_INCLUDE_DIR} ${gtest_INCLUDE_DIR} ${libhdfs3_ROOT_SOURCES_DIR})

IF(NEED_BOOST)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
ENDIF(NEED_BOOST)

INCLUDE_DIRECTORIES(${libhdfs3_ROOT_SOURCES_DIR})
INCLUDE_DIRECTORIES(${libhdfs3_COMMON_SOURCES_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${libhdfs3_PLATFORM_HEADER_DIR})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${KERBEROS_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${GSASL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${SSL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${CURL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/mock)

PROTOBUF_GENERATE_CPP(libhdfs3_PROTO_SOURCES libhdfs3_PROTO_HEADERS ${libhdfs3_PROTO_FILES})

IF(ENABLE_DEBUG STREQUAL ON)
Expand All @@ -42,34 +24,38 @@ ADD_EXECUTABLE(function EXCLUDE_FROM_ALL
${function_SOURCES}
)

TARGET_INCLUDE_DIRECTORIES(function PRIVATE ${libhdfs3_ROOT_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(function PRIVATE ${libhdfs3_COMMON_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(function PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
TARGET_INCLUDE_DIRECTORIES(function PRIVATE ${libhdfs3_PLATFORM_HEADER_DIR})
TARGET_INCLUDE_DIRECTORIES(function PRIVATE ${CMAKE_SOURCE_DIR}/mock)

TARGET_LINK_LIBRARIES(function pthread)

TARGET_LINK_LIBRARIES(function Boost::boost)
IF(NEED_BOOST)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${Boost_LIBRARY_DIRS}")
TARGET_LINK_LIBRARIES(function boost_thread)
TARGET_LINK_LIBRARIES(function boost_chrono)
TARGET_LINK_LIBRARIES(function boost_system)
TARGET_LINK_LIBRARIES(function boost_atomic)
TARGET_LINK_LIBRARIES(function boost_iostreams)
TARGET_LINK_LIBRARIES(function Boost::thread)
TARGET_LINK_LIBRARIES(function Boost::chrono)
TARGET_LINK_LIBRARIES(function Boost::system)
TARGET_LINK_LIBRARIES(function Boost::atomic)
TARGET_LINK_LIBRARIES(function Boost::iostreams)
ENDIF(NEED_BOOST)

IF(NEED_GCCEH)
TARGET_LINK_LIBRARIES(function gcc_eh)
ENDIF(NEED_GCCEH)

IF(OS_LINUX)
TARGET_LINK_LIBRARIES(function ${LIBUUID_LIBRARIES})
INCLUDE_DIRECTORIES(${LIBUUID_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(function LibUUID::LibUUID)
ENDIF(OS_LINUX)

TARGET_LINK_LIBRARIES(function ${PROTOBUF_LIBRARIES})
TARGET_LINK_LIBRARIES(function ${LIBXML2_LIBRARIES})
TARGET_LINK_LIBRARIES(function ${KERBEROS_LIBRARIES})
TARGET_LINK_LIBRARIES(function ${GSASL_LIBRARIES})
TARGET_LINK_LIBRARIES(function ${GoogleTest_LIBRARIES})
TARGET_LINK_LIBRARIES(function ${SSL_LIBRARIES})
TARGET_LINK_LIBRARIES(function ${CURL_LIBRARIES})
TARGET_LINK_LIBRARIES(function protobuf::libprotobuf)
TARGET_LINK_LIBRARIES(function LibXml2::LibXml2)
TARGET_LINK_LIBRARIES(function KERBEROS::KERBEROS)
TARGET_LINK_LIBRARIES(function GSASL::GSASL)
TARGET_LINK_LIBRARIES(function GoogleTest::GoogleTest)
TARGET_LINK_LIBRARIES(function SSL::SSL)
TARGET_LINK_LIBRARIES(function Curl::Curl)

SET(function_SOURCES ${function_SOURCES} PARENT_SCOPE)

47 changes: 18 additions & 29 deletions depends/libhdfs3/test/secure/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

AUTO_SOURCES(secure_SOURCES "*.cpp" "RECURSE" "${CMAKE_CURRENT_SOURCE_DIR}")

INCLUDE_DIRECTORIES(${gmock_INCLUDE_DIR} ${gtest_INCLUDE_DIR} ${libhdfs3_ROOT_SOURCES_DIR})

IF(NEED_BOOST)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
ENDIF(NEED_BOOST)

INCLUDE_DIRECTORIES(${libhdfs3_ROOT_SOURCES_DIR})
INCLUDE_DIRECTORIES(${libhdfs3_COMMON_SOURCES_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${PROTOBUF_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${libhdfs3_PLATFORM_HEADER_DIR})
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${KERBEROS_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${GSASL_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/mock)

PROTOBUF_GENERATE_CPP(libhdfs3_PROTO_SOURCES libhdfs3_PROTO_HEADERS ${libhdfs3_PROTO_FILES})

IF(ENABLE_DEBUG STREQUAL ON)
Expand All @@ -40,31 +24,36 @@ ADD_EXECUTABLE(secure EXCLUDE_FROM_ALL
${secure_SOURCES}
)

TARGET_INCLUDE_DIRECTORIES(secure PRIVATE ${libhdfs3_ROOT_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(secure PRIVATE ${libhdfs3_COMMON_SOURCES_DIR})
TARGET_INCLUDE_DIRECTORIES(secure PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
TARGET_INCLUDE_DIRECTORIES(secure PRIVATE ${libhdfs3_PLATFORM_HEADER_DIR})
TARGET_INCLUDE_DIRECTORIES(secure PRIVATE ${CMAKE_SOURCE_DIR}/mock)

TARGET_LINK_LIBRARIES(secure pthread)

TARGET_LINK_LIBRARIES(secure Boost::boost)
IF(NEED_BOOST)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L${Boost_LIBRARY_DIRS}")
TARGET_LINK_LIBRARIES(secure boost_thread)
TARGET_LINK_LIBRARIES(secure boost_chrono)
TARGET_LINK_LIBRARIES(secure boost_system)
TARGET_LINK_LIBRARIES(secure boost_atomic)
TARGET_LINK_LIBRARIES(secure boost_iostreams)
TARGET_LINK_LIBRARIES(secure Boost::thread)
TARGET_LINK_LIBRARIES(secure Boost::chrono)
TARGET_LINK_LIBRARIES(secure Boost::system)
TARGET_LINK_LIBRARIES(secure Boost::atomic)
TARGET_LINK_LIBRARIES(secure Boost::iostreams)
ENDIF(NEED_BOOST)

IF(NEED_GCCEH)
TARGET_LINK_LIBRARIES(secure gcc_eh)
ENDIF(NEED_GCCEH)

IF(OS_LINUX)
TARGET_LINK_LIBRARIES(secure uuid)
TARGET_LINK_LIBRARIES(secure LibUUID::LibUUID)
ENDIF(OS_LINUX)

TARGET_LINK_LIBRARIES(secure ${PROTOBUF_LIBRARIES})
TARGET_LINK_LIBRARIES(secure ${LIBXML2_LIBRARIES})
TARGET_LINK_LIBRARIES(secure ${KERBEROS_LIBRARIES})
TARGET_LINK_LIBRARIES(secure ${GSASL_LIBRARIES})
TARGET_LINK_LIBRARIES(secure ${GoogleTest_LIBRARIES})
TARGET_LINK_LIBRARIES(secure protobuf::libprotobuf)
TARGET_LINK_LIBRARIES(secure LibXml2::LibXml2)
TARGET_LINK_LIBRARIES(secure KERBEROS::KERBEROS)
TARGET_LINK_LIBRARIES(secure GSASL::GSASL)
TARGET_LINK_LIBRARIES(secure GoogleTest::GoogleTest)

SET(secure_SOURCES ${secure_SOURCES} PARENT_SCOPE)

Loading

0 comments on commit b82d941

Please sign in to comment.