|
|
|
@ -36,6 +36,10 @@ set_target_properties(rtlsdr_shared PROPERTIES DEFINE_SYMBOL "rtlsdr_EXPORTS") |
|
|
|
|
set_target_properties(rtlsdr_shared PROPERTIES OUTPUT_NAME rtlsdr) |
|
|
|
|
set_target_properties(rtlsdr_shared PROPERTIES SOVERSION 0 VERSION 0.0.0) |
|
|
|
|
|
|
|
|
|
if(UNIX) |
|
|
|
|
link_libraries(m) |
|
|
|
|
endif(UNIX) |
|
|
|
|
|
|
|
|
|
add_library(rtlsdr_static STATIC |
|
|
|
|
librtlsdr.c |
|
|
|
|
tuner_e4k.c |
|
|
|
@ -67,6 +71,8 @@ endif() |
|
|
|
|
add_executable(rtl_sdr rtl_sdr.c) |
|
|
|
|
add_executable(rtl_tcp rtl_tcp.c) |
|
|
|
|
add_executable(rtl_test rtl_test.c) |
|
|
|
|
add_executable(rtl_fm rtl_fm.c) |
|
|
|
|
|
|
|
|
|
target_link_libraries(rtl_sdr rtlsdr_shared |
|
|
|
|
${LIBUSB_LIBRARIES} |
|
|
|
|
${CMAKE_THREAD_LIBS_INIT} |
|
|
|
@ -79,14 +85,20 @@ target_link_libraries(rtl_test rtlsdr_shared |
|
|
|
|
${LIBUSB_LIBRARIES} |
|
|
|
|
${CMAKE_THREAD_LIBS_INIT} |
|
|
|
|
) |
|
|
|
|
target_link_libraries(rtl_fm rtlsdr_shared |
|
|
|
|
${LIBUSB_LIBRARIES} |
|
|
|
|
${CMAKE_THREAD_LIBS_INIT} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
if(WIN32) |
|
|
|
|
target_link_libraries(rtl_sdr libgetopt_static) |
|
|
|
|
target_link_libraries(rtl_tcp libgetopt_static) |
|
|
|
|
target_link_libraries(rtl_test libgetopt_static) |
|
|
|
|
target_link_libraries(rtl_fm libgetopt_static) |
|
|
|
|
set_property(TARGET rtl_sdr APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" ) |
|
|
|
|
set_property(TARGET rtl_tcp APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" ) |
|
|
|
|
set_property(TARGET rtl_test APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" ) |
|
|
|
|
set_property(TARGET rtl_fm APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" ) |
|
|
|
|
endif() |
|
|
|
|
######################################################################## |
|
|
|
|
# Install built library files & utilities |
|
|
|
|