|
|
@ -53,14 +53,6 @@ if(NOT WIN32) |
|
|
|
# Force same library filename for static and shared variants of the library |
|
|
|
# Force same library filename for static and shared variants of the library |
|
|
|
set_target_properties(rtlsdr_static PROPERTIES OUTPUT_NAME rtlsdr) |
|
|
|
set_target_properties(rtlsdr_static PROPERTIES OUTPUT_NAME rtlsdr) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
######################################################################## |
|
|
|
|
|
|
|
# Install built library files |
|
|
|
|
|
|
|
######################################################################## |
|
|
|
|
|
|
|
install(TARGETS rtlsdr_shared rtlsdr_static |
|
|
|
|
|
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX} # .so/.dylib file |
|
|
|
|
|
|
|
ARCHIVE DESTINATION lib${LIB_SUFFIX} # .lib file |
|
|
|
|
|
|
|
RUNTIME DESTINATION bin # .dll file |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######################################################################## |
|
|
|
######################################################################## |
|
|
|
# Build utility |
|
|
|
# Build utility |
|
|
@ -70,3 +62,12 @@ target_link_libraries(rtl_sdr rtlsdr_static |
|
|
|
${LIBUSB_LIBRARIES} |
|
|
|
${LIBUSB_LIBRARIES} |
|
|
|
${CMAKE_THREAD_LIBS_INIT} |
|
|
|
${CMAKE_THREAD_LIBS_INIT} |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######################################################################## |
|
|
|
|
|
|
|
# Install built library files & utilities |
|
|
|
|
|
|
|
######################################################################## |
|
|
|
|
|
|
|
install(TARGETS rtlsdr_shared rtlsdr_static rtl_sdr |
|
|
|
|
|
|
|
LIBRARY DESTINATION lib${LIB_SUFFIX} # .so/.dylib file |
|
|
|
|
|
|
|
ARCHIVE DESTINATION lib${LIB_SUFFIX} # .lib file |
|
|
|
|
|
|
|
RUNTIME DESTINATION bin # .dll file |
|
|
|
|
|
|
|
) |
|
|
|