aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake')
-rw-r--r--vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake b/vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake
new file mode 100644
index 0000000..1ed3509
--- /dev/null
+++ b/vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake
@@ -0,0 +1,10 @@
+file(GLOB GRPC_PLUGINS "${_IMPORT_PREFIX}/../@HOST_TRIPLET@/tools/grpc/grpc_*_plugin*")
+
+foreach(PLUGIN ${GRPC_PLUGINS})
+ get_filename_component(PLUGIN_NAME "${PLUGIN}" NAME_WE)
+ add_executable(gRPC::${PLUGIN_NAME} IMPORTED)
+ set_property(TARGET gRPC::${PLUGIN_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
+ set_target_properties(gRPC::${PLUGIN_NAME} PROPERTIES
+ IMPORTED_LOCATION_RELEASE "${PLUGIN}"
+ )
+endforeach()