Home | History | Annotate | Download | only in Modules
      1 #
      2 # Try to find the Myricom SNF library.
      3 #
      4 
      5 # Try to find the header
      6 find_path(SNF_INCLUDE_DIR snf.h /opt/snf)
      7 
      8 # Try to find the library
      9 find_library(SNF_LIBRARY snf /opt/snf)
     10 
     11 include(FindPackageHandleStandardArgs)
     12 find_package_handle_standard_args(SNF
     13   DEFAULT_MSG
     14   SNF_INCLUDE_DIR
     15   SNF_LIBRARY
     16 )
     17 
     18 mark_as_advanced(
     19   SNF_INCLUDE_DIR
     20   SNF_LIBRARY
     21 )
     22 
     23 set(SNF_INCLUDE_DIRS ${SNF_INCLUDE_DIR})
     24 set(SNF_LIBRARIES ${SNF_LIBRARY})
     25