summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/CMakeLists.txt
blob: fd47afbd2ecc55b59480bb1a72efb438c93452ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include_directories (${CMAKE_SOURCE_DIR}/common)

add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ../common/utils.c)

# 'lib' is a UNIXism, the proper CMake target is usbmuxd
# But we can't use that due to the conflict with the usbmuxd daemon,
# so instead change the library output base name to usbmuxd here
set_target_properties(libusbmuxd PROPERTIES OUTPUT_NAME usbmuxd)
set_target_properties(libusbmuxd PROPERTIES VERSION ${LIBUSBMUXD_VERSION})
set_target_properties(libusbmuxd PROPERTIES SOVERSION ${LIBUSBMUXD_SOVERSION})

install(TARGETS libusbmuxd
	ARCHIVE DESTINATION lib${LIB_SUFFIX}
	LIBRARY DESTINATION lib${LIB_SUFFIX}
)
install(FILES usbmuxd.h usbmuxd-proto.h DESTINATION include)