diff options
| author | 2013-09-17 11:30:01 +0200 | |
|---|---|---|
| committer | 2013-09-17 11:30:01 +0200 | |
| commit | f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0 (patch) | |
| tree | 671e85e639b689b0b888a0f51c7dd5e15d408930 /libusbmuxd/CMakeLists.txt | |
| parent | 10939f3ad5755d1117f20df2b97c0cbbd83bbcbe (diff) | |
| download | usbmuxd-f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0.tar.gz usbmuxd-f4758e8b15cd30fe3f7f18de42e2ea20bc5696f0.tar.bz2 | |
remove libusbmuxd sources and adapt source tree to use autotools
libusbmuxd has been split off and is now managed in a separate repository.
By the time of this commit, the repository is:
git clone http://git.sukimashita.com/libusbmuxd.git
Diffstat (limited to 'libusbmuxd/CMakeLists.txt')
| -rw-r--r-- | libusbmuxd/CMakeLists.txt | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/libusbmuxd/CMakeLists.txt b/libusbmuxd/CMakeLists.txt deleted file mode 100644 index 737eb02..0000000 --- a/libusbmuxd/CMakeLists.txt +++ /dev/null | |||
| @@ -1,45 +0,0 @@ | |||
| 1 | include_directories (${CMAKE_SOURCE_DIR}/common) | ||
| 2 | find_package(Threads) | ||
| 3 | |||
| 4 | option(WANT_INOTIFY "Build with inotify support" ON) | ||
| 5 | if (WANT_INOTIFY) | ||
| 6 | find_package(Inotify) | ||
| 7 | if (INOTIFY_FOUND) | ||
| 8 | add_definitions("-DHAVE_INOTIFY") | ||
| 9 | message("-- libusbmuxd will be built with inotify support") | ||
| 10 | endif() | ||
| 11 | endif(WANT_INOTIFY) | ||
| 12 | |||
| 13 | add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c) | ||
| 14 | find_library (PTHREAD pthread) | ||
| 15 | |||
| 16 | if (HAVE_PLIST) | ||
| 17 | add_definitions("-DHAVE_PLIST") | ||
| 18 | message("-- libusbmuxd will be built with protocol version 1 support") | ||
| 19 | endif() | ||
| 20 | if(WIN32) | ||
| 21 | set(OPT_LIBS ${OPT_LIBS} ws2_32) | ||
| 22 | endif() | ||
| 23 | include_directories(${OPT_INCLUDES}) | ||
| 24 | target_link_libraries (libusbmuxd ${CMAKE_THREAD_LIBS_INIT} ${OPT_LIBS}) | ||
| 25 | |||
| 26 | # 'lib' is a UNIXism, the proper CMake target is usbmuxd | ||
| 27 | # But we can't use that due to the conflict with the usbmuxd daemon, | ||
| 28 | # so instead change the library output base name to usbmuxd here | ||
| 29 | set_target_properties(libusbmuxd PROPERTIES OUTPUT_NAME usbmuxd) | ||
| 30 | set_target_properties(libusbmuxd PROPERTIES VERSION ${LIBUSBMUXD_VERSION}) | ||
| 31 | set_target_properties(libusbmuxd PROPERTIES SOVERSION ${LIBUSBMUXD_SOVERSION}) | ||
| 32 | |||
| 33 | if(APPLE) | ||
| 34 | set_target_properties(libusbmuxd PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}") | ||
| 35 | endif() | ||
| 36 | if(WIN32) | ||
| 37 | set_target_properties(libusbmuxd PROPERTIES PREFIX "lib" IMPORT_PREFIX "lib") | ||
| 38 | endif() | ||
| 39 | |||
| 40 | install(TARGETS libusbmuxd | ||
| 41 | RUNTIME DESTINATION bin | ||
| 42 | ARCHIVE DESTINATION lib${LIB_SUFFIX} | ||
| 43 | LIBRARY DESTINATION lib${LIB_SUFFIX} | ||
| 44 | ) | ||
| 45 | install(FILES usbmuxd.h usbmuxd-proto.h DESTINATION include) | ||
