• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Version info variables
2set(PROTOBUF_VERSION        "@protobuf_VERSION@")
3set(PROTOBUF_VERSION_STRING "@protobuf_VERSION_STRING@")
4
5# Current dir
6get_filename_component(_PROTOBUF_PACKAGE_PREFIX
7  "${CMAKE_CURRENT_LIST_FILE}" PATH)
8
9# Imported targets
10include("${_PROTOBUF_PACKAGE_PREFIX}/protobuf-targets.cmake")
11
12# Compute the installation prefix relative to this file.
13get_filename_component(_PROTOBUF_IMPORT_PREFIX
14  "${_PROTOBUF_PACKAGE_PREFIX}" PATH)
15get_filename_component(_PROTOBUF_IMPORT_PREFIX
16  "${_PROTOBUF_IMPORT_PREFIX}" PATH)
17get_filename_component(_PROTOBUF_IMPORT_PREFIX
18  "${_PROTOBUF_IMPORT_PREFIX}" PATH)
19
20# CMake FindProtobuf module compatible file
21if(NOT DEFINED PROTOBUF_MODULE_COMPATIBLE OR "${PROTOBUF_MODULE_COMPATIBLE}")
22  include("${_PROTOBUF_PACKAGE_PREFIX}/protobuf-module.cmake")
23endif()
24
25# Cleanup temporary variables.
26set(_PROTOBUF_PACKAGE_PREFIX)
27set(_PROTOBUF_IMPORT_PREFIX)
28