asio-grpc¶
hunter_add_package(asio-grpc)
find_package(asio-grpc CONFIG REQUIRED)
add_executable(boo boo.cpp)
target_link_libraries(boo PUBLIC asio-grpc::asio-grpc)
CMake options¶
The CMAKE_ARGS
feature (see
customization)
can be used to customize asio-grpc
:
To use standalone
Asio
instead ofBoost.Asio
:hunter_config( asio-grpc VERSION ${HUNTER_asio-grpc_VERSION} CMAKE_ARGS ASIO_GRPC_HUNTER_BACKEND_BOOST_ASIO=OFF ASIO_GRPC_HUNTER_BACKEND_STANDALONE_ASIO=ON )
To use Boost.Container instead of
<memory_resource>
:hunter_config( asio-grpc VERSION ${HUNTER_asio-grpc_VERSION} CMAKE_ARGS ASIO_GRPC_USE_BOOST_CONTAINER=ON )
For more options see asio-grpc repository.