Skip to content
Snippets Groups Projects
Commit 21f82504 authored by Franck Pérignon's avatar Franck Pérignon
Browse files

Final setup before merge

parent c98258bf
No related branches found
No related tags found
No related merge requests found
File moved
# - 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@)
set(PACKAGE_VERSION "@Parmes_version@")
# Check whether the requested PACKAGE_FIND_VERSION is compatible
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
set(PACKAGE_VERSION_COMPATIBLE TRUE)
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment