标签: build cmake version
通过终端通过cmake构建项目时,是否可以获取产品版本。在CMakeLists.txt中,我声明了:
project(sayProject VERSION "1.0")
感谢任何帮助。