mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 08:24:43 -04:00
Implemented Debian package build environment
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
project(hackrf)
|
||||
|
||||
find_package(LibUSB)
|
||||
|
||||
set(hackrf_SOURCES
|
||||
${LIBHACKRFSRC}/src/hackrf.c
|
||||
)
|
||||
|
||||
set(hackrf_HEADERS
|
||||
${LIBHACKRFSRC}/src/hackrf.h
|
||||
)
|
||||
|
||||
include_directories(
|
||||
.
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${LIBUSB_INCLUDE_DIR}
|
||||
${LIBHACKRFSRC}/src
|
||||
)
|
||||
|
||||
add_definitions(-DQT_SHARED)
|
||||
|
||||
add_library(hackrf SHARED
|
||||
${hackrf_SOURCES}
|
||||
)
|
||||
|
||||
target_link_libraries(hackrf
|
||||
${LIBUSB_LIBRARIES}
|
||||
)
|
||||
|
||||
install(TARGETS hackrf DESTINATION lib)
|
||||
Reference in New Issue
Block a user