-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Watching a folder with inotify should be daemonized in the future pending the addition of a configuration file scheme. Some currently fixed parameters such as remote drive poll rate will also be made configurable.
- Loading branch information
Showing
4 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# - Find INOTIFYTOOLS | ||
# This module finds an installed INOTIFYTOOLS package. | ||
# | ||
# It sets the following variables: | ||
# INOTIFYTOOLS_FOUND - Set to false, or undefined, if INOTIFYTOOLS isn't found. | ||
# INOTIFYTOOLS_INCLUDE_DIR - The INOTIFYTOOLS include directory. | ||
# INOTIFYTOOLS_LIBRARY - The INOTIFYTOOLS library to link against. | ||
|
||
FIND_PATH(INOTIFYTOOLS_INCLUDE_DIR inotifytools/inotifytools.h) | ||
FIND_LIBRARY(INOTIFYTOOLS_LIBRARY NAMES inotifytools) | ||
|
||
IF (INOTIFYTOOLS_INCLUDE_DIR AND INOTIFYTOOLS_LIBRARY) | ||
SET(INOTIFYTOOLS_FOUND TRUE) | ||
ENDIF (INOTIFYTOOLS_INCLUDE_DIR AND INOTIFYTOOLS_LIBRARY) | ||
|
||
IF (INOTIFYTOOLS_FOUND) | ||
|
||
# show which INOTIFYTOOLS was found only if not quiet | ||
IF (NOT INOTIFYTOOLS_FIND_QUIETLY) | ||
MESSAGE(STATUS "Found INOTIFYTOOLS: ${INOTIFYTOOLS_LIBRARY}") | ||
ENDIF (NOT INOTIFYTOOLS_FIND_QUIETLY) | ||
|
||
ELSE (INOTIFYTOOLS_FOUND) | ||
|
||
# fatal error if INOTIFYTOOLS is required but not found | ||
IF (INOTIFYTOOLS_FIND_REQUIRED) | ||
MESSAGE(FATAL_ERROR "Could not find INOTIFYTOOLS") | ||
ENDIF (INOTIFYTOOLS_FIND_REQUIRED) | ||
|
||
ENDIF (INOTIFYTOOLS_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters