jpayne@69: # Generated by CMake jpayne@69: jpayne@69: if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5) jpayne@69: message(FATAL_ERROR "CMake >= 2.6.0 required") jpayne@69: endif() jpayne@69: cmake_policy(PUSH) jpayne@69: cmake_policy(VERSION 2.6) jpayne@69: #---------------------------------------------------------------- jpayne@69: # Generated CMake target import file. jpayne@69: #---------------------------------------------------------------- jpayne@69: jpayne@69: # Commands may need to know the format version. jpayne@69: set(CMAKE_IMPORT_FILE_VERSION 1) jpayne@69: jpayne@69: # Protect against multiple inclusion, which would fail when already imported targets are added once more. jpayne@69: set(_targetsDefined) jpayne@69: set(_targetsNotDefined) jpayne@69: set(_expectedTargets) jpayne@69: foreach(_expectedTarget Libssh2::libssh2) jpayne@69: list(APPEND _expectedTargets ${_expectedTarget}) jpayne@69: if(NOT TARGET ${_expectedTarget}) jpayne@69: list(APPEND _targetsNotDefined ${_expectedTarget}) jpayne@69: endif() jpayne@69: if(TARGET ${_expectedTarget}) jpayne@69: list(APPEND _targetsDefined ${_expectedTarget}) jpayne@69: endif() jpayne@69: endforeach() jpayne@69: if("${_targetsDefined}" STREQUAL "${_expectedTargets}") jpayne@69: unset(_targetsDefined) jpayne@69: unset(_targetsNotDefined) jpayne@69: unset(_expectedTargets) jpayne@69: set(CMAKE_IMPORT_FILE_VERSION) jpayne@69: cmake_policy(POP) jpayne@69: return() jpayne@69: endif() jpayne@69: if(NOT "${_targetsDefined}" STREQUAL "") jpayne@69: message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n") jpayne@69: endif() jpayne@69: unset(_targetsDefined) jpayne@69: unset(_targetsNotDefined) jpayne@69: unset(_expectedTargets) jpayne@69: jpayne@69: jpayne@69: # Compute the installation prefix relative to this file. jpayne@69: get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) jpayne@69: get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) jpayne@69: get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) jpayne@69: get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) jpayne@69: if(_IMPORT_PREFIX STREQUAL "/") jpayne@69: set(_IMPORT_PREFIX "") jpayne@69: endif() jpayne@69: jpayne@69: # Create imported target Libssh2::libssh2 jpayne@69: add_library(Libssh2::libssh2 SHARED IMPORTED) jpayne@69: jpayne@69: set_target_properties(Libssh2::libssh2 PROPERTIES jpayne@69: INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" jpayne@69: ) jpayne@69: jpayne@69: # Load information for each installed configuration. jpayne@69: get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) jpayne@69: file(GLOB CONFIG_FILES "${_DIR}/Libssh2Config-*.cmake") jpayne@69: foreach(f ${CONFIG_FILES}) jpayne@69: include(${f}) jpayne@69: endforeach() jpayne@69: jpayne@69: # Cleanup temporary variables. jpayne@69: set(_IMPORT_PREFIX) jpayne@69: jpayne@69: # Loop over all imported files and verify that they actually exist jpayne@69: foreach(target ${_IMPORT_CHECK_TARGETS} ) jpayne@69: foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} ) jpayne@69: if(NOT EXISTS "${file}" ) jpayne@69: message(FATAL_ERROR "The imported target \"${target}\" references the file jpayne@69: \"${file}\" jpayne@69: but this file does not exist. Possible reasons include: jpayne@69: * The file was deleted, renamed, or moved to another location. jpayne@69: * An install or uninstall procedure did not complete successfully. jpayne@69: * The installation package was faulty and contained jpayne@69: \"${CMAKE_CURRENT_LIST_FILE}\" jpayne@69: but not all the files it references. jpayne@69: ") jpayne@69: endif() jpayne@69: endforeach() jpayne@69: unset(_IMPORT_CHECK_FILES_FOR_${target}) jpayne@69: endforeach() jpayne@69: unset(_IMPORT_CHECK_TARGETS) jpayne@69: jpayne@69: # This file does not depend on other imported targets which have jpayne@69: # been exported from the same project but in a separate export set. jpayne@69: jpayne@69: # Commands beyond this point should not need to know the version. jpayne@69: set(CMAKE_IMPORT_FILE_VERSION) jpayne@69: cmake_policy(POP)