FindINotify.cmake 631 B

12345678910111213141516171819
  1. # This module defines
  2. # INOTIFY_INCLUDE_DIR, where to find inotify.h, etc.
  3. # INOTIFY_FOUND, If false, do not try to use inotify.
  4. # also defined, but not for general use are
  5. # INOTIFY_LIBRARY, where to find the inotify library.
  6. find_path(INOTIFY_INCLUDE_DIR sys/inotify.h)
  7. mark_as_advanced(INOTIFY_INCLUDE_DIR)
  8. # handle the QUIETLY and REQUIRED arguments and set INOTIFY_FOUND to TRUE if
  9. # all listed variables are TRUE
  10. include(FindPackageHandleStandardArgs)
  11. find_package_handle_standard_args(INOTIFY DEFAULT_MSG INOTIFY_INCLUDE_DIR)
  12. IF(INOTIFY_FOUND)
  13. SET(INotify_INCLUDE_DIRS ${INOTIFY_INCLUDE_DIR})
  14. ENDIF(INOTIFY_FOUND)