3 if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
4 message(FATAL_ERROR "CMake >= 2.6.0 required")
7 cmake_policy(VERSION 2.6)
8 #----------------------------------------------------------------
9 # Generated CMake target import file.
10 #----------------------------------------------------------------
12 # Commands may need to know the format version.
13 set(CMAKE_IMPORT_FILE_VERSION 1)
15 # Protect against multiple inclusion, which would fail when already imported targets are added once more.
17 set(_targetsNotDefined)
19 foreach(_expectedTarget glm)
20 list(APPEND _expectedTargets ${_expectedTarget})
21 if(NOT TARGET ${_expectedTarget})
22 list(APPEND _targetsNotDefined ${_expectedTarget})
24 if(TARGET ${_expectedTarget})
25 list(APPEND _targetsDefined ${_expectedTarget})
28 if("${_targetsDefined}" STREQUAL "${_expectedTargets}")
29 unset(_targetsDefined)
30 unset(_targetsNotDefined)
31 unset(_expectedTargets)
32 set(CMAKE_IMPORT_FILE_VERSION)
36 if(NOT "${_targetsDefined}" STREQUAL "")
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")
39 unset(_targetsDefined)
40 unset(_targetsNotDefined)
41 unset(_expectedTargets)
44 # Compute the installation prefix relative to this file.
45 get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
46 # Use original install prefix when loaded through a
47 # cross-prefix symbolic link such as /lib -> /usr/lib.
48 get_filename_component(_realCurr "${_IMPORT_PREFIX}" REALPATH)
49 get_filename_component(_realOrig "/usr/lib/cmake/glm" REALPATH)
50 if(_realCurr STREQUAL _realOrig)
51 set(_IMPORT_PREFIX "/usr/lib/cmake/glm")
55 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
56 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
57 get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
58 if(_IMPORT_PREFIX STREQUAL "/")
59 set(_IMPORT_PREFIX "")
62 # Create imported target glm
63 add_library(glm INTERFACE IMPORTED)
65 set_target_properties(glm PROPERTIES
66 INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
69 if(CMAKE_VERSION VERSION_LESS 3.0.0)
70 message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
73 # Load information for each installed configuration.
74 get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
75 file(GLOB CONFIG_FILES "${_DIR}/glmTargets-*.cmake")
76 foreach(f ${CONFIG_FILES})
80 # Cleanup temporary variables.
83 # Loop over all imported files and verify that they actually exist
84 foreach(target ${_IMPORT_CHECK_TARGETS} )
85 foreach(file ${_IMPORT_CHECK_FILES_FOR_${target}} )
86 if(NOT EXISTS "${file}" )
87 message(FATAL_ERROR "The imported target \"${target}\" references the file
89 but this file does not exist. Possible reasons include:
90 * The file was deleted, renamed, or moved to another location.
91 * An install or uninstall procedure did not complete successfully.
92 * The installation package was faulty and contained
93 \"${CMAKE_CURRENT_LIST_FILE}\"
94 but not all the files it references.
98 unset(_IMPORT_CHECK_FILES_FOR_${target})
100 unset(_IMPORT_CHECK_TARGETS)
102 # This file does not depend on other imported targets which have
103 # been exported from the same project but in a separate export set.
105 # Commands beyond this point should not need to know the version.
106 set(CMAKE_IMPORT_FILE_VERSION)