2016-10-25 22:57:46 +00:00
|
|
|
project(hackrf)
|
|
|
|
|
|
|
|
find_package(LibUSB)
|
|
|
|
|
|
|
|
set(hackrf_SOURCES
|
2016-10-26 00:40:00 +00:00
|
|
|
${LIBHACKRFSRC}/libhackrf/src/hackrf.c
|
2016-10-25 22:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(hackrf_HEADERS
|
2016-10-26 00:40:00 +00:00
|
|
|
${LIBHACKRFSRC}/libhackrf/src/hackrf.h
|
2016-10-25 22:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBUSB_INCLUDE_DIR}
|
2016-10-26 00:40:00 +00:00
|
|
|
${LIBHACKRFSRC}/libhackrf/src
|
2016-10-25 22:57:46 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(hackrf SHARED
|
|
|
|
${hackrf_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(hackrf
|
|
|
|
${LIBUSB_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS hackrf DESTINATION lib)
|