mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-12-26 10:58:28 +01:00
install utility as well
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
f13cf0e56c
commit
d2355cfd91
@ -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
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user