From 3013889a86dff1fcc6260b476dc30824b71b0562 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 22 Mar 2010 04:29:00 +0100 Subject: Add cmake option WITH_USBMUXD for disabling build of usbmuxd (Win/OSX) Run cmake -DWITH_USBMUXD=NO to disable building of usbmuxd, e.g. for systems like Windows or OSX where iTunes is installed. It will also skip the udev sub-directory on build. --- CMakeLists.txt | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 64ef37f..fb99b4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,12 +21,29 @@ if(CMAKE_C_FLAGS STREQUAL "") set(CMAKE_C_FLAGS "-O2") endif(CMAKE_C_FLAGS STREQUAL "") +option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) +if(WITH_USBMUXD) + message("-- Will build usbmuxd: YES") +else() + message("-- Will build usbmuxd: NO") + message("** NOTE: will NOT build usbmuxd **") + if(WIN32 OR APPLE) + message("** Make sure iTunes is installed, otherwise this software will not work! **") + else() + message("** You'll need a working usbmuxd implementation for this software to work! **") + endif() +endif() + add_definitions(-Wall) add_subdirectory (libusbmuxd) -add_subdirectory (daemon) +if (WITH_USBMUXD) + add_subdirectory (daemon) + if (NOT(WIN32 OR APPLE)) + add_subdirectory (udev) + endif() +endif() add_subdirectory (tools) -add_subdirectory (udev) # pkg-config configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libusbmuxd.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libusbmuxd.pc") -- cgit v1.1-32-gdbae