#
# @file bsplines-config.cmake.in
#
# @brief
#
# @copyright
# Copyright (©) 2021 EPFL (Ecole Polytechnique Fédérale de Lausanne)
# SPC (Swiss Plasma Center)
#
# SPClibs 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.
#
# SPClibs 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 BSPLINES package
# It defines the target the following variables:
# FFLAGS - Fortran compile flags
# BSPLINES_MODS - include directories for bsplines modules
# BSPLINES_LIBS - bsplines library
# BSPLINES_EXTRA_INCS - additional include directories
# BSPLINES_EXTRA_LIBS - additional libraries
# HAS_PARDISO - BSPLINES built with PARDISO
# HAS_MUMPS - BSPLINES built with MUMPS
# 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/bsplines-targets.cmake")
# Report other information
set(FFLAGS "@CMAKE_Fortran_FLAGS@")
set(BSPLINES_MODS "${_prefix}/include")
set(BSPLINES_LIBS fft bsplines pppack pputils2)
set(BSPLINES_EXTRA_INCS "@EXTRA_INCS@")
set(BSPLINES_EXTRA_LIBS "@EXTRA_LIBS@")
set(HAS_PARDISO "@HAS_PARDISO@")
set(HAS_MUMPS "@HAS_MUMPS@")
set(MPIEXEC "@MPIEXEC@")
set(MPIEXEC_NUMPROC_FLAG "@MPIEXEC_NUMPROC_FLAG@")