use OpenCV with Clion IDE on Windows
I'm actually looking for a way to create apps with OpenCV with Clion from JetBrains. I've installed OpenCV with Choco, so I have all the stuff in C:\opencv this is my projet with Clion CMakeLists.txt: cmake_minimum_required(VERSION 3.3) project(test) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") include_directories("C:\\opencv\\build\\include\\") FIND_PACKAGE( OpenCV REQUIRED core highgui imgproc) set(OpenCV_FOUND TRUE) set(SOURCE_FILES main.cpp) add_executable(prog ${SOURCE_FILES}) and the main.cpp: #include <opencv2/opencv.hpp> int main() { cv::Mat img = cv::imread("./test.jpg", -1);