在cmake脚本中提供帮助信息
Supply help info in cmake script
我希望能够在cmake脚本中为最终用户提供有关构建的帮助信息(如构建标志等)。类似的东西
cmake -G "Visual Studio 2010 Win64" projectpath --help
Configures the Foo project.
Sytnax:
cmake -G "Visual Studio 2010 Win64" projectpath --help [options]
where options are
-DNOTEST=1 disables test code
(ect)
有什么现成的方法可以做到这一点吗?
定义选项或缓存变量时,有一个参数指定帮助字符串。用户看到该帮助字符串取决于他们运行cmake的方式。在GUI中,初始配置后会显示选项,用户可以将鼠标悬停在帮助文本上查看帮助文本。在命令行中,运行cmake一次后,命令cmake-LH将显示带有帮助文本的变量。参见:
- 选项命令文档
- 设置命令文档
相关文章:
- 正在查找文档以获得PS4平台的C++中的设备信息
- 为什么在运行时没有向我们提供有关分段错误的更多信息?
- 需要帮助设置在C++中使用的Potrace
- 在指针的帮助下,文本文件中单词的频率
- 奇怪的(对我来说)返回声明 - 在谷歌上找不到任何关于它的信息
- 计算每个节点的树高,帮助我解释这个代码解决方案
- 如何在Qbutton的帮助下更改Q对话框的宽度
- 如何设置一个范围来提取我想要获得的信息
- 需要帮助将结构数组传递给函数
- C++需要帮助从用户那里获得一个整数,并确保它在另外两个整数之间
- 系统参数信息A 与 SPI_GETMOUSE 返回 0
- 为什么 gcovr 会生成空覆盖率统计信息?
- 我确实需要一些帮助来创建显示信息的循环
- Scintilla lexer 帮助.尝试保存特定行信息供以后使用
- 需要帮助将数组元素/信息传递给函数C++
- 在Hevc参考软件HM 16.9中,我需要帮助生成cu, pu和tu的详细信息
- 在TCLAP中显示自定义帮助信息
- 需要帮助这个文本信息解码器(c++)练习
- 在cmake脚本中提供帮助信息
- 需要帮助输入信息从文本文件到结构使用递归