summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libusbmuxd/CMakeLists.txt')
-rw-r--r--libusbmuxd/CMakeLists.txt29
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 @@
1include_directories (${CMAKE_SOURCE_DIR}/common)
2find_package(Threads)
3
4add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c)
5find_library (PTHREAD pthread)
6
7if (HAVE_PLIST)
8 add_definitions("-DHAVE_PLIST")
9 message("-- libusbmuxd will be built with protocol version 1 support")
10endif()
11if(WIN32)
12 set(OPT_LIBS ${OPT_LIBS} ws2_32)
13endif()
14include_directories(${OPT_INCLUDES})
15target_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
20set_target_properties(libusbmuxd PROPERTIES OUTPUT_NAME usbmuxd)
21set_target_properties(libusbmuxd PROPERTIES VERSION ${LIBUSBMUXD_VERSION})
22set_target_properties(libusbmuxd PROPERTIES SOVERSION ${LIBUSBMUXD_SOVERSION})
23
24install(TARGETS libusbmuxd
25 RUNTIME DESTINATION bin
26 ARCHIVE DESTINATION lib${LIB_SUFFIX}
27 LIBRARY DESTINATION lib${LIB_SUFFIX}
28)
29install(FILES usbmuxd.h usbmuxd-proto.h DESTINATION include)