diff options
author | Nikias Bassen | 2010-03-22 04:29:00 +0100 |
---|---|---|
committer | Hector Martin | 2010-04-08 15:11:23 +0200 |
commit | 3013889a86dff1fcc6260b476dc30824b71b0562 (patch) | |
tree | 2e45db3a26589801284cb6dfa04e41d6b8dbff1f | |
parent | 803f6ccfeaf49aadbf56d544811864d147f00eac (diff) | |
download | usbmuxd-3013889a86dff1fcc6260b476dc30824b71b0562.tar.gz usbmuxd-3013889a86dff1fcc6260b476dc30824b71b0562.tar.bz2 |
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.
-rw-r--r-- | CMakeLists.txt | 21 |
1 files 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") |