##===------------------------------------------------------------------------------*- CMake -*-===##
##                         _       _       
##                        | |     | |
##                    __ _| |_ ___| | __ _ _ __   __ _ 
##                   / _` | __/ __| |/ _` | '_ \ / _` |
##                  | (_| | || (__| | (_| | | | | (_| |
##                   \__, |\__\___|_|\__,_|_| |_|\__, | - GridTools Clang DSL
##                    __/ |                       __/ |
##                   |___/                       |___/
##
##
##  This file is distributed under the MIT License (MIT). 
##  See LICENSE.txt for details.
##
##===------------------------------------------------------------------------------------------===##

include(mchbuildExportPackage)
find_package(GridTools CONFIG QUIET)

if(GridTools_FOUND)
  set(GRIDTOOLS_INCLUDE_DIRS "${GridTools_DIR}/include" "${GridTools_DIR}/include/gridtools")
  set(GTCLANG_HAS_GRIDTOOLS 1)
endif()

mchbuild_export_package(
  NAME GridTools
  FOUND ${GridTools_FOUND}
  INCLUDE_DIRS ${GRIDTOOLS_INCLUDE_DIRS} 
  VERSION "${GridTools_VERSION}" 
)
