# TelepathyQt@QT_VERSION_MAJOR@Config.cmake is generated by CMake from TelepathyQt/TelepathyQtConfig.cmake.in.
# Any changed value in this file will be overwritten by CMake.

if(NOT TelepathyQt@QT_VERSION_MAJOR@_FOUND)
    # set the version number
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_VERSION_MAJOR @TP_QT_MAJOR_VERSION@)
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_VERSION_MINOR @TP_QT_MINOR_VERSION@)
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_VERSION_MICRO @TP_QT_MICRO_VERSION@)
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_VERSION_NANO @TP_QT_NANO_VERSION@)
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_VERSION @PACKAGE_VERSION@)

    # set the directories
    if(NOT TELEPATHY_QT@QT_VERSION_MAJOR@_INSTALL_DIR)
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
    endif(NOT TELEPATHY_QT@QT_VERSION_MAJOR@_INSTALL_DIR)

    set(TELEPATHY_QT@QT_VERSION_MAJOR@_INCLUDE_DIR              "@TELEPATHY_QT_INCLUDE_DIR@")
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_LIB_DIR                  "@TELEPATHY_QT_LIB_DIR@")
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_SHARE_DIR                "@TELEPATHY_QT_DATA_DIR@")

    # attempt to find the generated TelepathyQt4Targets.cmake in the same directory
    get_filename_component(_TPQT@QT_VERSION_MAJOR@_CONFIG_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
    find_file(_TPQT@QT_VERSION_MAJOR@_TARGETS_FILE TelepathyQt@QT_VERSION_MAJOR@Targets.cmake PATHS ${_TPQT@QT_VERSION_MAJOR@_CONFIG_DIR} NO_DEFAULT_PATH)

    # set the TELEPATHY_QT@QT_VERSION_MAJOR@_LIBRARIES variable
    include(${_TPQT@QT_VERSION_MAJOR@_TARGETS_FILE})
    set(TELEPATHY_QT@QT_VERSION_MAJOR@_LIBRARIES telepathy-qt@QT_VERSION_MAJOR@)
endif(NOT TelepathyQt@QT_VERSION_MAJOR@_FOUND)
