2017-09-01 22:21:41 -04:00
|
|
|
project(plutosdrdevice)
|
|
|
|
|
|
|
|
set(plutosdrdevice_SOURCES
|
2017-09-01 22:35:17 -04:00
|
|
|
deviceplutosdr.cpp
|
2017-09-01 22:21:41 -04:00
|
|
|
deviceplutosdrbox.cpp
|
|
|
|
deviceplutosdrscan.cpp
|
2017-09-05 10:23:10 -04:00
|
|
|
deviceplutosdrparams.cpp
|
|
|
|
deviceplutosdrshared.cpp
|
2017-09-01 22:21:41 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
set(plutosdrdevice_HEADERS
|
2017-09-01 22:35:17 -04:00
|
|
|
deviceplutosdr.h
|
2017-09-01 22:21:41 -04:00
|
|
|
deviceplutsdrobox.h
|
|
|
|
deviceplutosdrscan.h
|
2017-09-05 10:23:10 -04:00
|
|
|
deviceplutosdrparams.h
|
|
|
|
deviceplutosdrshared.h
|
2017-09-01 22:21:41 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBIIO_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(plutosdrdevice SHARED
|
|
|
|
${plutosdrdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
set_target_properties(plutosdrdevice
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
2018-12-01 21:06:04 -05:00
|
|
|
|
2017-09-01 22:21:41 -04:00
|
|
|
target_link_libraries(plutosdrdevice
|
|
|
|
${LIBIIO_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS plutosdrdevice DESTINATION ${INSTALL_LIB_DIR})
|