1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00
sdrangel/devices/soapysdr/CMakeLists.txt

38 lines
730 B
CMake

project(soapysdrdevice)
set(soapysdrdevice_SOURCES
devicesoapysdr.cpp
devicesoapysdrscan.cpp
devicesoapysdrshared.cpp
devicesoapysdrparams.cpp
)
set(soapysdrdevice_HEADERS
devicesoapysdr.h
devicesoapysdrscan.h
devicesoapysdrshared.h
devicesoapysdrparams.h
)
include_directories(
${SOAPYSDR_INCLUDE_DIR}
)
add_library(soapysdrdevice SHARED
${soapysdrdevice_SOURCES}
)
set_target_properties(soapysdrdevice
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
target_link_libraries(soapysdrdevice
${SOAPYSDR_LIBRARY}
sdrbase
)
if(ENABLE_EXTERNAL_LIBRARIES AND NOT LINUX)
add_dependencies(soapysdrdevice soapysdr)
endif()
install(TARGETS soapysdrdevice DESTINATION ${INSTALL_LIB_DIR})