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.
54 lines
809 B
54 lines
809 B
project(fcd) |
|
|
|
set(fcd_SOURCES |
|
fcdgui.cpp |
|
fcdinput.cpp |
|
fcdplugin.cpp |
|
fcdthread.cpp |
|
fcdsource.cpp |
|
hid-libusb.c |
|
) |
|
|
|
set(fcd_HEADERS |
|
fcdgui.h |
|
fcdinput.h |
|
fcdplugin.h |
|
fcdthread.h |
|
qthid.h |
|
hid-libusb.h |
|
hidapi.h |
|
) |
|
|
|
set(fcd_FORMS |
|
fcdgui.ui |
|
) |
|
|
|
include_directories( |
|
. |
|
${CMAKE_CURRENT_BINARY_DIR} |
|
${CMAKE_SOURCE_DIR}/include |
|
${CMAKE_SOURCE_DIR}/include-gpl |
|
) |
|
|
|
#include(${QT_USE_FILE}) |
|
add_definitions(${QT_DEFINITIONS}) |
|
add_definitions(-DQT_PLUGIN) |
|
add_definitions(-DQT_SHARED) |
|
|
|
#qt4_wrap_cpp(fcd_HEADERS_MOC ${fcd_HEADERS}) |
|
qt5_wrap_ui(fcd_FORMS_HEADERS ${fcd_FORMS}) |
|
|
|
add_library(inputfcd SHARED |
|
${fcd_SOURCES} |
|
${fcd_HEADERS_MOC} |
|
${fcd_FORMS_HEADERS} |
|
) |
|
|
|
target_link_libraries(inputfcd |
|
${QT_LIBRARIES} |
|
${LIBUSB_LIBRARIES} |
|
asound |
|
sdrbase |
|
) |
|
|
|
qt5_use_modules(inputfcd Core Widgets OpenGL Multimedia)
|
|
|