cmake_minimum_required(VERSION 3.2) project( kemy ) find_package( OpenCV REQUIRED ) include_directories( ${OpenCV_INCLUDE_DIRS} ) add_executable( kemy kemy.cpp ) target_link_libraries( kemy ${OpenCV_LIBS} ) target_compile_options(kemy PUBLIC "-lm;-fopenmp") find_package(OpenMP) target_link_libraries( kemy ${OpenMP_CXX_FLAGS} )