sdrangel/devices/soapysdr/CMakeLists.txt

38 wiersze
722 B
CMake
Czysty Zwykły widok Historia

project(soapysdrdevice)
set(soapysdrdevice_SOURCES
devicesoapysdr.cpp
devicesoapysdrscan.cpp
devicesoapysdrshared.cpp
2018-10-31 00:26:21 +00:00
devicesoapysdrparams.cpp
)
set(soapysdrdevice_HEADERS
devicesoapysdr.h
devicesoapysdrscan.h
devicesoapysdrshared.h
2018-10-31 00:26:21 +00:00
devicesoapysdrparams.h
)
include_directories(
${SOAPYSDR_INCLUDE_DIR}
)
add_library(soapysdrdevice SHARED
${soapysdrdevice_SOURCES}
)
set_target_properties(soapysdrdevice
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
2018-12-02 02:06:04 +00:00
target_link_libraries(soapysdrdevice
${SOAPYSDR_LIBRARY}
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()
install(TARGETS soapysdrdevice DESTINATION ${INSTALL_LIB_DIR})