1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-08 09:36:02 -05:00
sdrangel/devices/bladerf2/CMakeLists.txt
2018-09-23 19:56:24 +02:00

48 lines
841 B
CMake

project(bladerf2device)
set(bladerf2device_SOURCES
devicebladerf2.cpp
devicebladerf2shared.cpp
)
set(bladerf2device_HEADERS
devicebladerf2.h
devicebladerf2shared.h
)
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
${bladerf2device_SOURCES}
)
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)