CMake: add a function for reading tagdepends

The reading of tagdepends is extracted into a function in order to use
it for tests and plugins.
CMake: improve VleUtilsConfig.cmake

- test can now depends on external packages
- a macro for building test automatically is added. The cpp files
with the @@tagtest@@ are targeted as vle simulation tests.