1 find_path(INOTIFYTOOLS_INCLUDE_DIR sys/inotify.h PATH_SUFFIXES inotify)
2 mark_as_advanced(INOTIFYTOOLS_INCLUDE_DIR)
4 find_library(INOTIFYTOOLS_LIBRARY inotifytools PATH_SUFFIXES lib/inotify)
6 get_filename_component(INOTIFYTOOLS_LIBRARY_DIR ${INOTIFYTOOLS_LIBRARY} PATH)
7 mark_as_advanced(INOTIFYTOOLS_LIBRARY_DIR)
9 include(FindPackageHandleStandardArgs)
10 find_package_handle_standard_args(INOTIFYTOOLS DEFAULT_MSG INOTIFYTOOLS_INCLUDE_DIR INOTIFYTOOLS_LIBRARY_DIR)
12 IF(INOTIFYTOOLS_FOUND)
13 SET(INOTIFYTOOLS_INCLUDE_DIRS ${INOTIFYTOOLS_INCLUDE_DIR})
14 SET(INOTIFYTOOLS_LIBRARY_DIRS ${INOTIFYTOOLS_LIBRARY_DIR})
15 ENDIF(INOTIFYTOOLS_FOUND)