sdrangel/devices/plutosdr/CMakeLists.txt

43 wiersze
830 B
CMake
Czysty Zwykły widok Historia

project(plutosdrdevice)
set(plutosdrdevice_SOURCES
deviceplutosdr.cpp
deviceplutosdrbox.cpp
deviceplutosdrscan.cpp
deviceplutosdrparams.cpp
deviceplutosdrshared.cpp
)
set(plutosdrdevice_HEADERS
deviceplutosdr.h
deviceplutsdrobox.h
deviceplutosdrscan.h
deviceplutosdrparams.h
deviceplutosdrshared.h
)
include_directories(
${LIBIIO_INCLUDE_DIR}
${ICONV_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
add_library(plutosdrdevice SHARED
${plutosdrdevice_SOURCES}
)
set_target_properties(plutosdrdevice
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
2018-12-02 02:06:04 +00:00
target_link_libraries(plutosdrdevice
sdrbase
${LIBIIO_LIBRARIES}
${ICONV_LIBRARY}
)
2020-04-30 12:19:19 +00:00
if(LIBIIO_EXTERNAL)
2019-06-24 16:25:53 +00:00
add_dependencies(plutosdrdevice libiio)
endif()
install(TARGETS plutosdrdevice DESTINATION ${INSTALL_LIB_DIR})