# Grantlee CMake configuration file - http://www.grantlee.org/

# Any changes in this file will be overwritten by CMake.

if (Grantlee@Grantlee5_VERSION_MAJOR@_FIND_COMPONENTS)
  foreach( component ${Grantlee@Grantlee5_VERSION_MAJOR@_FIND_COMPONENTS})
    if (component STREQUAL "Textdocument")
      find_package(Qt@Grantlee_REQUIRED_QT_VERSION@ REQUIRED Gui)
    endif()
    if (component STREQUAL "Templates")
      find_package(Qt@Grantlee_REQUIRED_QT_VERSION@ REQUIRED Core)
      if ("@Qt5Qml_FOUND@" OR "@Qt6Qml_FOUND@")
        find_package(Qt@Grantlee_REQUIRED_QT_VERSION@ REQUIRED Qml)
      endif()
    endif()
  endforeach()
else()
  find_package(Qt@Grantlee_REQUIRED_QT_VERSION@Gui REQUIRED)
endif()

include("${CMAKE_CURRENT_LIST_DIR}/GrantleeTargets.cmake")

include("${CMAKE_CURRENT_LIST_DIR}/GrantleeMacros.cmake")
