summaryrefslogtreecommitdiffstats
path: root/tools/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-05-26 20:30:02 +0200
committerGravatar Nikias Bassen2010-05-26 20:30:02 +0200
commit0833499c76f78da21fc33874a485946189a33dad (patch)
tree3406bc2729986945020748d176d492c6c4a4628a /tools/CMakeLists.txt
parent6cb505257ff848aa7ead80b60b575effc3a915fa (diff)
downloadusbmuxd-0833499c76f78da21fc33874a485946189a33dad.tar.gz
usbmuxd-0833499c76f78da21fc33874a485946189a33dad.tar.bz2
libusbmuxd: use winsock API for win32
Diffstat (limited to 'tools/CMakeLists.txt')
-rw-r--r--tools/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 08ea714..64d0d0e 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -2,6 +2,10 @@ include_directories (${CMAKE_SOURCE_DIR}/libusbmuxd)
link_directories (${CMAKE_BINARY_DIR}/libusbmuxd)
add_executable(iproxy iproxy.c)
-target_link_libraries(iproxy libusbmuxd pthread)
+if(WIN32)
+ target_link_libraries(iproxy libusbmuxd pthread ws2_32)
+else()
+ target_link_libraries(iproxy libusbmuxd pthread)
+endif()
install(TARGETS iproxy RUNTIME DESTINATION bin)