Dependency check from cmake