i know this question has been asked before but i can't understand their explanation. i am completely new to coding , help if you can.
here is my file image:

here is my task jason files:
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"`pkg-config",
"--cflags",
"--libs",
"opencv4`"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "compiler: /usr/bin/g++"
}
]
}
and here is my CMakeLists.txt:
cmake_minimum_required(VERSION 3.10)
project(ObjectDetection)
set(OpenCV_DIR C:/Users/prana/OneDrive/Desktop/last_attempt/opencv)
find_package(OpenCV REQUIRED)
add_executable(${PROJECT_NAME} src/Main.cpp)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})
/usr/bin/g++is not a windows path?tasks.jsonhas nothing to do with CMake.