#
# @file futils-config.cmake.in
#
# @brief Config file for futils CMake
#
# @copyright
# Copyright (©) 2021 EPFL (Ecole Polytechnique Fédérale de Lausanne)
# SPC (Swiss Plasma Center)
#
# futils is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# futils is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see .
#
# @authors
# (in alphabetical order)
# @author Trach-Minh Tran
#
# - Config file for the FUTILS package
# It defines the target the following variables:
# FUTILS_MODS - include directories for futils modules
# FUTILS_LIBS - futils library
# FUTILS_EXTRA_INCS - additional include directories
# FUTILS_EXTRA_LIBS - additional libraries
# MPIEXEC - MPI launcher
# MPIEXEC_NUMPROC_FLAG - Number of MPI processes flag
# Compute paths
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_prefix "${_dir}/../.." ABSOLUTE)
# Import the targets
include("${_prefix}/lib/cmake/futils-targets.cmake")
# Report other information
set(FUTILS_MODS "${_prefix}/include")
set(FUTILS_LIBS futils)
set(FUTILS_EXTRA_INCS "@EXTRA_INCS@")
set(FUTILS_EXTRA_LIBS "@EXTRA_LIBS@")
set(MPIEXEC "@MPIEXEC@")
set(MPIEXEC_NUMPROC_FLAG "@MPIEXEC_NUMPROC_FLAG@")