mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-02 04:55:23 -05:00
70 lines
1.2 KiB
CMake
70 lines
1.2 KiB
CMake
project(dsddemod)
|
|
|
|
set(dsddemod_SOURCES
|
|
dsddemod.cpp
|
|
dsddemodgui.cpp
|
|
dsddemodplugin.cpp
|
|
dsddecoder.cpp
|
|
)
|
|
|
|
set(dsddemod_HEADERS
|
|
dsddemod.h
|
|
dsddemodgui.h
|
|
dsddemodplugin.h
|
|
dsddecoder.h
|
|
)
|
|
|
|
set(dsddemod_FORMS
|
|
dsddemodgui.ui
|
|
)
|
|
|
|
if (BUILD_DEBIAN)
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBDSDCCSRC}
|
|
${LIBMBELIBSRC}
|
|
)
|
|
else (BUILD_DEBIAN)
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBDSDCC_INCLUDE_DIR}
|
|
${LIBMBE_INCLUDE_DIR}
|
|
)
|
|
endif (BUILD_DEBIAN)
|
|
|
|
#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}
|
|
)
|
|
|
|
if (BUILD_DEBIAN)
|
|
target_link_libraries(demoddsd
|
|
${QT_LIBRARIES}
|
|
sdrbase
|
|
dsdcc
|
|
mbelib
|
|
)
|
|
else (BUILD_DEBIAN)
|
|
target_link_libraries(demoddsd
|
|
${QT_LIBRARIES}
|
|
sdrbase
|
|
${LIBDSDCC_LIBRARIES}
|
|
${LIBMBE_LIBRARY}
|
|
)
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
qt5_use_modules(demoddsd Core Widgets)
|
|
|
|
install(TARGETS demoddsd DESTINATION lib/plugins/channelrx)
|