Managing C++ libs with CMake ExternalProject and Git
CMake has a functionality called ExternalProject_add, which can use, to automatically check out a git repository, and build that as part of the normal build process.
Of course, the same functionality would be possible with git submodules, but honestly, I always found this part of git rather cumbersome, and unnecessarily complex, for what I want to do.
Git 子模块
启动外部程序
在 windows 下如何使用 C++ 语言启动外部程序?
函数 system()
使用 CMD.exe 命令行窗口解释输入的字符串命令,引用来自 system, _wsystem
The
system
function passescommand
to the command interpreter, which executes the string as an operating-system command.
system
uses theCOMSPEC
andPATH
environment variables to locate the command-interpreter file CMD.exe.