summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
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 "")
set(CMAKE_C_FLAGS "-O2")
endif()
+option(WANT_PLIST "Build with protocol version 1 support using libplist" ON)
+
+set(OPT_INCLUDES "")
+set(OPT_LIBS "")
+if(WANT_PLIST)
+ find_package(PLIST)
+ if(PLIST_FOUND)
+ set(HAVE_PLIST ON)
+ set(OPT_INCLUDES ${OPT_INCLUDES} ${PLIST_INCLUDE_DIRS})
+ set(OPT_LIBS ${OPT_LIBS} ${PLIST_LIBRARIES})
+ else()
+ message("* NOTE: libplist was not found!")
+ message("* libusbmuxd/usbmuxd will be build WITHOUT support for version 1")
+ message("* of the usbmux protocol (plist based).")
+ endif()
+endif()
+
option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON)
if(WIN32 AND WITH_USBMUXD)
message("** NOTE: usbmuxd cannot be built on WIN32 due to missing libusb-1.0 support!")