diff options
| author | 2009-08-25 03:26:22 +0200 | |
|---|---|---|
| committer | 2009-08-25 03:26:22 +0200 | |
| commit | 4711a2b493f76561e9803bf7e8be77186f3e7798 (patch) | |
| tree | 339684fe1b996e01047c3eb220a8e22e4491c5e2 /daemon/CMakeLists.txt | |
| parent | de30ca5d5c98a8cbee3d8748601519e2263b3e1d (diff) | |
| download | usbmuxd-4711a2b493f76561e9803bf7e8be77186f3e7798.tar.gz usbmuxd-4711a2b493f76561e9803bf7e8be77186f3e7798.tar.bz2 | |
Renamed directory 'usbmuxd' to more suitable 'daemon'.
Diffstat (limited to 'daemon/CMakeLists.txt')
| -rw-r--r-- | daemon/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/daemon/CMakeLists.txt b/daemon/CMakeLists.txt new file mode 100644 index 0000000..45565d1 --- /dev/null +++ b/daemon/CMakeLists.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | find_package(USB REQUIRED) | ||
| 2 | include_directories(${USB_INCLUDE_DIRS}) | ||
| 3 | set(LIBS ${LIBS} ${USB_LIBRARIES}) | ||
| 4 | |||
| 5 | include_directories (${CMAKE_SOURCE_DIR}/common) | ||
| 6 | include_directories (${CMAKE_SOURCE_DIR}/daemon) | ||
| 7 | include_directories (${CMAKE_SOURCE_DIR}/libusbmuxd) | ||
| 8 | |||
| 9 | include(CheckConstantExists) | ||
| 10 | set(CMAKE_REQUIRED_INCLUDES ${USB_INCLUDE_DIRS}) | ||
| 11 | check_constant_exists(LIBUSB_TRANSFER_ZERO_PACKET libusb.h HAVE_LIBUSB_ZLP) | ||
| 12 | |||
| 13 | if(NOT HAVE_LIBUSB_ZLP) | ||
| 14 | message(" | ||
| 15 | ================================================================================ | ||
| 16 | ==================================== WARNING =================================== | ||
| 17 | ================================================================================ | ||
| 18 | Your libusb is missing proper Zero Length Packet support! If you are using a | ||
| 19 | recent libusb Git, things may or may not work. If you are using libusb 1.0.2 or | ||
| 20 | earlier, things will definitely not work properly. | ||
| 21 | |||
| 22 | Please apply the patch in the contrib/ directory to your libusb 1.0 tree. | ||
| 23 | ================================================================================ | ||
| 24 | ") | ||
| 25 | add_definitions(-DEXPLICIT_ZLP_TRANSACTION) | ||
| 26 | endif(NOT HAVE_LIBUSB_ZLP) | ||
| 27 | |||
| 28 | add_definitions(-Wall -O2 -g -DUSBMUXD_DAEMON) | ||
| 29 | add_executable(usbmuxd main.c usb-linux.c log.c ../common/utils.c device.c client.c) | ||
| 30 | target_link_libraries(usbmuxd ${LIBS}) | ||
| 31 | |||
| 32 | install(TARGETS usbmuxd RUNTIME DESTINATION sbin) | ||
