1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-30 03:38:55 -05:00
sdrangel/pluginssrv/samplesource/bladerf1input/CMakeLists.txt

69 lines
1.5 KiB
CMake

project(bladerf1input)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(PLUGIN_PREFIX "../../../plugins/samplesource/bladerf1input")
set(bladerf1input_SOURCES
${PLUGIN_PREFIX}/bladerf1input.cpp
${PLUGIN_PREFIX}/bladerf1inputplugin.cpp
${PLUGIN_PREFIX}/bladerf1inputsettings.cpp
${PLUGIN_PREFIX}/bladerf1inputthread.cpp
)
set(bladerf1input_HEADERS
${PLUGIN_PREFIX}/bladerf1input.h
${PLUGIN_PREFIX}/bladerf1inputplugin.h
${PLUGIN_PREFIX}/bladerf1inputsettings.h
${PLUGIN_PREFIX}/bladerf1inputthread.h
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${LIBBLADERFLIBSRC}/include
${LIBBLADERFLIBSRC}/src
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
${LIBBLADERF_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
add_library(inputbladerf1srv SHARED
${bladerf1input_SOURCES}
${bladerf1input_HEADERS_MOC}
)
if (BUILD_DEBIAN)
target_link_libraries(inputbladerf1srv
${QT_LIBRARIES}
bladerf
sdrbase
swagger
bladerf1device
)
else (BUILD_DEBIAN)
target_link_libraries(inputbladerf1srv
${QT_LIBRARIES}
${LIBBLADERF_LIBRARIES}
sdrbase
swagger
bladerf1device
)
endif (BUILD_DEBIAN)
target_link_libraries(inputbladerf1srv Qt5::Core)
install(TARGETS inputbladerf1srv DESTINATION lib/pluginssrv/samplesource)