Class: Ritsu::SrcFiles::ProjectCmakeLists::ConfigureFileTemplate

Inherits:
Template
  • Object
show all
Includes:
TemplatePolicies::Overwrite
Defined in:
lib/ritsu/src_files/project_cmake_lists.rb

Instance Attribute Summary

Attributes included from BlockMixin

#contents, #id, #indent_length, #indent_level, #local_indentation

Instance Method Summary collapse

Methods included from TemplatePolicies::Overwrite

#overwrite_block, #update_block

Methods inherited from Template

#add_content, #add_template, #child_template_with_id, #child_template_with_id_position, #child_templates, #create_block, #update_block

Methods included from BlockMixin

#add_line, #add_new_line, #block_structure?, #clear_contents, #indent, #initialize_block_mixin, #outdent

Constructor Details

#initialize(project) ⇒ ConfigureFileTemplate

Returns a new instance of ConfigureFileTemplate.



95
96
97
98
99
100
# File 'lib/ritsu/src_files/project_cmake_lists.rb', line 95

def initialize(project)
  super("ProjectCmakeLists -- Configure File")
  @project = project
  
  add_line "CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_SOURCE_DIR}/config.h )"
end