Sha256: d3cb2d375a09687e633f94e3bad0293364a48f9296456102cda1c37aea0f00c9

Contents?: true

Size: 529 Bytes

Versions: 7

Compression:

Stored size: 529 Bytes

Contents

require_relative 'base'
require_relative 'template/cmake_renderer'

module Arli
  module Lock
    module Formats
      class Cmake < Base
        extension :cmake

        attr_accessor :libraries

        def initialize(*args)
          super(*args)
          self.libraries = []
        end

        def format(library)
          self.libraries << library
          nil
        end

        def footer
          renderer = Template::CMakeRenderer.new(arlifile)
          renderer.render
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arli-1.4.0 lib/arli/lock/formats/cmake.rb
arli-1.3.0 lib/arli/lock/formats/cmake.rb
arli-1.2.1 lib/arli/lock/formats/cmake.rb
arli-1.1.0 lib/arli/lock/formats/cmake.rb
arli-1.0.2 lib/arli/lock/formats/cmake.rb
arli-1.0.1 lib/arli/lock/formats/cmake.rb
arli-1.0.0 lib/arli/lock/formats/cmake.rb