cmake_minimum_required(VERSION 2.8.12) project( MotionWatch ) find_package( OpenCV REQUIRED ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pthread") include_directories( ${OpenCV_INCLUDE_DIRS} ) add_executable( mow src/main.cpp ) target_link_libraries( mow ${OpenCV_LIBS} )