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(
|
2019-05-09 08:18:27 -04:00
|
|
|
${LIBBLADERF_INCLUDE_DIRS}
|
2016-12-30 10:13:28 -05:00
|
|
|
)
|
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
add_library(bladerf1device SHARED
|
|
|
|
${bladerf1device_SOURCES}
|
2016-12-30 10:13:28 -05:00
|
|
|
)
|
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if(LIBBLADERF_EXTERNAL)
|
2019-06-02 17:28:37 -04:00
|
|
|
add_dependencies(bladerf1device bladerf)
|
|
|
|
endif()
|
|
|
|
|
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})
|