"CONFIG += testcase" does this for us, and is the proper way to do this.
Reviewed-by: Daniel Molkentin