mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-13 20:01:46 -05:00
121504eeb3
asound is not needed; now it uses qt audio
59 lines
1.0 KiB
CMake
59 lines
1.0 KiB
CMake
project(fcdpro)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
set(fcdpro_SOURCES
|
|
fcdprogui.cpp
|
|
fcdproinput.cpp
|
|
fcdproplugin.cpp
|
|
fcdprosettings.cpp
|
|
fcdprothread.cpp
|
|
)
|
|
|
|
set(fcdpro_HEADERS
|
|
fcdprogui.h
|
|
fcdproinput.h
|
|
fcdproplugin.h
|
|
fcdprosettings.h
|
|
fcdprothread.h
|
|
)
|
|
|
|
set(fcdpro_FORMS
|
|
fcdprogui.ui
|
|
)
|
|
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
|
${CMAKE_SOURCE_DIR}/fcdhid
|
|
${CMAKE_SOURCE_DIR}/fcdlib
|
|
)
|
|
|
|
#include(${QT_USE_FILE})
|
|
add_definitions(${QT_DEFINITIONS})
|
|
add_definitions(-DQT_PLUGIN)
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
#qt4_wrap_cpp(fcdpro_HEADERS_MOC ${fcdpro_HEADERS})
|
|
qt5_wrap_ui(fcdpro_FORMS_HEADERS ${fcdpro_FORMS})
|
|
|
|
add_library(inputfcdpro SHARED
|
|
${fcdpro_SOURCES}
|
|
${fcdpro_HEADERS_MOC}
|
|
${fcdpro_FORMS_HEADERS}
|
|
)
|
|
|
|
target_link_libraries(inputfcdpro
|
|
${QT_LIBRARIES}
|
|
fcdhid
|
|
fcdlib
|
|
sdrbase
|
|
sdrgui
|
|
swagger
|
|
)
|
|
|
|
target_link_libraries(inputfcdpro Qt5::Core Qt5::Widgets)
|
|
|
|
install(TARGETS inputfcdpro DESTINATION lib/plugins/samplesource)
|