3 if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
\r
4 message(FATAL_ERROR "CMake >= 2.6.0 required")
\r
7 cmake_policy(VERSION 2.6)
\r
8 #----------------------------------------------------------------
\r
9 # Generated CMake target import file.
\r
10 #----------------------------------------------------------------
\r
12 # Commands may need to know the format version.
\r
13 set(CMAKE_IMPORT_FILE_VERSION 1)
\r
15 # Protect against multiple inclusion, which would fail when already imported targets are added once more.
\r
16 set(_targetsDefined)
\r
17 set(_targetsNotDefined)
\r
18 set(_expectedTargets)
\r
19 foreach(_expectedTarget utf8cpp)
\r
20 list(APPEND _expectedTargets ${_expectedTarget})
\r
21 if(NOT TARGET ${_expectedTarget})
\r
22 list(APPEND _targetsNotDefined ${_expectedTarget})
\r
24 if(TARGET ${_expectedTarget})
\r
25 list(APPEND _targetsDefined ${_expectedTarget})
\r
28 if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
\r
29 unset(_targetsDefined)
\r
30 unset(_targetsNotDefined)
\r
31 unset(_expectedTargets)
\r
32 set(CMAKE_IMPORT_FILE_VERSION)
\r
36 if(NOT "${_targetsDefined}" STREQUAL "")
\r
37 message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_targetsDefined}\nTargets not yet defined: ${_targetsNotDefined}\n")
\r
39 unset(_targetsDefined)
\r
40 unset(_targetsNotDefined)
\r
41 unset(_expectedTargets)
\r
44 # Compute the installation prefix relative to this file.
\r
45 get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
\r
46 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
\r
47 if(_IMPORT_PREFIX STREQUAL "/")
\r
48 set(_IMPORT_PREFIX "")
\r
51 # Create imported target utf8cpp
\r
52 add_library(utf8cpp INTERFACE IMPORTED)
\r
54 set_target_properties(utf8cpp PROPERTIES
\r
55 INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/utf8cpp"
\r
58 if(CMAKE_VERSION VERSION_LESS 3.0.0)
\r
59 message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
\r
62 # Load information for each installed configuration.
\r
63 get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
\r
64 file(GLOB CONFIG_FILES "${_DIR}/utf8cppConfig-*.cmake")
\r
65 foreach(f ${CONFIG_FILES})
\r
69 # Cleanup temporary variables.
\r
72 # Loop over all imported files and verify that they actually exist
\r
73 foreach(target ${_IMPORT_CHECK_TARGETS} )
\r
74 foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
\r
75 if(NOT EXISTS "${file}" )
\r
76 message(FATAL_ERROR "The imported target \"${target}\" references the file
\r
78 but this file does not exist. Possible reasons include:
\r
79 * The file was deleted, renamed, or moved to another location.
\r
80 * An install or uninstall procedure did not complete successfully.
\r
81 * The installation package was faulty and contained
\r
82 \"${CMAKE_CURRENT_LIST_FILE}\"
\r
83 but not all the files it references.
\r
87 unset(_IMPORT_CHECK_FILES_FOR_${target})
\r
89 unset(_IMPORT_CHECK_TARGETS)
\r
91 # This file does not depend on other imported targets which have
\r
92 # been exported from the same project but in a separate export set.
\r
94 # Commands beyond this point should not need to know the version.
\r
95 set(CMAKE_IMPORT_FILE_VERSION)
\r