diff options
author | Klaas Freitag <freitag@owncloud.com> | 2012-07-20 19:12:29 +0400 |
---|---|---|
committer | Klaas Freitag <freitag@owncloud.com> | 2012-07-20 19:12:29 +0400 |
commit | 4b33997678e702290723aac5c9f537a48427ee95 (patch) | |
tree | cad63194a7f57e021656f0f92828ef49cc5191b9 /cmake | |
parent | 5246a6fad4ce3376ebec088746e32c61c1205b22 (diff) |
Check the system for inotify in cmake and use a config.h file.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindINotify.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/modules/FindINotify.cmake b/cmake/modules/FindINotify.cmake new file mode 100644 index 000000000..31c2479ca --- /dev/null +++ b/cmake/modules/FindINotify.cmake @@ -0,0 +1,19 @@ +# 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. + +find_path(INOTIFY_INCLUDE_DIR sys/inotify.h) +mark_as_advanced(INOTIFY_INCLUDE_DIR) + + +# handle the QUIETLY and REQUIRED arguments and set INOTIFY_FOUND to TRUE if +# all listed variables are TRUE +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) + |