~ubuntu-branches/ubuntu/saucy/texworks/saucy

« back to all changes in this revision

Viewing changes to CMake/docs/html/docs/CMake/packaging/CMakeLists.html

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2011-08-18 11:22:40 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110818112240-d2vmclt5llf8vano
Tags: 0.5~svn930-1
New upstream release (rev 930).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html>
 
2
<html>
 
3
<head>
 
4
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
 
5
  <title></title>
 
6
  <link rel="stylesheet" href="http://sharpie.github.com/TeXworks/resources/docs.css">
 
7
</head>
 
8
<body>
 
9
<div id='container'>
 
10
  <div id="background"></div>
 
11
 
 
12
  <!-- Navbar -->
 
13
  <div id="fadeout"></div>
 
14
  <div id="flybar">
 
15
    <a id="title" href="#top"><h1>CMake/packaging/CMakeLists.txt</h1></a>
 
16
 
 
17
    <div class="navigation about">
 
18
      <div class="button">
 
19
        About
 
20
      </div>
 
21
      <div class="contents">
 
22
        <p>This documentation was built using Ryan Tomayko's <strong>Rocco</strong> tool:</p>
 
23
        <a href="http://rtomayko.github.com/rocco">rtomayko.github.com/rocco</a>
 
24
 
 
25
        <p>Which is based on <strong>Docco</strong> by Jeremy Ashkenas:</p>
 
26
        <a href="http://jashkenas.github.com/docco">jashkenas.github.com/docco</a>
 
27
 
 
28
        <p>The code from this navigation bar was borrowed from the <strong>CoffeeScript</strong> project, also by Jeremy:</p>
 
29
        <a href="http://jashkenas.github.com/coffee-script">jashkenas.github.com/coffee-script</a>
 
30
 
 
31
        <p>The templates used to create this page may be found on GitHub:</p>
 
32
        <a href="http://github.com/Sharpie/TeXworks/tree/master/CMake/docs">github.com/Sharpie/TeXworks</a>
 
33
 
 
34
      </div>
 
35
    </div>
 
36
 
 
37
    <div class="navigation toc">
 
38
      <div class="button">
 
39
        Browse Source
 
40
      </div>
 
41
      <div class="contents menu">
 
42
          <a class="source" href="CMakeLists.html">CMake/packaging/CMakeLists.txt</a>
 
43
          <a class="source" href="mac/MacPackagingTasks.cmake.html">CMake/packaging/mac/MacPackagingTasks.cmake.in</a>
 
44
          <a class="source" href="../../CMakeLists.html">CMakeLists.txt</a>
 
45
          <a class="source" href="../../plugins-src/TWLuaPlugin/CMakeLists.html">plugins-src/TWLuaPlugin/CMakeLists.txt</a>
 
46
          <a class="source" href="../../plugins-src/TWPythonPlugin/CMakeLists.html">plugins-src/TWPythonPlugin/CMakeLists.txt</a>
 
47
          <a class="source" href="../../src/CMakeLists.html">src/CMakeLists.txt</a>
 
48
      </div>
 
49
    </div>
 
50
    <div id="error" style="display:none;"></div>
 
51
  </div>
 
52
 
 
53
  <!-- Content -->
 
54
  <span class="bookmark" id="top"></span>
 
55
 
 
56
  <table cellspacing=0 cellpadding=0>
 
57
  <thead>
 
58
    <tr>
 
59
      <th class=docs><h1>CMake/packaging/CMakeLists.txt</h1></th>
 
60
      <th class=code></th>
 
61
    </tr>
 
62
  </thead>
 
63
  <tbody>
 
64
    <tr>
 
65
      <td class=docs>
 
66
        <div class="pilwrap">
 
67
          <a class="pilcrow" href="#section-Packaging_Tasks">&#182;</a>
 
68
          <span class="bookmark" id="section-Packaging_Tasks"></span>
 
69
        </div>
 
70
        <h1>Packaging Tasks</h1>
 
71
      </td>
 
72
      <td class=code>
 
73
        <div class='highlight'><pre></pre></div>
 
74
      </td>
 
75
    </tr>
 
