mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-23 08:28:36 -05:00
68 lines
1.1 KiB
CMake
68 lines
1.1 KiB
CMake
project(sdrplay)
|
|
|
|
set(sdrplay_SOURCES
|
|
sdrplaygui.cpp
|
|
sdrplayinput.cpp
|
|
sdrplayplugin.cpp
|
|
sdrplaysettings.cpp
|
|
sdrplaythread.cpp
|
|
)
|
|
|
|
set(sdrplay_HEADERS
|
|
sdrplaygui.h
|
|
sdrplayinput.h
|
|
sdrplayplugin.h
|
|
sdrplaysettings.h
|
|
sdrplaythread.h
|
|
)
|
|
|
|
set(sdrplay_FORMS
|
|
sdrplaygui.ui
|
|
)
|
|
|
|
if (BUILD_DEBIAN)
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBMIRISDRSRC}/include
|
|
${LIBMIRISDRSRC}/src
|
|
)
|
|
else (BUILD_DEBIAN)
|
|
include_directories(
|
|
.
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${LIBMIRISDR_INCLUDE_DIR}
|
|
)
|
|
endif (BUILD_DEBIAN)
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
qt5_wrap_ui(sdrplay_FORMS_HEADERS ${sdrplay_FORMS})
|
|
|
|
add_library(inputsdrplay SHARED
|
|
${sdrplay_SOURCES}
|
|
${sdrplay_HEADERS_MOC}
|
|
${sdrplay_FORMS_HEADERS}
|
|
)
|
|
|
|
if (BUILD_DEBIAN)
|
|
target_link_libraries(inputsdrplay
|
|
${QT_LIBRARIES}
|
|
mirisdr
|
|
sdrbase
|
|
sdrgui
|
|
)
|
|
else (BUILD_DEBIAN)
|
|
target_link_libraries(inputsdrplay
|
|
${QT_LIBRARIES}
|
|
${LIBMIRISDR_LIBRARIES}
|
|
sdrbase
|
|
sdrgui
|
|
)
|
|
endif (BUILD_DEBIAN)
|
|
|
|
qt5_use_modules(inputsdrplay Core Widgets)
|
|
|
|
install(TARGETS inputsdrplay DESTINATION lib/plugins/samplesource)
|