cmake_minimum_required(VERSION 3.21.0)

project(GridTools-laplacian LANGUAGES CXX)

set(CMAKE_CXX_EXTENSIONS OFF) # Currently required for HIP

find_package(GridTools 2.3.9 REQUIRED QUIET)

if(TARGET GridTools::stencil_cpu_ifirst)
    add_executable(gt_laplacian test_gt_laplacian.cpp)
    target_link_libraries(gt_laplacian GridTools::gridtools GridTools::stencil_cpu_ifirst)
endif()
