Does CMake invoke the equivalent of step. / Configure?

I understand that to compile and install something from the source code on a Unix system, the following three steps:

1) ./configure

2) make

3) make install

When I checked the installation of OpenCV from the source , I noticed that it did not have a step ./configure, but it had a cmakestep. This gave me an idea of ​​what is cmakeequivalent ./configure. I also read what cmakebuilding systems can generate, such as Makefiles, and that takes a step ./configure.

However, this article (see first paragraph what is the difference?) says it cmakealso does the actual assembly. If so, why does the OpenCV installation point to makeafter cmake? In addition, I often see what is being cmakecompared to make, rather than ./configure. So where cmakedoes it really fit?

+4
source share
3 answers

Yes, cmakeit looks like the autotools configuration step. It does not perform the assembly itself, but simply creates the necessary files for creation (Makefile, Visual Studio projects, etc.).

CMake --build, , CMake . Makefile, , make .

+3

, , CMake Make, . , Make msbuild, -, , CMake Autotools. , Waf.

, script , CMake: , .

GNU, CMake . KDE Blender - CMake. LLVM , Boost , .

+1

:

CMake pkg-config CMake enabled;-); .

CMake CLI - , "/trivial cross-platform scripting tool";-) - , Windows cmd.exe, / ///& etc "" Linux Windows...

, IDE CMake.

Comparing w / autotools, which because of the box supports only simple archives (tarballs), CMake (+ CPack) can create different package formats as a result of the assembly. I used it for RPM / DEB / MSI / EXE and with a little help to create NuGet packages.

+1
source

Source: https://habr.com/ru/post/1683705/


All Articles