2018-09-19 03:26:18 +00:00
|
|
|
project(bladerf1device)
|
2016-12-30 15:13:28 +00:00
|
|
|
|
2018-09-19 03:26:18 +00:00
|
|
|
set(bladerf1device_SOURCES
|
|
|
|
devicebladerf1.cpp
|
|
|
|
devicebladerf1values.cpp
|
|
|
|
devicebladerf1shared.cpp
|
2016-12-30 15:13:28 +00:00
|
|
|
)
|
|
|
|
|
2018-09-19 03:26:18 +00:00
|
|
|
set(bladerf1device_HEADERS
|
|
|
|
devicebladerf1.h
|
|
|
|
devicebladerf1values.h
|
|
|
|
devicebladerf1param.h
|
|
|
|
devicebladerf1shared.h
|
2016-12-30 15:13:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-05-09 12:18:27 +00:00
|
|
|
${LIBBLADERF_INCLUDE_DIRS}
|
2016-12-30 15:13:28 +00:00
|
|
|
)
|
|
|
|
|
2018-09-19 03:26:18 +00:00
|
|
|
add_library(bladerf1device SHARED
|
|
|
|
${bladerf1device_SOURCES}
|
2016-12-30 15:13:28 +00:00
|
|
|
)
|
|
|
|
|
2020-04-30 12:19:19 +00:00
|
|
|
if(LIBBLADERF_EXTERNAL)
|
2019-06-02 21:28:37 +00:00
|
|
|
add_dependencies(bladerf1device bladerf)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
set_target_properties(bladerf1device
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
2018-12-02 02:06:04 +00:00
|
|
|
|
2018-09-19 03:26:18 +00:00
|
|
|
target_link_libraries(bladerf1device
|
2016-12-30 15:13:28 +00:00
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS bladerf1device DESTINATION ${INSTALL_LIB_DIR})
|