1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-02 04:55:23 -05:00
sdrangel/plugins/samplesource/airspy/CMakeLists.txt

79 lines
1.5 KiB
CMake
Raw Normal View History

2015-09-09 03:13:24 -04:00
project(airspy)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2015-09-09 03:13:24 -04:00
set(airspy_SOURCES
airspygui.cpp
airspyinput.cpp
airspyplugin.cpp
airspysettings.cpp
airspythread.cpp
2015-09-09 03:13:24 -04:00
)
set(airspy_HEADERS
airspygui.h
airspyinput.h
airspyplugin.h
airspysettings.h
airspythread.h
2015-09-09 03:13:24 -04:00
)
set(airspy_FORMS
airspygui.ui
2015-09-09 03:13:24 -04:00
)
if (BUILD_DEBIAN)
2015-09-09 03:13:24 -04:00
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBAIRSPYSRC}
${LIBAIRSPYSRC}/libairspy/src
2015-09-09 03:13:24 -04:00
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBAIRSPY_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
2015-09-09 03:13:24 -04:00
#include(${QT_USE_FILE})
#add_definitions(${QT_DEFINITIONS})
add_definitions("${QT_DEFINITIONS} -DLIBAIRSPY_DYN_RATES")
2015-09-09 03:13:24 -04:00
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
#qt4_wrap_cpp(airspy_HEADERS_MOC ${airspy_HEADERS})
qt5_wrap_ui(airspy_FORMS_HEADERS ${airspy_FORMS})
add_library(inputairspy SHARED
${airspy_SOURCES}
${airspy_HEADERS_MOC}
${airspy_FORMS_HEADERS}
2015-09-09 03:13:24 -04:00
)
if (BUILD_DEBIAN)
2015-09-09 03:13:24 -04:00
target_link_libraries(inputairspy
${QT_LIBRARIES}
airspy
sdrbase
sdrgui
swagger
2015-09-09 03:13:24 -04:00
)
else (BUILD_DEBIAN)
target_link_libraries(inputairspy
${QT_LIBRARIES}
${LIBAIRSPY_LIBRARIES}
sdrbase
sdrgui
swagger
)
endif (BUILD_DEBIAN)
2015-09-09 03:13:24 -04:00
target_link_libraries(inputairspy Qt5::Core Qt5::Widgets)
install(TARGETS inputairspy DESTINATION lib/plugins/samplesource)