Class: CKick::LibraryPath

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

Overview

Represents a library link path (in respect to compiler -L option and CMake link_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/library_path.rb', line 18

def cmake
  "link_directories(#{@path})"
end

#raw_flagObject

compiler flag as is



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

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