1
2if (GOTO2_LIBRARIES)
3  set(GOTO2_FIND_QUIETLY TRUE)
4endif (GOTO2_LIBRARIES)
5#
6# find_path(GOTO_INCLUDES
7#   NAMES
8#   cblas.h
9#   PATHS
10#   $ENV{GOTODIR}/include
11#   ${INCLUDE_INSTALL_DIR}
12# )
13
14find_file(GOTO2_LIBRARIES libgoto2.so PATHS /usr/lib $ENV{GOTO2DIR} ${LIB_INSTALL_DIR})
15find_library(GOTO2_LIBRARIES goto2 PATHS $ENV{GOTO2DIR} ${LIB_INSTALL_DIR})
16
17if(GOTO2_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
18  set(GOTO2_LIBRARIES ${GOTO2_LIBRARIES} "-lpthread -lgfortran")
19endif()
20
21include(FindPackageHandleStandardArgs)
22find_package_handle_standard_args(GOTO2 DEFAULT_MSG
23                                  GOTO2_LIBRARIES)
24
25mark_as_advanced(GOTO2_LIBRARIES)
26