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