OpenCV Windows setup with CLion
I want to setup OpenCV on windows for the CLion IDE. I tried with OpenCV 3.1 and 2.4 with the same result. I have Windows 10 64 bits. CLion is using the cygwin environement. What I did so far: 1. Downloaded the exe from OpenCV and runned it (it extracted a package). My path is E:/opencv 2. Added OpenCV_DIR variable and added it to path 3. Added this to my project CMakeLists.txt: set(OpenCV_LIB_PATH E:/opencv/build/x64/vc12/lib) set(OpenCV_LIB_DIR E:/opencv/build/x64/vc12/lib) set(OpenCV_LIBS E:/opencv/build/x64/vc12/lib) set(CMAKE_PREFIX_PATH E:/opencv/build) set(OpenCV_DIR E:/opencv/build/x64