1if (CMAKE_VERSION VERSION_LESS 2.8.3)
2    message(FATAL_ERROR \"Qt 5 requires at least CMake version 2.8.3\")
3endif()
4
5!!IF !isEmpty(CMAKE_USR_MOVE_WORKAROUND)
6!!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
7set(_qt5_qdoctools_install_prefix \"$$[QT_INSTALL_PREFIX]\")
8!!ELSE
9get_filename_component(_IMPORT_PREFIX \"${CMAKE_CURRENT_LIST_FILE}\" PATH)
10# Use original install prefix when loaded through a
11# cross-prefix symbolic link such as /lib -> /usr/lib.
12get_filename_component(_realCurr \"${_IMPORT_PREFIX}\" REALPATH)
13get_filename_component(_realOrig \"$$CMAKE_INSTALL_LIBS_DIR/cmake/Qt5DocTools\" REALPATH)
14if(_realCurr STREQUAL _realOrig)
15    get_filename_component(_qt5_qdoctools_install_prefix \"$$CMAKE_INSTALL_LIBS_DIR/$${CMAKE_RELATIVE_INSTALL_LIBS_DIR}\" ABSOLUTE)
16else()
17    get_filename_component(_qt5_qdoctools_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
18endif()
19unset(_realOrig)
20unset(_realCurr)
21unset(_IMPORT_PREFIX)
22!!ENDIF
23!!ELIF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
24get_filename_component(_qt5_qdoctools_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
25!!ELSE
26set(_qt5_qdoctools_install_prefix \"$$[QT_INSTALL_PREFIX]\")
27!!ENDIF
28
29macro(_qt5_DocTools_check_file_exists file)
30    if(NOT EXISTS \"${file}\" )
31        message(FATAL_ERROR \"The package \\\"Qt5DocTools\\\" references the file
32   \\\"${file}\\\"
33but this file does not exist.  Possible reasons include:
34* The file was deleted, renamed, or moved to another location.
35* An install or uninstall procedure did not complete successfully.
36* The installation package was faulty and contained
37   \\\"${CMAKE_CURRENT_LIST_FILE}\\\"
38but not all the files it references.
39\")
40    endif()
41endmacro()
42
43if (NOT TARGET Qt5::qdoc)
44    add_executable(Qt5::qdoc IMPORTED)
45
46!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
47    set(imported_location \"${_qt5_qdoctools_install_prefix}/$${CMAKE_BIN_DIR}qdoc$$CMAKE_BIN_SUFFIX\")
48!!ELSE
49    set(imported_location \"$${CMAKE_BIN_DIR}qdoc$$CMAKE_BIN_SUFFIX\")
50!!ENDIF
51    _qt5_DocTools_check_file_exists(${imported_location})
52
53    set_target_properties(Qt5::qdoc PROPERTIES
54        IMPORTED_LOCATION ${imported_location}
55    )
56endif()
57
58# Create versionless tool targets.
59foreach(__qt_tool qdoc)
60    if(NOT \"${QT_NO_CREATE_VERSIONLESS_TARGETS}\" AND NOT TARGET Qt::${__qt_tool}
61       AND TARGET Qt5::${__qt_tool})
62        add_executable(Qt::${__qt_tool} IMPORTED)
63        get_target_property(__qt_imported_location Qt5::${__qt_tool} IMPORTED_LOCATION)
64        set_target_properties(Qt::${__qt_tool}
65                              PROPERTIES IMPORTED_LOCATION \"${__qt_imported_location}\")
66    endif()
67endforeach()
68