link applications to shared library

This saves space on low-memory devices.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Steve Markgraf 13 years ago
parent 4031d6ed04
commit b136a5ae9e
  1. 6
      src/CMakeLists.txt

@ -67,15 +67,15 @@ endif()
add_executable(rtl_sdr rtl_sdr.c) add_executable(rtl_sdr rtl_sdr.c)
add_executable(rtl_tcp rtl_tcp.c) add_executable(rtl_tcp rtl_tcp.c)
add_executable(rtl_test rtl_test.c) add_executable(rtl_test rtl_test.c)
target_link_libraries(rtl_sdr rtlsdr_static target_link_libraries(rtl_sdr rtlsdr_shared
${LIBUSB_LIBRARIES} ${LIBUSB_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
) )
target_link_libraries(rtl_tcp rtlsdr_static target_link_libraries(rtl_tcp rtlsdr_shared
${LIBUSB_LIBRARIES} ${LIBUSB_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
) )
target_link_libraries(rtl_test rtlsdr_static target_link_libraries(rtl_test rtlsdr_shared
${LIBUSB_LIBRARIES} ${LIBUSB_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT} ${CMAKE_THREAD_LIBS_INIT}
) )

Loading…
Cancel
Save