2018-09-18 23:26:18 -04:00
|
|
|
project(bladerf1device)
|
2016-12-30 10:13:28 -05:00
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
set(bladerf1device_SOURCES
|
|
|
|
devicebladerf1.cpp
|
|
|
|
devicebladerf1values.cpp
|
|
|
|
devicebladerf1shared.cpp
|
2016-12-30 10:13:28 -05:00
|
|
|
)
|
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
set(bladerf1device_HEADERS
|
|
|
|
devicebladerf1.h
|
|
|
|
devicebladerf1values.h
|
|
|
|
devicebladerf1param.h
|
|
|
|
devicebladerf1shared.h
|
2016-12-30 10:13:28 -05: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)
|
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
add_library(bladerf1device SHARED
|
|
|
|
${bladerf1device_SOURCES}
|
2016-12-30 10:13:28 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
2018-09-18 23:26:18 -04:00
|
|
|
target_link_libraries(bladerf1device
|
2016-12-30 10:13:28 -05:00
|
|
|
bladerf
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2018-09-18 23:26:18 -04:00
|
|
|
target_link_libraries(bladerf1device
|
2016-12-30 10:13:28 -05:00
|
|
|
${LIBBLADERF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
2018-09-18 23:26:18 -04:00
|
|
|
install(TARGETS bladerf1device DESTINATION lib)
|