Skip to content

Commit

Permalink
Linking against gRPC::grpc++ for SSL usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdenefaneo committed Feb 20, 2024
1 parent bab62ee commit fd8aa39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ArmoniK.SDK.Client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@ FILE(GLOB_RECURSE SRC_CLIENT_FILES ${SOURCES_FILES_DIR}/*.cpp)
FILE(GLOB_RECURSE HEADER_CLIENT_FILES ${HEADER_FILES_DIR}/*.h)
FILE(GLOB_RECURSE PRIVATE_HEADERS_FILES ${PRIVATE_HEADERS_DIR}/*.h)

find_package(Protobuf CONFIG REQUIRED)
find_package(gRPC CONFIG REQUIRED)

find_package(ArmoniK.Api.Client CONFIG REQUIRED)
if(NOT TARGET ArmoniK.SDK.Common)
find_package(ArmoniK.SDK.Common CONFIG REQUIRED)
endif()

add_library(${PROJECT_NAME} STATIC ${SRC_CLIENT_FILES} ${HEADER_CLIENT_FILES} ${PRIVATE_HEADERS_FILES})

target_link_libraries(${PROJECT_NAME} PUBLIC ArmoniK.Api.Common ArmoniK.Api.Client ArmoniK.SDK.Common)
target_link_libraries(${PROJECT_NAME} PUBLIC ArmoniK.Api.Common ArmoniK.Api.Client ArmoniK.SDK.Common gRPC::grpc++)

target_include_directories(${PROJECT_NAME}
PUBLIC
Expand Down

0 comments on commit fd8aa39

Please sign in to comment.