Skip to content
Snippets Groups Projects
HySoPConfig.cmake.in 1.67 KiB
# - config file for @PACKAGE_NAME@ package
# Written by F. Pérignon, 2011 march
#
# This file generates @PACKAGE_NAME@Config.cmake, that may be used by another cmake project
# to retrieve all the configuration variables from @PACKAGE_NAME@
#
# It defines the following variables
#
# @PACKAGE_NAME@_INCLUDE_DIRS - include directories for ppmcore
# @PACKAGE_NAME@_EXTRA_INCLUDE_DIRS - path to extra headers needed for @PACKAGE_NAME@ (metis.h ...)
# @PACKAGE_NAME@_LIBRARY_DIRS - path to @PACKAGE_NAME@ library(ies)
# @PACKAGE_NAME@_LIBRARIES  - libraries to link against to use ppmcore
# @PACKAGE_NAME@_USE_XXX - value of option "USE_XXX" (for example USE_MPI, USE_Metis ... = ON or OFF)

# Tell the user where to find ppmcore headers
# Tell the user project where to find our headers and libraries
set(@PACKAGE_NAME@_INCLUDE_DIRS "${${PACKAGE_SHORT_NAME}_INCLUDE_DIRS}")
set(@PACKAGE_NAME@_EXTRA_INCLUDE_DIRS "${${PACKAGE_NAME}_EXTRA_INCLUDE_DIRS}")
set(@PACKAGE_NAME@_LIBRARY_DIRS "${${PACKAGE_NAME}_LIB_DIR}")
set(@PACKAGE_NAME@_MODULE_DIR "${${PACKAGE_NAME}_INCLUDE_DIRS}/Modules")

# Our library dependencies (contains definitions for IMPORTED targets)
include("${${PACKAGE_NAME}_CMAKE_DIR}/@PACKAGE_NAME@LibraryDepends.cmake")
 
# These are IMPORTED targets created by FooBarLibraryDepends.cmake
set(@PACKAGE_NAME@_LIBRARIES @PROJECT_LIBRARY_NAME@)

# Set all @PACKAGE_NAME@ options
set(@PACKAGE_NAME@_USE_MPI @USE_MPI@)
set(@PACKAGE_NAME@_USE_PPM @WITH_PPM@)
set(@PACKAGE_NAME@_USE_PPM_Numerics @WITH_PPM_Numerics@)


# Set var for compilers used by @PACKAGE_NAME@
#set(@PACKAGE_NAME@_Fortran_COMPILER @CMAKE_Fortran_COMPILER@)

# Fortran flags
#set(@PACKAGE_NAME@_Fortran_FLAGS @CMAKE_Fortran_FLAGS@)