Module: Ritsu::SrcFiles::AddCppFile

Included in:
Project, AddQtUnit, AddUnit, Target
Defined in:
lib/ritsu/src_files/cpp_file.rb

Instance Method Summary collapse

Instance Method Details

#add_cpp_file(path, options = {}) ⇒ Object



22
23
24
25
# File 'lib/ritsu/src_files/cpp_file.rb', line 22

def add_cpp_file(path, options={})
  src_path = compute_src_path(path, options)
  CppFile.new(src_path, self)
end

#add_cpp_files(*paths) ⇒ Object



27
28
29
30
31
# File 'lib/ritsu/src_files/cpp_file.rb', line 27

def add_cpp_files(*paths)
  paths.each do |path|
    add_cpp_file(path)
  end
end