Hi and welcome to devnet,
When you want to have tests for your project, you would usually use the SUBDIR template so that you can add tests as sub-project as much as needed. You can follow Qt's model for that. It keeps the source cleanly separated and you can easily add new tests.