CMake: same deps for linked libs and rootmaps