install utility as well

Signed-off-by: Steve Markgraf <steve@steve-m.de>
master
Dimitri Stolnikov 13 years ago committed by Steve Markgraf
parent f13cf0e56c
commit d2355cfd91
  1. 17
      src/CMakeLists.txt

@ -53,14 +53,6 @@ if(NOT WIN32)
# Force same library filename for static and shared variants of the library
set_target_properties(rtlsdr_static PROPERTIES OUTPUT_NAME rtlsdr)
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
@ -70,3 +62,12 @@ target_link_libraries(rtl_sdr rtlsdr_static
${LIBUSB_LIBRARIES}
${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…
Cancel
Save