CMakeLists: Only require test dependencies when building tests
libqtdbus*
are only required when building tests, move their pkg-config calls into the "tests are requested" block.
libqtdbus*
are only required when building tests, move their pkg-config calls into the "tests are requested" block.