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(
|
|
|
|
${LIBIIO_INCLUDE_DIR}
|
2019-05-16 11:15:19 +00:00
|
|
|
${ICONV_INCLUDE_DIR}
|
2019-06-24 16:25:53 +00:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-09-02 02:21:41 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
sdrbase
|
2019-05-16 11:15:19 +00:00
|
|
|
${LIBIIO_LIBRARIES}
|
|
|
|
${ICONV_LIBRARY}
|
2017-09-02 02:21:41 +00:00
|
|
|
)
|
|
|
|
|
2019-06-24 16:25:53 +00:00
|
|
|
if(ENABLE_EXTERNAL_LIBRARIES)
|
|
|
|
add_dependencies(plutosdrdevice libiio)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS plutosdrdevice DESTINATION ${INSTALL_LIB_DIR})
|