mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-18 06:11:46 -05:00
33 lines
541 B
CMake
33 lines
541 B
CMake
project(hackrf)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
find_package(LibUSB)
|
|
|
|
set(hackrf_SOURCES
|
|
${LIBHACKRFSRC}/libhackrf/src/hackrf.c
|
|
)
|
|
|
|
set(hackrf_HEADERS
|
|
${LIBHACKRFSRC}/libhackrf/src/hackrf.h
|
|
)
|
|
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBUSB_INCLUDE_DIR}
|
|
${LIBHACKRFSRC}/libhackrf/src
|
|
)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
add_library(hackrf SHARED
|
|
${hackrf_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(hackrf
|
|
${LIBUSB_LIBRARIES}
|
|
)
|
|
|
|
install(TARGETS hackrf DESTINATION ${INSTALL_LIB_DIR})
|