4
<meta http-equiv="content-type" content="text/html;charset=utf-8">
6
<link rel="stylesheet" href="http://sharpie.github.com/TeXworks/resources/docs.css">
10
<div id="background"></div>
13
<div id="fadeout"></div>
15
<a id="title" href="#top"><h1>CMake/packaging/CMakeLists.txt</h1></a>
17
<div class="navigation about">
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>
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>
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>
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>
37
<div class="navigation toc">
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>
50
<div id="error" style="display:none;"></div>
54
<span class="bookmark" id="top"></span>
56
<table cellspacing=0 cellpadding=0>
59
<th class=docs><h1>CMake/packaging/CMakeLists.txt</h1></th>
67
<a class="pilcrow" href="#section-Packaging_Tasks">¶</a>
68
<span class="bookmark" id="section-Packaging_Tasks"></span>
70
<h1>Packaging Tasks</h1>
73
<div class='highlight'><pre></pre></div>
79
<a class="pilcrow" href="#section-2">¶</a>
80
<span class="bookmark" id="section-2"></span>
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>
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>
99
<a class="pilcrow" href="#section-3">¶</a>
100
<span class="bookmark" id="section-3"></span>
102
<p>Create a dummy script for other platforms.</p>
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">""</span><span class="p">)</span>
106
<span class="nb">ENDIF</span> <span class="p">()</span></pre></div>
111
<div class="pilwrap">
112
<a class="pilcrow" href="#section-4">¶</a>
113
<span class="bookmark" id="section-4"></span>
115
<p>Execute the packaging tasks. <code>INSTALL(SCRIPT …)</code> is used so that these tasks
116
executing during <code>make install</code> rather than <code>make</code> or <code>cmake</code>.</p>
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>
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">
130
closeMenus = function() {
131
return $('.navigation.active').removeClass('active');
133
$('.navigation').click(function(e) {
134
if (e.target.tagName.toLowerCase() === 'a') {
137
if ($(e.target).closest('.repl_wrapper').length) {
140
if ($(this).hasClass('active')) {
144
$(this).addClass('active');