1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-25 04:03:30 -05:00
sdrangel/plugins/samplesource/fcdproplus/CMakeLists.txt
Davide Gerhard 121504eeb3
enable fcdpro/fcdproplus on macOS; remove asound dependency
asound is not needed; now it uses qt audio
2019-04-19 08:46:26 +02:00

59 lines
1.1 KiB
CMake

project(fcdproplus)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(fcdproplus_SOURCES
fcdproplusgui.cpp
fcdproplusinput.cpp
fcdproplusplugin.cpp
fcdproplussettings.cpp
fcdproplusthread.cpp
)
set(fcdproplus_HEADERS
fcdproplusgui.h
fcdproplusinput.h
fcdproplusplugin.h
fcdproplussettings.h
fcdproplusthread.h
)
set(fcdproplus_FORMS
fcdproplusgui.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(fcdproplus_HEADERS_MOC ${fcdproplus_HEADERS})
qt5_wrap_ui(fcdproplus_FORMS_HEADERS ${fcdproplus_FORMS})
add_library(inputfcdproplus SHARED
${fcdproplus_SOURCES}
${fcdproplus_HEADERS_MOC}
${fcdproplus_FORMS_HEADERS}
)
target_link_libraries(inputfcdproplus
${QT_LIBRARIES}
fcdhid
fcdlib
sdrbase
sdrgui
swagger
)
target_link_libraries(inputfcdproplus Qt5::Core Qt5::Widgets)
install(TARGETS inputfcdproplus DESTINATION lib/plugins/samplesource)