diff options
author | 2010-05-24 18:57:10 +0200 | |
---|---|---|
committer | 2010-05-26 01:39:28 +0200 | |
commit | 6cb505257ff848aa7ead80b60b575effc3a915fa (patch) | |
tree | 941978b9186158ea2775f50c5929f9e8b88764be /CMakeLists.txt | |
parent | 847eaeba69de3b22e5d65b3a98311655876df80e (diff) | |
download | usbmuxd-6cb505257ff848aa7ead80b60b575effc3a915fa.tar.gz usbmuxd-6cb505257ff848aa7ead80b60b575effc3a915fa.tar.bz2 |
Add protocol version 1 (plist based) support using libplist
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 "") 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!") |