diff options
Diffstat (limited to 'CMakeLists.txt')
| -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") | 
