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(
|
|
|
|
${LIBIIO_INCLUDE_DIR}
|
2019-05-16 07:15:19 -04:00
|
|
|
${ICONV_INCLUDE_DIR}
|
2019-06-24 12:25:53 -04:00
|
|
|
${Boost_INCLUDE_DIRS}
|
2017-09-01 22:21:41 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
sdrbase
|
2019-05-16 07:15:19 -04:00
|
|
|
${LIBIIO_LIBRARIES}
|
|
|
|
${ICONV_LIBRARY}
|
2017-09-01 22:21:41 -04:00
|
|
|
)
|
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if(LIBIIO_EXTERNAL)
|
2019-06-24 12:25:53 -04:00
|
|
|
add_dependencies(plutosdrdevice libiio)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS plutosdrdevice DESTINATION ${INSTALL_LIB_DIR})
|