Implemented detection of dependencies in cmakefile