4134d4befb
The Qt approach to grabbing frames from the live stream was also a failure. - decided to switch to a combination ffmpeg and imagemagic was external commands to do motion detection. this approach elimates the need for opencv altogeather so it was removed from the project. system resource usage appears to be decent and perhaps better than opencv.
30 lines
605 B
CMake
30 lines
605 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(MotionWatch LANGUAGES CXX)
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
|
|
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core REQUIRED)
|
|
|
|
add_executable(mow
|
|
src/main.cpp
|
|
src/common.h
|
|
src/common.cpp
|
|
src/web.h
|
|
src/web.cpp
|
|
src/logger.h
|
|
src/logger.cpp
|
|
src/camera.h
|
|
src/camera.cpp
|
|
)
|
|
|
|
target_link_libraries(mow Qt${QT_VERSION_MAJOR}::Core ${OpenCV_LIBS})
|