install utility as well

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Dimitri Stolnikov 2012-04-03 20:11:53 +02:00 committed by Steve Markgraf
parent f13cf0e56c
commit d2355cfd91

View File

@ -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
)