Home | History | Annotate | Download | only in cmake
      1 
      2 if (GOTO2_LIBRARIES)
      3   set(GOTO2_FIND_QUIETLY TRUE)
      4 endif (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 
     14 find_file(GOTO2_LIBRARIES libgoto2.so PATHS /usr/lib $ENV{GOTO2DIR} ${LIB_INSTALL_DIR})
     15 find_library(GOTO2_LIBRARIES goto2 PATHS $ENV{GOTO2DIR} ${LIB_INSTALL_DIR})
     16 
     17 if(GOTO2_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX)
     18   set(GOTO2_LIBRARIES ${GOTO2_LIBRARIES} "-lpthread -lgfortran")
     19 endif()
     20 
     21 include(FindPackageHandleStandardArgs)
     22 find_package_handle_standard_args(GOTO2 DEFAULT_MSG
     23                                   GOTO2_LIBRARIES)
     24 
     25 mark_as_advanced(GOTO2_LIBRARIES)
     26