2017-09-01 22:21:41 -04:00
|
|
|
project(plutosdrdevice)
|
|
|
|
|
|
|
|
set (CMAKE_CXX_STANDARD 11)
|
|
|
|
|
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBIIOSRC}
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBIIO_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
|
|
#add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(plutosdrdevice SHARED
|
|
|
|
${plutosdrdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
2018-12-01 21:06:04 -05:00
|
|
|
set_target_properties(plutosdrdevice PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
|
|
|
|
2017-09-01 22:21:41 -04:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(plutosdrdevice
|
2017-09-11 04:54:24 -04:00
|
|
|
iio
|
2017-09-01 22:21:41 -04:00
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(plutosdrdevice
|
|
|
|
${LIBIIO_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
install(TARGETS plutosdrdevice DESTINATION lib)
|