From c9db7c05573bee6e819ae76095e0d80f5fe02dd4 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 7 Feb 2010 01:59:03 +0100 Subject: Clean up CMakeLists (inspired by Gentoo patch) --- libusbmuxd/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libusbmuxd') diff --git a/libusbmuxd/CMakeLists.txt b/libusbmuxd/CMakeLists.txt index d062f23..d275169 100644 --- a/libusbmuxd/CMakeLists.txt +++ b/libusbmuxd/CMakeLists.txt @@ -1,8 +1,10 @@ include_directories (${CMAKE_SOURCE_DIR}/common) +find_package(Threads) -add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ../common/utils.c) +add_library (libusbmuxd SHARED libusbmuxd.c sock_stuff.c ${CMAKE_SOURCE_DIR}/common/utils.c) find_library (PTHREAD pthread) -target_link_libraries (libusbmuxd ${PTHREAD}) +target_link_libraries (libusbmuxd ${CMAKE_THREAD_LIBS_INIT}) + # '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 -- cgit v1.1-32-gdbae