summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'libusbmuxd/CMakeLists.txt')
-rw-r--r--libusbmuxd/CMakeLists.txt45
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 @@
1include_directories (${CMAKE_SOURCE_DIR}/common)
2find_package(Threads)
3
4option(WANT_INOTIFY "Build with inotify support" ON)
5if (WANT_INOTIFY)
6find_package(Inotify)
7if (INOTIFY_FOUND)
8 add_definitions("-DHAVE_INOTIFY")
9 message("-- libusbmuxd will be built with inotify support")
10endif()
11endif(WANT_INOTIFY)
12
13add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c)
14find_library (PTHREAD pthread)
15
16if (HAVE_PLIST)
17 add_definitions("-DHAVE_PLIST")
18 message("-- libusbmuxd will be built with protocol version 1 support")
19endif()
20if(WIN32)
21 set(OPT_LIBS ${OPT_LIBS} ws2_32)
22endif()
23include_directories(${OPT_INCLUDES})
24target_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
29set_target_properties(libusbmuxd PROPERTIES OUTPUT_NAME usbmuxd)
30set_target_properties(libusbmuxd PROPERTIES VERSION ${LIBUSBMUXD_VERSION})
31set_target_properties(libusbmuxd PROPERTIES SOVERSION ${LIBUSBMUXD_SOVERSION})
32
33if(APPLE)
34 set_target_properties(libusbmuxd PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}")
35endif()
36if(WIN32)
37 set_target_properties(libusbmuxd PROPERTIES PREFIX "lib" IMPORT_PREFIX "lib")
38endif()
39
40install(TARGETS libusbmuxd
41 RUNTIME DESTINATION bin
42 ARCHIVE DESTINATION lib${LIB_SUFFIX}
43 LIBRARY DESTINATION lib${LIB_SUFFIX}
44)
45install(FILES usbmuxd.h usbmuxd-proto.h DESTINATION include)