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