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 "") | |||
| 21 | set(CMAKE_C_FLAGS "-O2") | 21 | set(CMAKE_C_FLAGS "-O2") |
| 22 | endif(CMAKE_C_FLAGS STREQUAL "") | 22 | endif(CMAKE_C_FLAGS STREQUAL "") |
| 23 | 23 | ||
| 24 | option(WITH_USBMUXD "Build usbmux daemon (usbmuxd)" ON) | ||
| 25 | if(WITH_USBMUXD) | ||
| 26 | message("-- Will build usbmuxd: YES") | ||
| 27 | else() | ||
| 28 | message("-- Will build usbmuxd: NO") | ||
| 29 | message("** NOTE: will NOT build usbmuxd **") | ||
| 30 | if(WIN32 OR APPLE) | ||
| 31 | message("** Make sure iTunes is installed, otherwise this software will not work! **") | ||
| 32 | else() | ||
| 33 | message("** You'll need a working usbmuxd implementation for this software to work! **") | ||
| 34 | endif() | ||
| 35 | endif() | ||
| 36 | |||
| 24 | add_definitions(-Wall) | 37 | add_definitions(-Wall) |
| 25 | 38 | ||
| 26 | add_subdirectory (libusbmuxd) | 39 | add_subdirectory (libusbmuxd) |
| 27 | add_subdirectory (daemon) | 40 | if (WITH_USBMUXD) |
| 41 | add_subdirectory (daemon) | ||
| 42 | if (NOT(WIN32 OR APPLE)) | ||
| 43 | add_subdirectory (udev) | ||
| 44 | endif() | ||
| 45 | endif() | ||
| 28 | add_subdirectory (tools) | 46 | add_subdirectory (tools) |
| 29 | add_subdirectory (udev) | ||
| 30 | 47 | ||
| 31 | # pkg-config | 48 | # pkg-config |
| 32 | configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libusbmuxd.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libusbmuxd.pc") | 49 | configure_file("${CMAKE_CURRENT_SOURCE_DIR}/libusbmuxd.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libusbmuxd.pc") |
