2018-10-29 11:39:25 -04:00
|
|
|
project(soapysdrdevice)
|
|
|
|
|
|
|
|
set(soapysdrdevice_SOURCES
|
2018-10-29 12:20:04 -04:00
|
|
|
devicesoapysdr.cpp
|
2018-10-29 11:39:25 -04:00
|
|
|
devicesoapysdrscan.cpp
|
2018-10-29 20:58:39 -04:00
|
|
|
devicesoapysdrshared.cpp
|
2018-10-30 20:26:21 -04:00
|
|
|
devicesoapysdrparams.cpp
|
2018-10-29 11:39:25 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(soapysdrdevice_HEADERS
|
2018-10-29 12:20:04 -04:00
|
|
|
devicesoapysdr.h
|
2018-10-29 11:39:25 -04:00
|
|
|
devicesoapysdrscan.h
|
2018-10-29 20:58:39 -04:00
|
|
|
devicesoapysdrshared.h
|
2018-10-30 20:26:21 -04:00
|
|
|
devicesoapysdrparams.h
|
2018-10-29 11:39:25 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${SOAPYSDR_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(soapysdrdevice SHARED
|
|
|
|
${soapysdrdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
set_target_properties(soapysdrdevice
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
2018-12-01 21:06:04 -05:00
|
|
|
|
2018-10-29 11:39:25 -04:00
|
|
|
target_link_libraries(soapysdrdevice
|
|
|
|
${SOAPYSDR_LIBRARY}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS soapysdrdevice DESTINATION ${INSTALL_LIB_DIR})
|