Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
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.
27 lines
910 B
27 lines
910 B
# Version info variables |
|
set(PROTOBUF_VERSION "@protobuf_VERSION@") |
|
set(PROTOBUF_VERSION_STRING "@protobuf_VERSION_STRING@") |
|
|
|
# Current dir |
|
get_filename_component(_PROTOBUF_PACKAGE_PREFIX |
|
"${CMAKE_CURRENT_LIST_FILE}" PATH) |
|
|
|
# Imported targets |
|
include("${_PROTOBUF_PACKAGE_PREFIX}/protobuf-targets.cmake") |
|
|
|
# Compute the installation prefix relative to this file. |
|
get_filename_component(_PROTOBUF_IMPORT_PREFIX |
|
"${_PROTOBUF_PACKAGE_PREFIX}" PATH) |
|
get_filename_component(_PROTOBUF_IMPORT_PREFIX |
|
"${_PROTOBUF_IMPORT_PREFIX}" PATH) |
|
get_filename_component(_PROTOBUF_IMPORT_PREFIX |
|
"${_PROTOBUF_IMPORT_PREFIX}" PATH) |
|
|
|
# CMake FindProtobuf module compatible file |
|
if(NOT DEFINED PROTOBUF_MODULE_COMPATIBLE OR "${PROTOBUF_MODULE_COMPATIBLE}") |
|
include("${_PROTOBUF_PACKAGE_PREFIX}/protobuf-module.cmake") |
|
endif() |
|
|
|
# Cleanup temporary variables. |
|
set(_PROTOBUF_PACKAGE_PREFIX) |
|
set(_PROTOBUF_IMPORT_PREFIX)
|
|
|