2016-05-26 23:44:27 +02:00
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/grabber)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/grabber/v4l2)
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
FILE ( GLOB V4L2_SOURCES "${CURRENT_HEADER_DIR}/V4L2*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
add_library(v4l2-grabber ${V4L2_SOURCES} )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
|
|
|
target_link_libraries(v4l2-grabber
|
|
|
|
hyperion
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
)
|
2019-04-28 19:53:45 +02:00
|
|
|
|
2020-03-27 23:13:58 +01:00
|
|
|
if(TURBOJPEG_FOUND)
|
|
|
|
target_link_libraries(v4l2-grabber ${TurboJPEG_LIBRARY})
|
|
|
|
elseif (JPEG_FOUND)
|
2020-07-20 20:06:41 +02:00
|
|
|
target_link_libraries(v4l2-grabber ${JPEG_LIBRARY})
|
2020-03-27 23:13:58 +01:00
|
|
|
endif(TURBOJPEG_FOUND)
|