CMake 等同于 npm 吗?

Is CMake an equivalent of npm?

我对 CMake 和编译语言完全陌生。我看过this question and answer。但是我仍然不完全理解什么是 CMake。

我来自 nodeJs/Javascipt 环境,因此如果我能知道 nodeJs/Javascipt 环境中的 CMake 等价物,那将真正帮助我理解它 is.So... 是什么CMake 相当于 npm?

不,引用自维基百科:

CMake is a cross-platform free and open-source software tool for managing the build process of software using a compiler-independent method. It supports directory hierarchies and applications that depend on multiple libraries. It is used in conjunction with native build environments such as Make, Qt Creator, Ninja, Apple's Xcode, and Microsoft Visual Studio. It has minimal dependencies, requiring only a C++ compiler on its own build system.

JavaScript是一种解释型语言,也就是说NodeJS/Browsers阅读理解代码,直接执行。例如,C 是通过编译器(在执行前读取和理解代码)构建为机器代码(不需要理解,因为它是处理器的本地语言)并且可以更快地执行。 CMake 简化了调用编译器、链接库(类似于设置 require)等所有文件。尽管有时通过 npm run 使用 babelwebpack 和其他人称为 'building'。