Add fam/gamin support to tdelibs CMake

(cherry picked from commit 2b035349c3)
v3.5.13-sru
Timothy Pearson 13 years ago committed by Slávek Banko
parent 422f8fa037
commit bea964028b

@ -77,6 +77,7 @@ OPTION( WITH_UTEMPTER "Use utempter for utmp management" OFF )
OPTION( WITH_AVAHI "Enable AVAHI support" OFF )
OPTION( WITH_PCRE "Enable pcre regex support for kjs" ON )
OPTION( WITH_INOTIFY "Enable inotify support for kio" ON )
OPTION( WITH_GAMIN "Enable FAM/GAMIN support" ${WITH_ALL_OPTIONS} )
OPTION( WITH_ASPELL "Enable aspell support" OFF )
OPTION( WITH_HSPELL "Enable hspell support" OFF )
@ -747,6 +748,23 @@ if( WITH_INOTIFY )
endif( )
##### check for FAM/GAMIN ##########################
if( WITH_GAMIN )
check_include_file( "fam.h" HAVE_FAM_H )
if( HAVE_FAM_H )
pkg_search_module( GAMIN gamin )
if( GAMIN_FOUND )
set( HAVE_FAM 1 )
else( GAMIN_FOUND )
message(FATAL_ERROR "\nfam/gamin support was requested, but gamin was not found on your system" )
endif( GAMIN_FOUND )
else( HAVE_FAM_H )
message(FATAL_ERROR "\nfam/gamin support was requested, but fam was not found on your system" )
endif( HAVE_FAM_H )
endif( WITH_GAMIN )
##### check for aspell ##########################
# we need ASPELL_DATADIR too

@ -114,7 +114,7 @@
#undef HAVE_FADVISE
/* Define if your system has libfam */
#undef HAVE_FAM
#cmakedefine HAVE_FAM 1
/* Define to 1 if you have the <float.h> header file. */
#cmakedefine HAVE_FLOAT_H 1

@ -24,8 +24,12 @@ include_directories(
${CMAKE_SOURCE_DIR}/kio
${CMAKE_SOURCE_DIR}/kio/kssl
${CMAKE_SOURCE_DIR}/interfaces
${GAMIN_INCLUDEDIR}
)
link_directories(
${GAMIN_LIBDIR}
)
##### headers ###################################
@ -112,4 +116,5 @@ set( ${target}_SRCS
tde_add_library( ${target} STATIC_PIC AUTOMOC
SOURCES ${${target}_SRCS}
LINK ${GAMIN_LIBRARIES}
)

Loading…
Cancel
Save