adding dependencies to the package and tests in CMake