2018-10-29 11:39:25 -04:00
|
|
|
project(soapysdrdevice)
|
|
|
|
|
|
|
|
set (CMAKE_CXX_STANDARD 11)
|
|
|
|
|
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${SOAPYSDRSRC}
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${SOAPYSDR_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
|
|
#add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(soapysdrdevice SHARED
|
|
|
|
${soapysdrdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(soapysdrdevice
|
|
|
|
soapysdr
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(soapysdrdevice
|
|
|
|
${SOAPYSDR_LIBRARY}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
install(TARGETS soapysdrdevice DESTINATION lib)
|