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?
This question is tagged with
~ Asked on 2011-10-22 12:46:03
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.
~ Answered on 2011-10-22 12:58:43
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
NB: On Windows,
cmake might operate so could need to be used differently. You'll need to read the documentation (like I did for Linux)
~ Answered on 2011-10-22 12:53:47