FindARPACK.cmake
Go to the documentation of this file.
1 find_library(ARPACK_LIBRARY
2  NAMES parpack arpack
3  PATHS ${ARPACK_DIR}/lib
4 )
5 
6 include(FindPackageHandleStandardArgs)
7 find_package_handle_standard_args(ARPACK DEFAULT_MSG ARPACK_LIBRARY)
8 
9 if (ARPACK_FOUND)
10  get_filename_component(ARPACK_DIR ${ARPACK_LIBRARY} PATH)
11  get_filename_component(ARPACK_DIR ${ARPACK_DIR} PATH)
12  set(ARPACK_INCLUDE_DIR ${ARPACK_DIR}/include CACHE FILEPATH "ARPACK include directory.")
13  mark_as_advanced(ARPACK_INCLUDE_DIR)
14 endif ()
15 mark_as_advanced(ARPACK_LIBRARY)
cmake ARPACK_INCLUDE_DIR
if(oldcoutbuf)
function get_filename_component(inout ARGN)
Fixes CMake's get_filename_component() command.