Check for INotify if compiling for Linuxe and friends

This commit is contained in:
Klaas Freitag 2014-01-23 16:05:07 +01:00
parent 04d8c82dbd
commit 688d394576
2 changed files with 10 additions and 0 deletions

View file

@ -77,6 +77,11 @@ endif()
#endif() #endif()
find_package(Neon REQUIRED) find_package(Neon REQUIRED)
find_package(QtKeychain REQUIRED) find_package(QtKeychain REQUIRED)
if(UNIX)
find_package(INotify REQUIRED)
else()
find_package(INotify)
endif()
find_package(Sphinx) find_package(Sphinx)
find_package(PdfLatex) find_package(PdfLatex)

View file

@ -19,6 +19,11 @@ if ( APPLE )
) )
endif() endif()
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
list(APPEND OS_SPECIFIC_LINK_LIBRARIES
inotify
)
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if( ENABLE_SPARKLE AND SPARKLE ) if( ENABLE_SPARKLE AND SPARKLE )
set( HAVE_SPARKLE ON ) set( HAVE_SPARKLE ON )