2012-07-20 19:12:29 +04:00
|
|
|
# This module defines
|
|
|
|
# INOTIFY_INCLUDE_DIR, where to find inotify.h, etc.
|
|
|
|
# INOTIFY_FOUND, If false, do not try to use inotify.
|
|
|
|
# also defined, but not for general use are
|
|
|
|
# INOTIFY_LIBRARY, where to find the inotify library.
|
|
|
|
|
2012-12-04 20:36:06 +04:00
|
|
|
find_path(INOTIFY_INCLUDE_DIR sys/inotify.h
|
|
|
|
HINTS /usr/include/${CMAKE_LIBRARY_ARCHITECTURE})
|
2012-07-20 19:12:29 +04:00
|
|
|
mark_as_advanced(INOTIFY_INCLUDE_DIR)
|
|
|
|
|
|
|
|
# all listed variables are TRUE
|
2012-12-04 20:36:06 +04:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set INOTIFY_FOUND to TRUE if
|
2012-07-20 19:12:29 +04:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(INOTIFY DEFAULT_MSG INOTIFY_INCLUDE_DIR)
|
|
|
|
|
|
|
|
IF(INOTIFY_FOUND)
|
|
|
|
SET(INotify_INCLUDE_DIRS ${INOTIFY_INCLUDE_DIR})
|
|
|
|
ENDIF(INOTIFY_FOUND)
|
|
|
|
|