summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-11-27 14:41:23 +0100
committerGravatar Nikias Bassen2010-11-27 14:41:23 +0100
commit0ca8f1c05bea2c1f4d53aa165079588ea6519847 (patch)
tree28e0e59a3e48fc228d1758aa8668a65d41bda6f1
parent02252a478689c5bb22552a3bce06b7bbe234cb6c (diff)
downloadusbmuxd-0ca8f1c05bea2c1f4d53aa165079588ea6519847.tar.gz
usbmuxd-0ca8f1c05bea2c1f4d53aa165079588ea6519847.tar.bz2
libusbmuxd: allow building without inotify support
-rw-r--r--libusbmuxd/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/libusbmuxd/CMakeLists.txt b/libusbmuxd/CMakeLists.txt
index 402d726..a3d5fbe 100644
--- a/libusbmuxd/CMakeLists.txt
+++ b/libusbmuxd/CMakeLists.txt
@@ -1,10 +1,14 @@
1include_directories (${CMAKE_SOURCE_DIR}/common) 1include_directories (${CMAKE_SOURCE_DIR}/common)
2find_package(Threads) 2find_package(Threads)
3
4option(WANT_INOTIFY "Build with inotify support" ON)
5if (WANT_INOTIFY)
3find_package(Inotify) 6find_package(Inotify)
4if (INOTIFY_FOUND) 7if (INOTIFY_FOUND)
5 add_definitions("-DHAVE_INOTIFY") 8 add_definitions("-DHAVE_INOTIFY")
6 message("-- libusbmuxd will be built with inotify support") 9 message("-- libusbmuxd will be built with inotify support")
7endif() 10endif()
11endif(WANT_INOTIFY)
8 12
9add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c) 13add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c)
10find_library (PTHREAD pthread) 14find_library (PTHREAD pthread)