diff options
Diffstat (limited to 'libusbmuxd/CMakeLists.txt')
-rw-r--r-- | libusbmuxd/CMakeLists.txt | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libusbmuxd/CMakeLists.txt b/libusbmuxd/CMakeLists.txt deleted file mode 100644 index 81203d3..0000000 --- a/libusbmuxd/CMakeLists.txt +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | include_directories (${CMAKE_SOURCE_DIR}/common) | ||
2 | find_package(Threads) | ||
3 | |||
4 | add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c) | ||
5 | find_library (PTHREAD pthread) | ||
6 | |||
7 | if (HAVE_PLIST) | ||
8 | add_definitions("-DHAVE_PLIST") | ||
9 | message("-- libusbmuxd will be built with protocol version 1 support") | ||
10 | endif() | ||
11 | if(WIN32) | ||
12 | set(OPT_LIBS ${OPT_LIBS} ws2_32) | ||
13 | endif() | ||
14 | include_directories(${OPT_INCLUDES}) | ||
15 | target_link_libraries (libusbmuxd ${CMAKE_THREAD_LIBS_INIT} ${OPT_LIBS}) | ||
16 | |||
17 | # 'lib' is a UNIXism, the proper CMake target is usbmuxd | ||
18 | # But we can't use that due to the conflict with the usbmuxd daemon, | ||
19 | # so instead change the library output base name to usbmuxd here | ||
20 | set_target_properties(libusbmuxd PROPERTIES OUTPUT_NAME usbmuxd) | ||
21 | set_target_properties(libusbmuxd PROPERTIES VERSION ${LIBUSBMUXD_VERSION}) | ||
22 | set_target_properties(libusbmuxd PROPERTIES SOVERSION ${LIBUSBMUXD_SOVERSION}) | ||
23 | |||
24 | install(TARGETS libusbmuxd | ||
25 | RUNTIME DESTINATION bin | ||
26 | ARCHIVE DESTINATION lib${LIB_SUFFIX} | ||
27 | LIBRARY DESTINATION lib${LIB_SUFFIX} | ||
28 | ) | ||
29 | install(FILES usbmuxd.h usbmuxd-proto.h DESTINATION include) | ||