mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-23 18:52:28 -04:00
Cmake libv4l2.
This commit is contained in:
parent
a476f8a6f0
commit
15da973edb
@ -10,6 +10,8 @@ if(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
|
|||||||
endif(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
|
endif(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
|
||||||
|
|
||||||
if(KERNEL AND UNIX)
|
if(KERNEL AND UNIX)
|
||||||
|
FIND_LIBRARY (LIBV4L2 v4l2)
|
||||||
|
FIND_PATH (LIBV4L2H libv4l2.h)
|
||||||
add_subdirectory(v4l)
|
add_subdirectory(v4l)
|
||||||
else()
|
else()
|
||||||
find_package(LibRTLSDR)
|
find_package(LibRTLSDR)
|
||||||
|
@ -25,7 +25,7 @@ include_directories(
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/include
|
${CMAKE_SOURCE_DIR}/include
|
||||||
${CMAKE_SOURCE_DIR}/include-gpl
|
${CMAKE_SOURCE_DIR}/include-gpl
|
||||||
# ${LIBRTLSDR_INCLUDE_DIR}
|
${LIBV4L2H}
|
||||||
)
|
)
|
||||||
|
|
||||||
#include(${QT_USE_FILE})
|
#include(${QT_USE_FILE})
|
||||||
@ -44,8 +44,7 @@ add_library(inputv4l SHARED
|
|||||||
|
|
||||||
target_link_libraries(inputv4l
|
target_link_libraries(inputv4l
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
# ${LIBRTLSDR_LIBRARIES}
|
${LIBV4L2}
|
||||||
# ${LIBUSB_LIBRARIES}
|
|
||||||
sdrbase
|
sdrbase
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <uapi/linux/videodev2.h>
|
#include <uapi/linux/videodev2.h>
|
||||||
#include "/usr/local/include/libv4l2.h"
|
#include "libv4l2.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user