Method: Ore::Project#add_executable

Defined in:
lib/ore/project.rb

#add_executable(name) ⇒ Object (protected)

Adds an executable to the project.

Parameters:

  • name (String)

    The name of the executable.



463
464
465
466
467
# File 'lib/ore/project.rb', line 463

def add_executable(name)
  path = File.join(@@bin_dir,name)

  check_executable(path) { |exe| @executables << exe }
end