2014-11-29 13:09:35 -05:00
|
|
|
project(fcd)
|
|
|
|
|
|
|
|
set(fcd_SOURCES
|
|
|
|
fcdgui.cpp
|
|
|
|
fcdinput.cpp
|
|
|
|
fcdplugin.cpp
|
|
|
|
fcdthread.cpp
|
2014-12-09 07:52:00 -05:00
|
|
|
hid-libusb.c
|
2014-11-29 13:09:35 -05:00
|
|
|
)
|
|
|
|
|
2014-12-01 14:49:00 -05:00
|
|
|
set(fcd_HEADERS
|
2014-11-29 13:09:35 -05:00
|
|
|
fcdgui.h
|
|
|
|
fcdinput.h
|
|
|
|
fcdplugin.h
|
|
|
|
fcdthread.h
|
2014-12-01 14:49:00 -05:00
|
|
|
qthid.h
|
|
|
|
hid-libusb.h
|
2014-12-09 07:52:00 -05:00
|
|
|
hidapi.h
|
2014-11-29 13:09:35 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
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}
|
2015-01-15 05:57:05 -05:00
|
|
|
${LIBUSB_LIBRARIES}
|
2014-11-30 16:59:06 -05:00
|
|
|
asound
|
2014-11-29 13:09:35 -05:00
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
|
|
|
qt5_use_modules(inputfcd Core Widgets OpenGL Multimedia)
|