2016-12-30 15:13:28 +00:00
|
|
|
project(bladerfdevice)
|
|
|
|
|
|
|
|
set(bladerfdevice_SOURCES
|
|
|
|
devicebladerf.cpp
|
2017-01-07 10:24:09 +00:00
|
|
|
devicebladerfvalues.cpp
|
2017-08-08 22:31:23 +00:00
|
|
|
devicebladerfshared.cpp
|
2016-12-30 15:13:28 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(bladerfdevice_HEADERS
|
|
|
|
devicebladerf.h
|
2017-01-07 10:24:09 +00:00
|
|
|
devicebladerfvalues.h
|
|
|
|
devicebladerfparam.h
|
2017-08-08 22:31:23 +00:00
|
|
|
devicebladerfshared.h
|
2016-12-30 15:13:28 +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(bladerfdevice SHARED
|
|
|
|
${bladerfdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(bladerfdevice
|
|
|
|
bladerf
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(bladerfdevice
|
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
install(TARGETS bladerfdevice DESTINATION lib)
|