For Makefile-based projects:

For Visual Studio6 projects:

For instance, the following screenshot shows a Makefile with a new target for C++test-specific flags: