Akce
Super-build cMake flow¶
cmake
is a command-line tool used to configure and generate build files for a software project using the CMake build system. It reads a CMakeLists.txt file, which describes the project and its dependencies, and generates build files that can be used to compile and link the project on a specific platform.cmake --build
is a command used to build the software using the generated build files. It is used after the cmake command has been run to generate the build files. Thecmake --build
command can be used to build the project in the default build directory or in a specified build directory. It supports various options such as selecting the target to build, specifying the build configuration ( Debug, Release, etc. ), and controlling the verbosity of the build output.cmake --build install
is a command used to install the built software on the target system. It is used after thecmake --build
command has been run to build the software. Thecmake --build install
command installs the software in the specified install directory, which can be set using the CMAKE_INSTALL_PREFIX variable in the CMakeLists.txt file. This command is used to copy the built binaries, libraries, and other files to their final locations on the target system.
In summary,
cmake
is used to generate build files,cmake --build
is used to build the project, andcmake --build install
is used to install the built software on the target system.
Aktualizováno uživatelem Václav Šíma před téměř 2 roky(ů) · 1 revizí