Adjusted CMakeLists.txt to be better usable in submodules
Adjusted tests/CMakeLists.txt to be better usable in submodules

Prefixing target names avoids name clashes