You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
529 B
17 lines
529 B
if(NOT trout_GRPC_ROOT_DIR)
|
|
set(trout_GRPC_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/grpc)
|
|
endif()
|
|
|
|
if(EXISTS "${trout_GRPC_ROOT_DIR}/CMakeLists.txt")
|
|
if(TARGET ${_trout_GRPCXX_LIBRARY_NAME})
|
|
set(trout_GRPCXX_LIBRARIES ${_trout_GRPCXX_LIBRARY_NAME})
|
|
else()
|
|
set(trout_GRPCXX_LIBRARIES "grpc++")
|
|
endif()
|
|
if (NOT TARGET ${trout_GRPCXX_LIBRARIES})
|
|
add_subdirectory(${trout_GRPC_ROOT_DIR} third_party/grpc)
|
|
endif()
|
|
else()
|
|
message(FATAL_ERROR "${trout_GRPC_ROOT_DIR}/CMakeLists.txt not found")
|
|
endif()
|