sdrangel/plugins/samplesource/v4l-msi/CMakeLists.txt

51 wiersze
759 B
CMake
Czysty Zwykły widok Historia

2014-11-03 17:13:32 +00:00
project(v4l)
set(v4l_SOURCES
v4lgui.cpp
v4linput.cpp
v4lplugin.cpp
v4lthread.cpp
2014-11-05 12:34:33 +00:00
v4lsource.cpp
2014-11-03 17:13:32 +00:00
)
2014-12-01 19:49:00 +00:00
set(v4l_HEADERS
2014-11-03 17:13:32 +00:00
v4lgui.h
v4linput.h
v4lplugin.h
v4lthread.h
)
set(v4l_FORMS
v4lgui.ui
)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/include-gpl
2014-11-06 21:44:38 +00:00
${LIBV4L2H}
2014-11-03 17:13:32 +00:00
)
#include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
2014-11-05 12:34:33 +00:00
#qt4_wrap_cpp(v4l_HEADERS_MOC ${v4l_HEADERS})
2014-11-03 17:13:32 +00:00
qt5_wrap_ui(v4l_FORMS_HEADERS ${v4l_FORMS})
add_library(inputv4l SHARED
${v4l_SOURCES}
${v4l_HEADERS_MOC}
${v4l_FORMS_HEADERS}
)
target_link_libraries(inputv4l
${QT_LIBRARIES}
2014-11-06 21:44:38 +00:00
${LIBV4L2}
2014-11-03 17:13:32 +00:00
sdrbase
)
qt5_use_modules(inputv4l Core Widgets OpenGL Multimedia)