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.
50 lines
981 B
50 lines
981 B
project(localinput) |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") |
|
|
|
set(localinput_SOURCES |
|
localinputgui.cpp |
|
localinput.cpp |
|
localinputsettings.cpp |
|
localinputplugin.cpp |
|
) |
|
|
|
set(localinput_HEADERS |
|
localinputgui.h |
|
localinput.h |
|
localinputsettings.h |
|
localinputplugin.h |
|
) |
|
|
|
set(localinput_FORMS |
|
localinputgui.ui |
|
) |
|
|
|
add_definitions(${QT_DEFINITIONS}) |
|
add_definitions(-DQT_PLUGIN) |
|
add_definitions(-DQT_SHARED) |
|
|
|
qt5_wrap_ui(localinput_FORMS_HEADERS ${localinput_FORMS}) |
|
|
|
add_library(inputlocal SHARED |
|
${localinput_SOURCES} |
|
${localinput_HEADERS_MOC} |
|
${localinput_FORMS_HEADERS} |
|
) |
|
|
|
target_include_directories(inputlocal PUBLIC |
|
. |
|
${CMAKE_CURRENT_BINARY_DIR} |
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client |
|
) |
|
|
|
target_link_libraries(inputlocal |
|
${QT_LIBRARIES} |
|
sdrbase |
|
sdrgui |
|
swagger |
|
) |
|
|
|
target_link_libraries(inputlocal Qt5::Core Qt5::Widgets) |
|
|
|
install(TARGETS inputlocal DESTINATION lib/plugins/samplesource)
|
|
|