2018-10-29 15:39:25 +00:00
|
|
|
project(soapysdrdevice)
|
|
|
|
|
|
|
|
set(soapysdrdevice_SOURCES
|
2018-10-29 16:20:04 +00:00
|
|
|
devicesoapysdr.cpp
|
2018-10-29 15:39:25 +00:00
|
|
|
devicesoapysdrscan.cpp
|
2018-10-30 00:58:39 +00:00
|
|
|
devicesoapysdrshared.cpp
|
2018-10-31 00:26:21 +00:00
|
|
|
devicesoapysdrparams.cpp
|
2018-10-29 15:39:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(soapysdrdevice_HEADERS
|
2018-10-29 16:20:04 +00:00
|
|
|
devicesoapysdr.h
|
2018-10-29 15:39:25 +00:00
|
|
|
devicesoapysdrscan.h
|
2018-10-30 00:58:39 +00:00
|
|
|
devicesoapysdrshared.h
|
2018-10-31 00:26:21 +00:00
|
|
|
devicesoapysdrparams.h
|
2018-10-29 15:39:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-05-22 09:36:16 +00:00
|
|
|
${SOAPYSDR_INCLUDE_DIR}
|
2018-10-29 15:39:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_library(soapysdrdevice SHARED
|
|
|
|
${soapysdrdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
set_target_properties(soapysdrdevice
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
2018-12-02 02:06:04 +00:00
|
|
|
|
2018-10-29 15:39:25 +00:00
|
|
|
target_link_libraries(soapysdrdevice
|
2019-05-22 09:36:16 +00:00
|
|
|
${SOAPYSDR_LIBRARY}
|
2018-10-29 15:39:25 +00:00
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2020-04-30 12:19:19 +00:00
|
|
|
if(SOAPYSDR_EXTERNAL AND NOT LINUX)
|
2019-06-24 16:25:53 +00:00
|
|
|
add_dependencies(soapysdrdevice soapysdr)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS soapysdrdevice DESTINATION ${INSTALL_LIB_DIR})
|