You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
661 B

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