1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-19 06:41:47 -05:00
sdrangel/plugins/channelrx/demoddsd/CMakeLists.txt

83 lines
1.5 KiB
CMake
Raw Normal View History

2016-04-07 07:05:53 -04:00
project(dsddemod)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2016-04-07 07:05:53 -04:00
set(dsddemod_SOURCES
dsddemod.cpp
dsddemodgui.cpp
dsddemodplugin.cpp
2017-10-02 07:56:40 -04:00
dsddemodbaudrates.cpp
2017-10-02 17:01:13 -04:00
dsddemodsettings.cpp
dsddecoder.cpp
dsdstatustextdialog.cpp
2016-04-07 07:05:53 -04:00
)
set(dsddemod_HEADERS
dsddemod.h
dsddemodgui.h
dsddemodplugin.h
2017-10-02 07:56:40 -04:00
dsddemodbaudrates.h
2017-10-02 17:01:13 -04:00
dsddemodsettings.h
dsddecoder.h
dsdstatustextdialog.h
2016-04-07 07:05:53 -04:00
)
set(dsddemod_FORMS
dsddemodgui.ui
dsdstatustextdialog.ui
2016-04-07 07:05:53 -04:00
)
if (BUILD_DEBIAN)
2016-04-07 07:05:53 -04:00
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
2018-06-09 16:00:30 -04:00
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBDSDCCSRC}
${LIBMBELIBSRC}
2016-04-07 07:05:53 -04:00
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
2018-05-24 06:17:29 -04:00
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBDSDCC_INCLUDE_DIR}
${LIBMBE_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
2016-04-07 07:05:53 -04:00
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
qt5_wrap_ui(dsddemod_FORMS_HEADERS ${dsddemod_FORMS})
add_library(demoddsd SHARED
${dsddemod_SOURCES}
${dsddemod_HEADERS_MOC}
${dsddemod_FORMS_HEADERS}
2016-04-07 07:05:53 -04:00
)
if (BUILD_DEBIAN)
2016-04-07 07:05:53 -04:00
target_link_libraries(demoddsd
${QT_LIBRARIES}
sdrbase
sdrgui
dsdcc
mbelib
2016-04-07 07:05:53 -04:00
)
else (BUILD_DEBIAN)
target_link_libraries(demoddsd
${QT_LIBRARIES}
sdrbase
sdrgui
${LIBDSDCC_LIBRARIES}
${LIBMBE_LIBRARY}
)
endif (BUILD_DEBIAN)
2016-04-07 07:05:53 -04:00
target_link_libraries(demoddsd Qt5::Core Qt5::Widgets)
2016-04-07 07:05:53 -04:00
install(TARGETS demoddsd DESTINATION lib/plugins/channelrx)