Blame lang/cpp/src/GpgmeppConfig.cmake.in.in

Packit Service 672cf4
# CMake Config file for GPGMEPP.
Packit Service 672cf4
# Copyright (C) 2016 Intevation GmbH
Packit Service 672cf4
#
Packit Service 672cf4
# This file is part of GPGMEPP.
Packit Service 672cf4
#
Packit Service 672cf4
# GPGME-CL is free software; you can redistribute it and/or modify it
Packit Service 672cf4
# under the terms of the GNU General Public License as published by
Packit Service 672cf4
# the Free Software Foundation; either version 2 of the License, or
Packit Service 672cf4
# (at your option) any later version.
Packit Service 672cf4
#
Packit Service 672cf4
# GPGME-CL is distributed in the hope that it will be useful,
Packit Service 672cf4
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 672cf4
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 672cf4
# GNU Lesser General Public License for more details.
Packit Service 672cf4
#
Packit Service 672cf4
# You should have received a copy of the GNU General Public License
Packit Service 672cf4
# along with this program; if not, write to the Free Software
Packit Service 672cf4
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
Packit Service 672cf4
# 02111-1307, USA
Packit Service 672cf4
Packit Service 672cf4
# based on a generated file from cmake.
Packit Service 672cf4
# Generated by CMake 3.0.2
Packit Service 672cf4
Packit Service 672cf4
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
Packit Service 672cf4
   message(FATAL_ERROR "CMake >= 2.6.0 required")
Packit Service 672cf4
endif()
Packit Service 672cf4
cmake_policy(PUSH)
Packit Service 672cf4
cmake_policy(VERSION 2.6)
Packit Service 672cf4
#----------------------------------------------------------------
Packit Service 672cf4
# Generated CMake target import file.
Packit Service 672cf4
#----------------------------------------------------------------
Packit Service 672cf4
Packit Service 672cf4
# Commands may need to know the format version.
Packit Service 672cf4
set(CMAKE_IMPORT_FILE_VERSION 1)
Packit Service 672cf4
Packit Service 672cf4
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
Packit Service 672cf4
set(_targetsDefined)
Packit Service 672cf4
set(_targetsNotDefined)
Packit Service 672cf4
set(_expectedTargets)
Packit Service 672cf4
foreach(_expectedTarget Gpgmepp)
Packit Service 672cf4
  list(APPEND _expectedTargets ${_expectedTarget})
Packit Service 672cf4
  if(NOT TARGET ${_expectedTarget})
Packit Service 672cf4
    list(APPEND _targetsNotDefined ${_expectedTarget})
Packit Service 672cf4
  endif()
Packit Service 672cf4
  if(TARGET ${_expectedTarget})
Packit Service 672cf4
    list(APPEND _targetsDefined ${_expectedTarget})
Packit Service 672cf4
  endif()
Packit Service 672cf4
endforeach()
Packit Service 672cf4
if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
Packit Service 672cf4
  set(CMAKE_IMPORT_FILE_VERSION)
Packit Service 672cf4
  cmake_policy(POP)
Packit Service 672cf4
  return()
Packit Service 672cf4
endif()
Packit Service 672cf4
if(NOT "${_targetsDefined}" STREQUAL "")
Packit Service 672cf4
  message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
Packit Service 672cf4
endif()
Packit Service 672cf4
unset(_targetsDefined)
Packit Service 672cf4
unset(_targetsNotDefined)
Packit Service 672cf4
unset(_expectedTargets)
Packit Service 672cf4
Packit Service 672cf4
# Create imported target Gpgmepp
Packit Service 672cf4
add_library(Gpgmepp SHARED IMPORTED)
Packit Service 672cf4
Packit Service 672cf4
set_target_properties(Gpgmepp PROPERTIES
Packit Service 672cf4
  INTERFACE_INCLUDE_DIRECTORIES "@resolved_includedir@/gpgme++;@resolved_includedir@"
Packit Service 6c01f9
  INTERFACE_LINK_LIBRARIES "pthread;@resolved_libdir@/libgpgme@libsuffix@;@LIBASSUAN_LIBS@"
Packit Service 672cf4
  IMPORTED_LOCATION "@resolved_libdir@/libgpgmepp@libsuffix@"
Packit Service 672cf4
)
Packit Service 672cf4
Packit Service 672cf4
if(CMAKE_VERSION VERSION_LESS 2.8.12)
Packit Service 672cf4
  message(FATAL_ERROR "This file relies on consumers using CMake 2.8.12 or greater.")
Packit Service 672cf4
endif()
Packit Service 672cf4
Packit Service 672cf4
# Loop over all imported files and verify that they actually exist
Packit Service 672cf4
foreach(target ${_IMPORT_CHECK_TARGETS} )
Packit Service 672cf4
  foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
Packit Service 672cf4
    if(NOT EXISTS "${file}" )
Packit Service 672cf4
      message(FATAL_ERROR "The imported target \"${target}\" references the file
Packit Service 672cf4
   \"${file}\"
Packit Service 672cf4
but this file does not exist.  Possible reasons include:
Packit Service 672cf4
* The file was deleted, renamed, or moved to another location.
Packit Service 672cf4
* An install or uninstall procedure did not complete successfully.
Packit Service 672cf4
* The installation package was faulty and contained
Packit Service 672cf4
   \"${CMAKE_CURRENT_LIST_FILE}\"
Packit Service 672cf4
but not all the files it references.
Packit Service 672cf4
")
Packit Service 672cf4
    endif()
Packit Service 672cf4
  endforeach()
Packit Service 672cf4
  unset(_IMPORT_CHECK_FILES_FOR_${target})
Packit Service 672cf4
endforeach()
Packit Service 672cf4
unset(_IMPORT_CHECK_TARGETS)
Packit Service 672cf4
Packit Service 672cf4
# Commands beyond this point should not need to know the version.
Packit Service 672cf4
set(CMAKE_IMPORT_FILE_VERSION)
Packit Service 672cf4
cmake_policy(POP)
Packit Service 672cf4
Packit Service 672cf4
get_filename_component(QGpgme_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
Packit Service 672cf4
# Pull in QGpgme for compatibility with KF5 variant.
Packit Service 672cf4
find_package(QGpgme CONFIG)