1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

Cmake libv4l2.

This commit is contained in:
John Greb 2014-11-06 21:44:38 +00:00
parent a476f8a6f0
commit 15da973edb
3 changed files with 5 additions and 4 deletions

View File

@ -10,6 +10,8 @@ if(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
endif(LIBUSB_FOUND AND LIBOSMOSDR_FOUND)
if(KERNEL AND UNIX)
FIND_LIBRARY (LIBV4L2 v4l2)
FIND_PATH (LIBV4L2H libv4l2.h)
add_subdirectory(v4l)
else()
find_package(LibRTLSDR)

View File

@ -25,7 +25,7 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/include-gpl
# ${LIBRTLSDR_INCLUDE_DIR}
${LIBV4L2H}
)
#include(${QT_USE_FILE})
@ -44,8 +44,7 @@ add_library(inputv4l SHARED
target_link_libraries(inputv4l
${QT_LIBRARIES}
# ${LIBRTLSDR_LIBRARIES}
# ${LIBUSB_LIBRARIES}
${LIBV4L2}
sdrbase
)

View File

@ -24,7 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <uapi/linux/videodev2.h>
#include "/usr/local/include/libv4l2.h"
#include "libv4l2.h"
#include <fcntl.h>
#include <sys/mman.h>