综述
gflags是一个命令行flag库:
The gflags package contains a C++ library that implements commandline flags processing. It includes built-in support for standard types such as string and the ability to define flags in the source file in which they are used. Online documentation available at: https://gflags.github.io/gflags/
安装
下载:
https://github.com/gflags/gflags
Cmake安装编译
使用cmake配置生成:
完成后设置信息:
generate。
VS启动
首先将ALL_BUILD生成。debug和release都生成一遍。
INSTALL右键生成即可。在debug和release下都生成。
安装完毕。