Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Show All 35 Lines | |||||
36 | 36 | | |||
37 | set_package_properties(FAM PROPERTIES | 37 | set_package_properties(FAM PROPERTIES | ||
38 | PURPOSE "Provides file alteration notification facilities using a separate service. FAM provides additional support for NFS.") | 38 | PURPOSE "Provides file alteration notification facilities using a separate service. FAM provides additional support for NFS.") | ||
39 | 39 | | |||
40 | set(HAVE_FAM ${FAM_FOUND}) | 40 | set(HAVE_FAM ${FAM_FOUND}) | ||
41 | 41 | | |||
42 | option(ENABLE_INOTIFY "Try to use inotify for directory monitoring" ON) | 42 | option(ENABLE_INOTIFY "Try to use inotify for directory monitoring" ON) | ||
43 | if(ENABLE_INOTIFY) | 43 | if(ENABLE_INOTIFY) | ||
44 | include(CheckIncludeFiles) | 44 | # Find libinotify | ||
45 | check_include_files(sys/inotify.h SYS_INOTIFY_H_FOUND) | 45 | find_package(Inotify) | ||
46 | set(HAVE_SYS_INOTIFY_H ${SYS_INOTIFY_H_FOUND}) | 46 | set_package_properties(Inotify PROPERTIES | ||
47 | PURPOSE "Filesystem alteration notifications using inotify") | ||||
48 | set(HAVE_SYS_INOTIFY_H ${Inotify_FOUND}) | ||||
49 | else() | ||||
50 | set(HAVE_SYS_INOTIFY_H FALSE) | ||||
47 | endif() | 51 | endif() | ||
48 | 52 | | |||
49 | # Generate io/config-kdirwatch.h | 53 | # Generate io/config-kdirwatch.h | ||
50 | configure_file(src/lib/io/config-kdirwatch.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/lib/io/config-kdirwatch.h) | 54 | configure_file(src/lib/io/config-kdirwatch.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/lib/io/config-kdirwatch.h) | ||
51 | 55 | | |||
52 | include(ECMPoQmTools) | 56 | include(ECMPoQmTools) | ||
53 | 57 | | |||
54 | ecm_setup_version(PROJECT VARIABLE_PREFIX KCOREADDONS | 58 | ecm_setup_version(PROJECT VARIABLE_PREFIX KCOREADDONS | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |