def define_moc_tasks
      project_headers.each do | header |
        header_file = header[ :source_file ]
        moc         = moc_pathname( header_file )

        file moc => [ header_file ] do |t|
          options = @compilation_defines
          options += framework_paths if RUBY_PLATFORM =~ /darwin/i
          options += @moc_defines
          command = "moc #{ options.join( ' ' ) } #{ header_file } -o #{ moc }"
          shell command
        end

        define_compile_task( moc )
      end
    end
def define_moc_tasks
      project_headers.each do | header |
        header_file = header[ :source_file ]
        moc         = moc_pathname( header_file )

        file moc => [ header_file ] do |t|
          options = @compilation_defines
          options += framework_paths if RUBY_PLATFORM =~ /darwin/i
          options += @moc_defines
          command = "moc #{ options.join( ' ' ) } #{ header_file } -o #{ moc }"
          shell command
        end

        define_compile_task( moc )
      end
    end
MOC