Class: CKick::IncludePath

Inherits:
Path
  • Object
show all
Defined in:
lib/ckick/include_path.rb

Overview

Represents a compiler include path (-I option or CMake include_directories() fonction)

Instance Attribute Summary

Attributes inherited from Path

#path

Instance Method Summary collapse

Methods inherited from Path

#initialize, #to_hash_element, #to_s

Constructor Details

This class inherits a constructor from CKick::Path

Instance Method Details

#cmakeObject

cmake code content



18
19
20
# File 'lib/ckick/include_path.rb', line 18

def cmake
  %Q{include_directories(#{@path})}
end

#raw_flagObject

compiler flag as is



13
14
15
# File 'lib/ckick/include_path.rb', line 13

def raw_flag
  "-I#{@path}"
end