1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
# =================================================================
# fclib configuration file.
# Check https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#creating-packages
# This file has been generated during fclib install and
# may be used by another cmake project to retrieve all the configuration variables
# of fclib.
#
#
# Usage :
#
# find_package(fclib)
# # ... define some target ...
# target_link_libraries(my_target ${fclib_LIBRARIES})
#
# A call to find_package(fclib)
# will set the following variables :
#
# fclib_INCLUDE_DIR = where to find fclib headers
# fclib_INCLUDE_DIRS : The final set of include directories listed in one variable for use by client code. It includes both path to fclib headers and path to external libraries headers
# fclib_LIBRARIES : the libraries to link against to use fclib
# fclib_EXTERNAL_LIBRARIES : the libraries on which fclib libs depend.
# fclib_ROOT_DIR : where to find the base directory of fclib
# fclib_FOUND : true if the find process went fine
#
#
# Note : var names chosen as recommended here :
# https://cmake.org/cmake/help/latest/manual/cmake-developer.7.html#manual:cmake-developer(7)
#
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
# Name of the fclib package
set(PACKAGE_NAME fclib)
# set path to fclib installation
set_and_check(fclib_ROOT_DIR "@CMAKE_INSTALL_PREFIX@")
# Path (relative to fclib install) to cmake extra tools
set(ConfigPackageLocation @ConfigPackageLocation@)
# set list of external libraries
# set(${PACKAGE_NAME}_EXTERNAL_LIBRARIES "@FCLIB_LINK_LIBRARIES@")
# include fclib project targets
include("${CMAKE_CURRENT_LIST_DIR}/fclibTargets.cmake")
set_and_check(FCLIB_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include")
set(FCLIB_HEADER_ONLY @FCLIB_HEADER_ONLY@)
set(FCLIB_WITH_MERIT_FUNCTIONS @FCLIB_WITH_MERIT_FUNCTIONS@)
find_dependency(HDF5 COMPONENTS C HL REQUIRED)
if(FCLIB_WITH_MERIT_FUNCTIONS)
# add path to cs.h from libsuitesparse-dev
target_include_directories(FCLIB::fclib INTERFACE /usr/include/suitesparse)
endif()
# set list of include dirs for external libraries
# set(${PACKAGE_NAME}_INCLUDE_DIRECTORIES @FCLIB_INCLUDE_DIRECTORIES@)
#list(APPEND ${PACKAGE_NAME}_INCLUDE_DIRECTORIES @CMAKE_INSTALL_PREFIX@/include/fclib)
set(CMAKE_CXX_STANDARD @CMAKE_CXX_STANDARD@)
# --- Final check to set (or not) fclib_FOUND, fclib_numerics_FOUND and so on
check_required_components(fclib)
|