Make it possible to specify C++ header files via mod build

master
Jos van den Oever 2019-02-24 10:27:12 +01:00
parent c522870b79
commit ca98081000
1 changed files with 5 additions and 0 deletions

View File

@ -239,6 +239,11 @@ impl Build {
self.qrc.push(path.as_ref().to_path_buf());
self
}
/// Add a C++ header file to be compiled into the program.
pub fn h<P: AsRef<Path>>(&mut self, path: P) -> &mut Build {
self.h.push(path.as_ref().to_path_buf());
self
}
/// Add a C++ file to be compiled into the program.
pub fn cpp<P: AsRef<Path>>(&mut self, path: P) -> &mut Build {
self.cpp.push(path.as_ref().to_path_buf());