You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
996 B
57 lines
996 B
project(xtrxinput) |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") |
|
|
|
set(xtrxinput_SOURCES |
|
xtrxinputgui.cpp |
|
xtrxinput.cpp |
|
xtrxinputplugin.cpp |
|
xtrxinputsettings.cpp |
|
xtrxinputthread.cpp |
|
) |
|
|
|
set(xtrxinput_HEADERS |
|
xtrxinputgui.h |
|
xtrxinput.h |
|
xtrxinputplugin.h |
|
xtrxinputsettings.h |
|
xtrxinputthread.h |
|
) |
|
|
|
set(xtrxinput_FORMS |
|
xtrxinputgui.ui |
|
) |
|
|
|
include_directories( |
|
. |
|
${CMAKE_CURRENT_BINARY_DIR} |
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client |
|
${CMAKE_SOURCE_DIR}/devices |
|
${LIBXTRX_INCLUDE_DIRS} |
|
) |
|
|
|
add_definitions(${QT_DEFINITIONS}) |
|
add_definitions(-DQT_PLUGIN) |
|
add_definitions(-DQT_SHARED) |
|
|
|
qt5_wrap_ui(xtrxinput_FORMS_HEADERS ${xtrxinput_FORMS}) |
|
|
|
add_library(inputxtrx SHARED |
|
${xtrxinput_SOURCES} |
|
${xtrxinput_HEADERS_MOC} |
|
${xtrxinput_FORMS_HEADERS} |
|
) |
|
|
|
|
|
target_link_libraries(inputxtrx |
|
${QT_LIBRARIES} |
|
${LIBXTRX_LIBRARY} |
|
sdrbase |
|
sdrgui |
|
swagger |
|
xtrxdevice |
|
) |
|
|
|
qt5_use_modules(inputxtrx Core Widgets) |
|
|
|
install(TARGETS inputxtrx DESTINATION lib/plugins/samplesource) |