From b136a5ae9e1894fc7887f18a39a313bfbf1ee29c Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Tue, 29 May 2012 22:00:54 +0200 Subject: [PATCH] link applications to shared library This saves space on low-memory devices. Signed-off-by: Steve Markgraf --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6944be5..de4a26f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -67,15 +67,15 @@ endif() add_executable(rtl_sdr rtl_sdr.c) add_executable(rtl_tcp rtl_tcp.c) add_executable(rtl_test rtl_test.c) -target_link_libraries(rtl_sdr rtlsdr_static +target_link_libraries(rtl_sdr rtlsdr_shared ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) -target_link_libraries(rtl_tcp rtlsdr_static +target_link_libraries(rtl_tcp rtlsdr_shared ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) -target_link_libraries(rtl_test rtlsdr_static +target_link_libraries(rtl_test rtlsdr_shared ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} )