diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f0a6a8..93fa715 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -25,6 +25,23 @@ if(CMAKE_C_FLAGS STREQUAL "") | |||
| 25 | set(CMAKE_C_FLAGS "-O2") | 25 | set(CMAKE_C_FLAGS "-O2") |
| 26 | endif() | 26 | endif() |
| 27 | 27 | ||
| 28 | option(WANT_PLIST "Build with protocol version 1 support using libplist" ON) | ||
| 29 | |||
| 30 | set(OPT_INCLUDES "") | ||
| 31 | set(OPT_LIBS "") | ||
| 32 | if(WANT_PLIST) | ||
| 33 | find_package(PLIST) | ||
| 34 | if(PLIST_FOUND) | ||
| 35 | set(HAVE_PLIST ON) | ||
| 36 | set(OPT_INCLUDES ${OPT_INCLUDES} ${PLIST_INCLUDE_DIRS}) | ||
| 37 | set(OPT_LIBS ${OPT_LIBS} ${PLIST_LIBRARIES}) | ||
| 38 | else() | ||
| 39 | message("* NOTE: libplist was not found!") | ||
| 40 | message("* libusbmuxd/usbmuxd will be build WITHOUT support for version 1") | ||
| 41 | message("* of the usbmux protocol (plist based).") | ||
| 42 | endif() | ||
| 43 | endif() | ||
| 44 | |||
| 28 | option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) | 45 | option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) |
| 29 | if(WIN32 AND WITH_USBMUXD) | 46 | if(WIN32 AND WITH_USBMUXD) |
| 30 | message("** NOTE: usbmuxd cannot be built on WIN32 due to missing libusb-1.0 support!") | 47 | message("** NOTE: usbmuxd cannot be built on WIN32 due to missing libusb-1.0 support!") |
