Allow CommonCPPCTest in multiple directories

Now that the tests are being created subject to some more customization with variables, it is useful to delegate test creation in subdirectories to their own CMakeLists.txt files, with their own specific settings.

This patch adds the test executables as dependencies of run_cpp_tests if it already exists, allowing CommonCPPCTest to be included in multiple CMakeLists.txt files.