76
    <tr>
 
77
      <td class=docs>
 
78
        <div class="pilwrap">
 
79
          <a class="pilcrow" href="#section-2">&#182;</a>
 
80
          <span class="bookmark" id="section-2"></span>
 
81
        </div>
 
82
        <p>Create a CMake script containing packaging tasks specific to Apple. All
 
83
variables of the form <code>@VARIABLE@</code> will be replaced, while variables of the
 
84
form <code>${VARIABLE}</code> will be left untouched.</p>
 
85
      </td>
 
86
      <td class=code>
 
87
        <div class='highlight'><pre><span class="nb">IF</span> <span class="p">(</span> <span class="s">APPLE</span> <span class="p">)</span>
 
88
  <span class="nb">CONFIGURE_FILE</span><span class="p">(</span>
 
89
    <span class="o">${</span><span class="nv">PROJECT_SOURCE_DIR</span><span class="o">}</span><span class="s">/cmake/packaging/mac/MacPackagingTasks.cmake.in</span>
 
90
    <span class="o">${</span><span class="nv">PROJECT_BINARY_DIR</span><span class="o">}</span><span class="s">/CPackPackagingTasks.cmake</span>
 
91
    <span class="s">@ONLY</span>
 
92
  <span class="p">)</span>
 
93
<span class="nb">ELSE</span> <span class="p">()</span></pre></div>
 
94
      </td>
 
95
    </tr>
 
96
    <tr>
 
97
      <td class=docs>
 
98
        <div class="pilwrap">
 
99
          <a class="pilcrow" href="#section-3">&#182;</a>
 
100
          <span class="bookmark" id="section-3"></span>
 
101
        </div>
 
102
        <p>Create a dummy script for other platforms.</p>
 
103
      </td>
 
104
      <td class=code>
 
105
        <div class='highlight'><pre>  <span class="nb">FILE</span><span class="p">(</span><span class="s">WRITE</span> <span class="o">${</span><span class="nv">PROJECT_BINARY_DIR</span><span class="o">}</span><span class="s">/CPackPackagingTasks.cmake</span> <span class="s2">&quot;&quot;</span><span class="p">)</span>
 
106
<span class="nb">ENDIF</span> <span class="p">()</span></pre></div>
 
107
      </td>
 
108
    </tr>
 
109
    <tr>
 
110
      <td class=docs>
 
111
        <div class="pilwrap">
 
112
          <a class="pilcrow" href="#section-4">&#182;</a>
 
113
          <span class="bookmark" id="section-4"></span>
 
114
        </div>
 
115
        <p>Execute the packaging tasks. <code>INSTALL(SCRIPT &hellip;)</code> is used so that these tasks
 
116
executing during <code>make install</code> rather than <code>make</code> or <code>cmake</code>.</p>
 
117
 
 
118
      </td>
 
119
      <td class=code>
 
120
        <div class='highlight'><pre><span class="nb">INSTALL</span><span class="p">(</span><span class="s">SCRIPT</span> <span class="o">${</span><span class="nv">PROJECT_BINARY_DIR</span><span class="o">}</span><span class="s">/CPackPackagingTasks.cmake</span><span class="p">)</span></pre></div>
 
121
      </td>
 
122
    </tr>
 
123
  </table>
 
124
</div>
 
125
 
 
126
  <!-- Navbar Scripting -->
 
127
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
 
128
  <script type="text/javascript">
 
129
    var closeMenus;
 
130
    closeMenus = function() {
 
131
      return $('.navigation.active').removeClass('active');
 
132
    };
 
133
    $('.navigation').click(function(e) {
 
134
      if (e.target.tagName.toLowerCase() === 'a') {
 
135
        return;
 
136
      }
 
137
      if ($(e.target).closest('.repl_wrapper').length) {
 
138
        return false;
 
139
      }
 
140
      if ($(this).hasClass('active')) {
 
141
        closeMenus();
 
142
      } else {
 
143
        closeMenus();
 
144
        $(this).addClass('active');
 
145
      }
 
146
      return false;
 
147
    });
 
148
  </script>
 
149
 
 
150
</body>
 
151
</html>