diff --git a/src/lib.rs b/src/lib.rs index 7aab3aef..1f2de4e0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -309,6 +309,16 @@ impl Config { self } + /// Add files which will be compiled + pub fn files

(&mut self, p: P) -> &mut Config + where P: IntoIterator, + P::Item: AsRef { + for file in p.into_iter() { + self.file(file); + } + self + } + /// Set C++ support. /// /// The other `cpp_*` options will only become active if this is set to