I am trying to use CMake in order to compile opencv.
I am reading the tutorial but can’t understand what is CMakeLists files and how is it connected to the gui of CMake?
Also couldn’t understand what are makefiles, are they the same is CMakeLists?
And which file is it which I in the end open with visual-studio?
CMake takes a CMakeList file, and outputs it to a platform-specific build format, e.g. a Makefile, Visual Studio, etc.
You run CMake on the CMakeList first. If you’re on Visual Studio, you can then load the output project/solution.
I don’t know about Windows (never used it), but on a Linux system you just have to create a build directory (in the top source directory)
go inside it
cmake and point to the parent directory
and finally run
Yes, cmake and make are different programs. cmake is a Makefile generator (and Makefile-s are the files driving the make utility). There are other Makefile generators (in particular configure and autoconf etc…).