Class: CKick::Executable
Instance Method Summary collapse
Methods inherited from Target
#create_structure, #initialize, #paths, #to_hash, #to_s
Methods included from Hashable
#to_hash, #to_no_empty_value_hash
Constructor Details
This class inherits a constructor from CKick::Target
Instance Method Details
#cmake ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ckick/executable.rb', line 10 def cmake res = [] res << "add_executable(#{@name} #{@source.join(' ')})" unless @libs.empty? res << "target_link_libraries(#{@name} #{@libs.join(' ')})" end res.join("\n") end |