FindSNF.cmake 432 B

123456789101112131415161718192021222324
  1. #
  2. # Try to find the Myricom SNF library.
  3. #
  4. # Try to find the header
  5. find_path(SNF_INCLUDE_DIR snf.h /opt/snf)
  6. # Try to find the library
  7. find_library(SNF_LIBRARY snf /opt/snf)
  8. include(FindPackageHandleStandardArgs)
  9. find_package_handle_standard_args(SNF
  10. DEFAULT_MSG
  11. SNF_INCLUDE_DIR
  12. SNF_LIBRARY
  13. )
  14. mark_as_advanced(
  15. SNF_INCLUDE_DIR
  16. SNF_LIBRARY
  17. )
  18. set(SNF_INCLUDE_DIRS ${SNF_INCLUDE_DIR})
  19. set(SNF_LIBRARIES ${SNF_LIBRARY})