2018-09-18 23:26:18 -04:00
|
|
|
project(bladerf1device)
|
2016-12-30 10:13:28 -05:00
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
set(bladerf1device_SOURCES
|
|
|
|
devicebladerf1.cpp
|
|
|
|
devicebladerf1values.cpp
|
|
|
|
devicebladerf1shared.cpp
|
2016-12-30 10:13:28 -05:00
|
|
|
)
|
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
set(bladerf1device_HEADERS
|
|
|
|
devicebladerf1.h
|
|
|
|
devicebladerf1values.h
|
|
|
|
devicebladerf1param.h
|
|
|
|
devicebladerf1shared.h
|
2016-12-30 10:13:28 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBBLADERF_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
add_library(bladerf1device SHARED
|
|
|
|
${bladerf1device_SOURCES}
|
2016-12-30 10:13:28 -05:00
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
set_target_properties(bladerf1device
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
2018-12-01 21:06:04 -05:00
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
target_link_libraries(bladerf1device
|
2016-12-30 10:13:28 -05:00
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS bladerf1device DESTINATION ${INSTALL_LIB_DIR})
|