cmake_minimum_required(VERSION 3.16)
project(mixed-multigrid-solver)

# We only need to find Ginkgo if we build this example stand-alone
if (NOT GINKGO_BUILD_EXAMPLES)
    find_package(Ginkgo 1.9.0 REQUIRED)
endif()

add_executable(mixed-multigrid-solver mixed-multigrid-solver.cpp)
target_link_libraries(mixed-multigrid-solver Ginkgo::ginkgo)

# Copy the data files to the execution directory
configure_file(data/A.mtx data/A.mtx COPYONLY)
