对于基于 Makefile 的项目:

对于 Visual Studio项目: 

例如,以下屏幕截图显示了一个 Makefile,其中包含特定 C++test 标志的新目标: