mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 21:39:00 +08:00
11 lines
439 B
CMake
11 lines
439 B
CMake
|
file(GLOB UPB_PLUGINS "${_IMPORT_PREFIX}/../@HOST_TRIPLET@/tools/upb/protoc-gen-upb*")
|
||
|
|
||
|
foreach(PLUGIN ${UPB_PLUGINS})
|
||
|
get_filename_component(PLUGIN_NAME "${PLUGIN}" NAME_WE)
|
||
|
add_executable(upb::${PLUGIN_NAME} IMPORTED)
|
||
|
set_property(TARGET upb::${PLUGIN_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
||
|
set_target_properties(upb::${PLUGIN_NAME} PROPERTIES
|
||
|
IMPORTED_LOCATION_RELEASE "${PLUGIN}"
|
||
|
)
|
||
|
endforeach()
|