1
# Fesslix - Stochastic Analysis
2
# Copyright (C) 2010-2016 Wolfgang Betz
4
# Fesslix is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
9
# Fesslix is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License
15
# along with Fesslix. If not, see <http://www.gnu.org/licenses/>.
17
# ===========================================================================*\
18
# This file was originally taken from
19
# https://graphics.rwth-aachen.de:9000/OpenFlipper-Free/OpenFlipper-Free/blob/31f2b44ab6390f946b27a1501b5eb976c83c97af/cmake/FindARPACK.cmake
21
# ===========================================================================*/
22
# the copyright-notice of the original file is:
23
# ===========================================================================*\
26
# Copyright (c) 2001-2015, RWTH-Aachen University *
27
# Department of Computer Graphics and Multimedia *
28
# All rights reserved. *
29
# www.openflipper.org *
31
# ---------------------------------------------------------------------------*
32
# This file is part of OpenFlipper. *
33
# ---------------------------------------------------------------------------*
35
# Redistribution and use in source and binary forms, with or without *
36
# modification, are permitted provided that the following conditions *
39
# 1. Redistributions of source code must retain the above copyright notice, *
40
# this list of conditions and the following disclaimer. *
42
# 2. Redistributions in binary form must reproduce the above copyright *
43
# notice, this list of conditions and the following disclaimer in the *
44
# documentation and/or other materials provided with the distribution. *
46
# 3. Neither the name of the copyright holder nor the names of its *
47
# contributors may be used to endorse or promote products derived from *
48
# this software without specific prior written permission. *
50
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
51
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
52
# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
53
# PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
54
# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
55
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
56
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
57
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
58
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
59
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
60
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
62
# ===========================================================================*/
65
# - Try to find ARPACK
66
# Once done this will define
68
# ARPACK_FOUND - system has ARPACK
69
# ARPACK_INCLUDE_DIR - the ARPACK include directories
70
# ARPACK_LIBRARY - Link this to use ARPACK
71
# ARPACKpp_LIBRARY - Link this to use ARPACK++
72
# ARPACK_LIBRARIES - Link this to use ARPACK together with ARPACK++
75
find_path (ARPACK_INCLUDE_DIR NAMES arpack++/argeig.h
76
HINTS ENV ARPACK_INCLUDE_DIR
77
PATHS /usr/include/arpack++ $ENV{HOME}/opt/arpack++/include $ENV{HOME}/projects/arpack++/include "C:\\libs\\arpack++\\include"
78
DOC "ARPACK Include Directory")
81
find_library( ARPACK_LIBRARY arpack.lib
82
PATHS "C:\\libs\\arpack++\\lib"
85
find_library( ARPACK_LIBRARY arpack
86
PATHS /usr/lib /usr/lib64 $ENV{ARPACK_LIBDIR}
88
find_library( ARPACKpp_LIBRARY arpack++
89
PATHS /usr/lib /usr/lib64 ${ARPACK_INCLUDE_DIR}/../src/.libs
92
list( APPEND ARPACK_LIBRARIES ${ARPACK_LIBRARY} )
94
list( APPEND ARPACK_LIBRARIES ${ARPACKpp_LIBRARY} )
95
ENDIF(ARPACKpp_LIBRARY)
99
IF (ARPACK_INCLUDE_DIR AND ARPACK_LIBRARY)
100
SET(ARPACK_FOUND TRUE)
102
SET(ARPACK_FOUND FALSE)