2018-09-22 00:55:40 +00:00
|
|
|
project(bladerf2device)
|
|
|
|
|
|
|
|
set(bladerf2device_SOURCES
|
|
|
|
devicebladerf2.cpp
|
2018-09-23 17:56:24 +00:00
|
|
|
devicebladerf2shared.cpp
|
2018-09-22 00:55:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(bladerf2device_HEADERS
|
|
|
|
devicebladerf2.h
|
2018-09-23 17:56:24 +00:00
|
|
|
devicebladerf2shared.h
|
2018-09-22 00:55:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBBLADERFLIBSRC}/include
|
|
|
|
${LIBBLADERFLIBSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBBLADERF_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
|
|
#add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(bladerf2device SHARED
|
2018-09-22 08:39:09 +00:00
|
|
|
${bladerf2device_SOURCES}
|
2018-09-22 00:55:40 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(bladerf2device
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(bladerf2device
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
install(TARGETS bladerf2device DESTINATION lib)
|