Module: Ritsu::SrcFiles::AddQtUnit

Includes:
AddCppFile, AddQtHeaderFile
Included in:
Project, Target
Defined in:
lib/ritsu/ext/qt/src_files/header_file.rb

Instance Method Summary collapse

Methods included from AddQtHeaderFile

#add_qt_header_file, #add_qt_header_files

Methods included from AddCppFile

#add_cpp_file, #add_cpp_files

Instance Method Details

#add_qt_unit(name, options = {}) ⇒ Object



36
37
38
39
# File 'lib/ritsu/ext/qt/src_files/header_file.rb', line 36

def add_qt_unit(name, options={})
  add_cpp_file(name + ".cpp")
  add_qt_header_file(name + ".h")
end

#add_qt_units(*names) ⇒ Object



41
42
43
44
45
# File 'lib/ritsu/ext/qt/src_files/header_file.rb', line 41

def add_qt_units(*names)
  names.each do |name|
    add_qt_unit(name)
  end
end