kopia lustrzana https://github.com/f4exb/sdrangel
74 wiersze
1.5 KiB
CMake
74 wiersze
1.5 KiB
CMake
project(plutosdroutput)
|
|
|
|
set(plutosdroutput_SOURCES
|
|
plutosdroutputgui.cpp
|
|
plutosdroutput.cpp
|
|
plutosdroutputplugin.cpp
|
|
plutosdroutputsettings.cpp
|
|
plutosdroutputthread.cpp
|
|
)
|
|
|
|
set(plutosdroutput_HEADERS
|
|
plutosdroutputgui.h
|
|
plutosdroutput.h
|
|
plutosdroutputplugin.h
|
|
plutosdroutputsettings.h
|
|
plutosdroutputthread.h
|
|
)
|
|
|
|
set(plutosdroutput_FORMS
|
|
plutosdroutputgui.ui
|
|
)
|
|
|
|
if (BUILD_DEBIAN)
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
${LIBIIOSRC}
|
|
)
|
|
else (BUILD_DEBIAN)
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_SOURCE_DIR}/devices
|
|
${LIBIIO_INCLUDE_DIR}
|
|
)
|
|
endif (BUILD_DEBIAN)
|
|
|
|
#include(${QT_USE_FILE})
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
add_definitions(-DQT_PLUGIN)
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
#qt4_wrap_cpp(plutosdroutput_HEADERS_MOC ${plutosdroutput_HEADERS})
|
|
qt5_wrap_ui(plutosdroutput_FORMS_HEADERS ${plutosdroutput_FORMS})
|
|
|
|
add_library(outputplutosdr SHARED
|
|
${plutosdroutput_SOURCES}
|
|
${plutosdroutput_HEADERS_MOC}
|
|
${plutosdroutput_FORMS_HEADERS}
|
|
)
|
|
|
|
if (BUILD_DEBIAN)
|
|
target_link_libraries(outputplutosdr
|
|
${QT_LIBRARIES}
|
|
iio
|
|
sdrbase
|
|
sdrgui
|
|
plutosdrdevice
|
|
)
|
|
else (BUILD_DEBIAN)
|
|
target_link_libraries(outputplutosdr
|
|
${QT_LIBRARIES}
|
|
${LIBIIO_LIBRARIES}
|
|
sdrbase
|
|
sdrgui
|
|
plutosdrdevice
|
|
)
|
|
endif (BUILD_DEBIAN)
|
|
|
|
qt5_use_modules(outputplutosdr Core Widgets)
|
|
|
|
install(TARGETS outputplutosdr DESTINATION lib/plugins/sampleink)
|