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(
|
2024-06-01 13:25:42 -04:00
|
|
|
${SOAPYSDR_INCLUDE_DIRS}
|
2018-10-29 11:39:25 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2024-06-01 13:25:42 -04:00
|
|
|
${SOAPYSDR_LINK_LIBRARIES}
|
2018-10-29 11:39:25 -04:00
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if(SOAPYSDR_EXTERNAL AND NOT LINUX)
|
2019-06-24 12:25:53 -04:00
|
|
|
add_dependencies(soapysdrdevice soapysdr)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS soapysdrdevice DESTINATION ${INSTALL_LIB_DIR})
|