mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
34 lines
614 B
CMake
34 lines
614 B
CMake
project(bladerf2device)
|
|
|
|
set(bladerf2device_SOURCES
|
|
devicebladerf2.cpp
|
|
devicebladerf2shared.cpp
|
|
)
|
|
|
|
set(bladerf2device_HEADERS
|
|
devicebladerf2.h
|
|
devicebladerf2shared.h
|
|
)
|
|
|
|
include_directories(
|
|
${LIBBLADERF_INCLUDE_DIRS}
|
|
)
|
|
|
|
add_library(bladerf2device SHARED
|
|
${bladerf2device_SOURCES}
|
|
)
|
|
|
|
if(LIBBLADERF_EXTERNAL)
|
|
add_dependencies(bladerf2device bladerf)
|
|
endif()
|
|
|
|
set_target_properties(bladerf2device
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
|
|
|
target_link_libraries(bladerf2device
|
|
${LIBBLADERF_LIBRARIES}
|
|
sdrbase
|
|
)
|
|
|
|
install(TARGETS bladerf2device DESTINATION ${INSTALL_LIB_DIR})
|