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