-
Notifications
You must be signed in to change notification settings - Fork 23
/
amgxwrapper-config.cmake.in
33 lines (25 loc) · 1.15 KB
/
amgxwrapper-config.cmake.in
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
# - Config file for the AmgXWrapper package
# It provides an imported target amgxwrapper::amgxwrapper for modern cmake-based
# projects.
#
# For legacy cmake projects, it also defines the following variables
# AMGXWRAPPER_INCLUDE_DIR: include directory
# AMGXWRAPPER_LIBRARY_DIR: library directory
# AMGXWRAPPER_LIBRARIES: library to link against
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(MPI)
find_dependency(PkgConfig)
pkg_search_module(PETSC REQUIRED IMPORTED_TARGET petsc)
# manually make amgxwrapper::_amgx
add_library(amgxwrapper::_amgx UNKNOWN IMPORTED)
set_target_properties(amgxwrapper::_amgx PROPERTIES
IMPORTED_LOCATION @PACKAGE_AMGX_LIBRARIES@
INTERFACE_INCLUDE_DIRECTORIES @PACKAGE_AMGX_INCLUDE_DIRS@
)
include(@PACKAGE_CMAKE_INSTALL_LIBDIR@/cmake/amgxwrapper/amgxwrapper-target.cmake)
set_and_check(AMGXWRAPPER_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
set_and_check(AMGXWRAPPER_LIBRARY_DIR "@PACKAGE_CMAKE_INSTALL_LIBDIR@")
get_target_property(AMGXWRAPPER_LIBRARIES amgxwrapper::amgxwrapper LOCATION)
set_and_check(AMGXWRAPPER_LIBRARIES ${AMGXWRAPPER_LIBRARIES})
check_required_components(amgxwrapper)