Commit d5b5c64e authored by Atsuhito Kohda's avatar Atsuhito Kohda

Imported Upstream version 0.5~svn930

parent 56e760ea
# - Functions to help assemble a standalone Qt4 application.
# A collection of CMake utility functions useful for deploying
# Qt4 applications.
#
# The following functions are provided by this module:
# fixup_qt4_bundle
# install_qt4_app
# Requires CMake 2.6 or greater and depends on BundleUtilities.cmake.
#
# FIXUP_QT4_BUNDLE(<app> <qtplugins> [<libs> <dirs>])
# Copies Qt plugins, writes a Qt configuration file (if needed) and fixes up a
# Qt4 executable using BundleUtilities.
#
# INSTALL_QT4_APP(<executable> <qtplugins> [<libs> <dirs>])
# Installs plugins, writes a Qt configuration file (if needed) and fixes up a
# Qt4 executable using BundleUtilties.
#=============================================================================
# Copyright 2011 KDAB
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.
#=============================================================================
# The functions defined in this file depend on the fixup_bundle function
# (and possibly others) found in BundleUtilities.cmake
#
get_filename_component(DeployQt4_cmake_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(BundleUtilities)
function(fixup_qt4_bundle app qtplugins)
set(libs ${ARGV2})
set(dirs ${ARGV3})
message(STATUS "fixup_qt4_bundle")
message(STATUS " app='${app}'")
message(STATUS " qtplugins='${qtplugins}'")
message(STATUS " libs='${libs}'")
message(STATUS " dirs='${dirs}'")
if(APPLE)
set(plugins_dir "PlugIns")
set(plugins_path "${app}/Contents/${plugins_dir}")
set(qt_conf_dir "${app}/Contents/Resources")
set(write_qt_conf 1)
else()
set(plugins_dir "plugins")
get_filename_component(app_path "${app}" PATH)
set(plugins_path "${app_path}/${plugins_dir}")
set(qt_conf_dir "")
set(write_qt_conf 0)
endif()
foreach(plugin ${qtplugins})
if(EXISTS ${plugin})
set(plugin_group "")
get_filename_component(plugin_path "${plugin}" PATH)
get_filename_component(plugin_parent_path "${plugin_path}" PATH)
get_filename_component(plugin_parent_dir_name "${plugin_parent_path}" NAME)
get_filename_component(plugin_name "${plugin}" NAME)
string(TOLOWER "${plugin_parent_dir_name}" plugin_parent_dir_name)
if("${plugin_parent_dir_name}" STREQUAL "plugins")
get_filename_component(plugin_group "${plugin_path}" NAME)
message(STATUS "Matched ${plugin_name} to plugin group ${plugin_group}")
endif()
set(plugin_path "${plugins_path}/${plugin_group}")
message(STATUS "Copying ${plugin_name} to ${plugin_path}")
file(MAKE_DIRECTORY "${plugin_path}")
file(COPY "${plugin}" DESTINATION "${plugin_path}")
list(APPEND libs "${plugin_path}/${plugin_name}")
else()
message(FATAL_ERROR "Plugin ${plugin} not found")
endif()
endforeach()
if(qtplugins AND write_qt_conf)
set(qt_conf_path "${qt_conf_dir}/qt.conf")
set(qt_conf_contents "[Paths]\nPlugins = ${plugins_dir}")
message(STATUS "Writing to ${qt_conf_dir}/qt.conf:\n${qt_conf_contents}")
file(WRITE "${qt_conf_path}" "${qt_conf_contents}")
endif()
fixup_bundle("${app}" "${libs}" "${dirs}")
endfunction(fixup_qt4_bundle)
function(install_qt4_app executable qtplugins)
set(libs ${ARGV2})
set(dirs ${ARGV3})
install(CODE
" INCLUDE( \"${CMAKE_MODULE_PATH}/DeployQt4.cmake\" )
SET( BU_CHMOD_BUNDLE_ITEMS TRUE )
FIXUP_QT4_BUNDLE( \"\${CMAKE_INSTALL_PREFIX}/${executable}\" \"${qtplugins}\" \"${libs}\" \"${dirs}\" ) "
)
endfunction(install_qt4_app)
\ No newline at end of file
# - Try to find Fontconfig
# Once done this will define
#
# FONTCONFIG_FOUND - system has Fontconfig
# FONTCONFIG_INCLUDE_DIR - the Fontconfig include directory
# FONTCONFIG_LIBRARIES - Link these to use Fontconfig
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
if ( FONTCONFIG_INCLUDE_DIR AND FONTCONFIG_LIBRARIES )
# in cache already
SET(Fontconfig_FIND_QUIETLY TRUE)
endif ( FONTCONFIG_INCLUDE_DIR AND FONTCONFIG_LIBRARIES )
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
if( NOT WIN32 )
find_package(PkgConfig)
pkg_check_modules(FONTCONFIG_PKG QUIET fontconfig)
endif( NOT WIN32 )
FIND_PATH(FONTCONFIG_INCLUDE_DIR NAMES fontconfig/fontconfig.h
PATHS
/usr/local/include
/usr/X11/include
/usr/include
HINTS
${FONTCONFIG_PKG_INCLUDE_DIRS} # Generated by pkg-config
)
FIND_LIBRARY(FONTCONFIG_LIBRARIES NAMES fontconfig ${FONTCONFIG_PKG_LIBRARIES}
PATHS
/usr/local
/usr/X11
/usr
HINTS
${FONTCONFIG_PKG_LIBRARY_DIRS} # Generated by pkg-config
PATH_SUFFIXES
lib64
lib
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Fontconfig DEFAULT_MSG FONTCONFIG_LIBRARIES FONTCONFIG_INCLUDE_DIR )
# show the FONTCONFIG_INCLUDE_DIR and FONTCONFIG_LIBRARIES variables only in the advanced view
MARK_AS_ADVANCED(FONTCONFIG_INCLUDE_DIR FONTCONFIG_LIBRARIES )
# - Try to find Hunspell
# Once done this will define
#
# HUNSPELL_FOUND - system has Hunspell
# HUNSPELL_INCLUDE_DIR - the Hunspell include directory
# HUNSPELL_LIBRARIES - Link these to use Hunspell
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
if ( HUNSPELL_INCLUDE_DIR AND HUNSPELL_LIBRARIES )
# in cache already
SET(Hunspell_FIND_QUIETLY TRUE)
endif ( HUNSPELL_INCLUDE_DIR AND HUNSPELL_LIBRARIES )
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
if( NOT WIN32 )
find_package(PkgConfig)
pkg_check_modules(HUNSPELL_PKG QUIET hunspell)
endif( NOT WIN32 )
FIND_PATH(HUNSPELL_INCLUDE_DIR NAMES hunspell.h
PATHS
/usr/local/include
/usr/include
HINTS
${HUNSPELL_PKG_INCLUDE_DIRS} # Generated by pkg-config
PATH_SUFFIXES hunspell
)
FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell hunspell-1.2 hunspell-1.3 ${HUNSPELL_PKG_LIBRARIES}
PATHS
/usr/local
/usr
HINTS
${HUNSPELL_PKG_LIBRARY_DIRS} # Generated by pkg-config
PATH_SUFFIXES
lib64
lib
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Hunspell DEFAULT_MSG HUNSPELL_LIBRARIES HUNSPELL_INCLUDE_DIR )
# show the HUNSPELL_INCLUDE_DIR and HUNSPELL_LIBRARIES variables only in the advanced view
MARK_AS_ADVANCED(HUNSPELL_INCLUDE_DIR HUNSPELL_LIBRARIES )
# - Try to find Poppler and Poppler-Qt4
# Once done this will define
#
# POPPLER_FOUND - system has Poppler and Poppler-Qt4
# POPPLER_HAS_XPDF - A boolean indicating if Poppler XPDF headers are available
# POPPLER_NEEDS_FONTCONFIG - A boolean indicating if libpoppler depends on libfontconfig
# POPPLER_XPDF_INCLUDE_DIR - the include directory for Poppler XPDF headers
# POPPLER_QT4_INCLUDE_DIR - the include directory for Poppler-Qt4 headers
# POPPLER_QT4_LIBRARIES - Link this to use only libpoppler-Qt4
# POPPLER_LIBRARIES - Link these to use Poppler and Poppler-Qt4
#
# Note: the Poppler-cpp include directory is currently not needed by TeXworks
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
if ( POPPLER_LIBRARIES )
# in cache already
SET(Poppler_FIND_QUIETLY TRUE)
endif ( POPPLER_LIBRARIES )
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
if( NOT WIN32 )
find_package(PkgConfig)
pkg_check_modules(POPPLER_PKG QUIET poppler)
pkg_check_modules(POPPLER_QT4_PKG QUIET poppler-qt4)
endif( NOT WIN32 )
# Check for Poppler XPDF headers (optional)
FIND_PATH(POPPLER_XPDF_INCLUDE_DIR NAMES poppler-config.h
PATHS
/usr/local/include
/usr/include
HINTS
${POPPLER_PKG_INCLUDE_DIRS} # Generated by pkg-config
PATH_SUFFIXES poppler
)
IF( NOT(POPPLER_XPDF_INCLUDE_DIR) )
MESSAGE( STATUS "Could not find poppler-config.h, disabling support for Xpdf headers." )
SET( POPPLER_HAS_XPDF false )
ELSE( NOT(POPPLER_XPDF_INCLUDE_DIR) )
SET( POPPLER_HAS_XPDF true )
ENDIF( NOT(POPPLER_XPDF_INCLUDE_DIR) )
# Find libpoppler, libpoppler-qt4 and associated header files (Required)
FIND_LIBRARY(POPPLER_LIBRARIES NAMES poppler ${POPPLER_PKG_LIBRARIES}
PATHS
/usr/local
/usr
HINTS
${POPPLER_PKG_LIBRARY_DIRS} # Generated by pkg-config
PATH_SUFFIXES
lib64
lib
)
IF ( NOT(POPPLER_LIBRARIES) )
MESSAGE(STATUS "Could not find libpoppler." )
ENDIF ()
# Scan poppler libraries for dependencies on Fontconfig
INCLUDE(GetPrerequisites)
MARK_AS_ADVANCED(gp_cmd)
GET_PREREQUISITES("${POPPLER_LIBRARIES}" POPPLER_PREREQS TRUE FALSE "" "")
IF ("${POPPLER_PREREQS}" MATCHES "fontconfig")
SET(POPPLER_NEEDS_FONTCONFIG TRUE)
ELSE ()
SET(POPPLER_NEEDS_FONTCONFIG FALSE)
ENDIF ()
FIND_PATH(POPPLER_QT4_INCLUDE_DIR NAMES poppler-qt4.h poppler-link.h
PATHS
/usr/local/include
/usr/include
HINTS
${POPPLER_QT4_PKG_INCLUDE_DIRS} # Generated by pkg-config
PATH_SUFFIXES poppler qt4
)
IF ( NOT(POPPLER_QT4_INCLUDE_DIR) )
MESSAGE(STATUS "Could not find Poppler-Qt4 headers." )
ENDIF ()
FIND_LIBRARY(POPPLER_QT4_LIBRARIES NAMES poppler-qt4 ${POPPLER_QT4_PKG_LIBRARIES}
PATHS
/usr/local
/usr
HINTS
${POPPLER_PKG_LIBRARY_DIRS} # Generated by pkg-config
PATH_SUFFIXES
lib64
lib
)
MARK_AS_ADVANCED(POPPLER_QT4_LIBRARIES)
IF ( NOT(POPPLER_QT4_LIBRARIES) )
MESSAGE(STATUS "Could not find libpoppler-qt4." )
ENDIF ()
LIST(APPEND POPPLER_LIBRARIES ${POPPLER_QT4_LIBRARIES})
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Poppler DEFAULT_MSG POPPLER_LIBRARIES POPPLER_QT4_INCLUDE_DIR )
# show the POPPLER_(XPDF/QT4)_INCLUDE_DIR and POPPLER_LIBRARIES variables only in the advanced view
MARK_AS_ADVANCED(POPPLER_XPDF_INCLUDE_DIR POPPLER_QT4_INCLUDE_DIR POPPLER_LIBRARIES)
On locating system libraries:
http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
KDE's generate_findpackage_file script was used to create skeletons for many
of the Find*.cmake files in the Modules folder
On getting things into their proper places in Mac App bundles:
http://www.vtk.org/Wiki/CMake:Bundles_And_Frameworks
# Simple Rakefile for generating documentation from the CMake buildsystem using
# Rocco:
#
# http://rtomayko.github.com/rocco
#
require 'pathname'
require 'rocco/tasks' # Not used, but serves as a good test that Rocco is installed
# Run everything from the project root directory
DOC_DIR = Pathname.new(__FILE__).realpath.dirname
ROOT_DIR = DOC_DIR.join '../..'
Dir.chdir ROOT_DIR
# Gather all CMake files
CMAKE_FILES = Dir['**/CMakeLists.txt'] + Dir['**/*.cmake.in']
# Generate documentation from comments in CMake files
task :docs do
system 'rocco',
'--language=cmake',
"--output=#{DOC_DIR + 'html' + 'docs'}",
"--template=#{DOC_DIR + 'layout.mustache'}",
*CMAKE_FILES
end
# Make doc generation the default task
task :default => :docs
# Generate documentation and then view it
task :view => [:docs] do
exec "open #{DOC_DIR + 'html' + 'index.html'}"
end
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title></title>
<link rel="stylesheet" href="http://sharpie.github.com/TeXworks/resources/docs.css">
</head>
<body>
<div id='container'>
<div id="background"></div>
<!-- Navbar -->
<div id="fadeout"></div>
<div id="flybar">
<a id="title" href="#top"><h1>CMake/packaging/CMakeLists.txt</h1></a>
<div class="navigation about">
<div class="button">
About
</div>
<div class="contents">
<p>This documentation was built using Ryan Tomayko's <strong>Rocco</strong> tool:</p>
<a href="http://rtomayko.github.com/rocco">rtomayko.github.com/rocco</a>
<p>Which is based on <strong>Docco</strong> by Jeremy Ashkenas:</p>
<a href="http://jashkenas.github.com/docco">jashkenas.github.com/docco</a>
<p>The code from this navigation bar was borrowed from the <strong>CoffeeScript</strong> project, also by Jeremy:</p>
<a href="http://jashkenas.github.com/coffee-script">jashkenas.github.com/coffee-script</a>
<p>The templates used to create this page may be found on GitHub:</p>
<a href="http://github.com/Sharpie/TeXworks/tree/master/CMake/docs">github.com/Sharpie/TeXworks</a>
</div>
</div>
<div class="navigation toc">
<div class="button">
Browse Source
</div>
<div class="contents menu">
<a class="source" href="CMakeLists.html">CMake/packaging/CMakeLists.txt</a>
<a class="source" href="mac/MacPackagingTasks.cmake.html">CMake/packaging/mac/MacPackagingTasks.cmake.in</a>
<a class="source" href="../../CMakeLists.html">CMakeLists.txt</a>
<a class="source" href="../../plugins-src/TWLuaPlugin/CMakeLists.html">plugins-src/TWLuaPlugin/CMakeLists.txt</a>
<a class="source" href="../../plugins-src/TWPythonPlugin/CMakeLists.html">plugins-src/TWPythonPlugin/CMakeLists.txt</a>
<a class="source" href="../../src/CMakeLists.html">src/CMakeLists.txt</a>
</div>
</div>
<div id="error" style="display:none;"></div>
</div>
<!-- Content -->
<span class="bookmark" id="top"></span>
<table cellspacing=0 cellpadding=0>
<thead>
<tr>
<th class=docs><h1>CMake/packaging/CMakeLists.txt</h1></th>
<th class=code></th>
</tr>
</thead>
<tbody>
<tr>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-Packaging_Tasks">&#182;</a>
<span class="bookmark" id="section-Packaging_Tasks"></span>
</div>
<h1>Packaging Tasks</h1>
</td>
<td class=code>
<div class='highlight'><pre></pre></div>
</td>
</tr>
<tr>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-2">&#182;</a>
<span class="bookmark" id="section-2"></span>
</div>
<p>Create a CMake script containing packaging tasks specific to Apple. All
variables of the form <code>@VARIABLE@</code> will be replaced, while variables of the
form <code>${VARIABLE}</code> will be left untouched.</p>
</td>
<td class=code>
<div class='highlight'><pre><span class="nb">IF</span> <span class="p">(</span> <span class="s">APPLE</span> <span class="p">)</span>
<span class="nb">CONFIGURE_FILE</span><span class="p">(</span>
<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>
<span class="o">${</span><span class="nv">PROJECT_BINARY_DIR</span><span class="o">}</span><span class="s">/CPackPackagingTasks.cmake</span>
<span class="s">@ONLY</span>
<span class="p">)</span>
<span class="nb">ELSE</span> <span class="p">()</span></pre></div>
</td>
</tr>
<tr>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-3">&#182;</a>
<span class="bookmark" id="section-3"></span>
</div>
<p>Create a dummy script for other platforms.</p>
</td>
<td class=code>
<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>
<span class="nb">ENDIF</span> <span class="p">()</span></pre></div>
</td>
</tr>
<tr>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-4">&#182;</a>
<span class="bookmark" id="section-4"></span>
</div>
<p>Execute the packaging tasks. <code>INSTALL(SCRIPT &hellip;)</code> is used so that these tasks
executing during <code>make install</code> rather than <code>make</code> or <code>cmake</code>.</p>
</td>
<td class=code>
<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>
</td>
</tr>
</table>
</div>
<!-- Navbar Scripting -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
var closeMenus;
closeMenus = function() {
return $('.navigation.active').removeClass('active');
};
$('.navigation').click(function(e) {
if (e.target.tagName.toLowerCase() === 'a') {
return;
}
if ($(e.target).closest('.repl_wrapper').length) {
return false;
}
if ($(this).hasClass('active')) {
closeMenus();
} else {
closeMenus();
$(this).addClass('active');
}
return false;
});
</script>
</body>
</html>
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title></title>
<link rel="stylesheet" href="http://sharpie.github.com/TeXworks/resources/docs.css">
</head>
<body>
<div id='container'>
<div id="background"></div>
<!-- Navbar -->
<div id="fadeout"></div>
<div id="flybar">
<a id="title" href="#top"><h1>plugins-src/TWLuaPlugin/CMakeLists.txt</h1></a>
<div class="navigation about">
<div class="button">
About
</div>
<div class="contents">
<p>This documentation was built using Ryan Tomayko's <strong>Rocco</strong> tool:</p>
<a href="http://rtomayko.github.com/rocco">rtomayko.github.com/rocco</a>
<p>Which is based on <strong>Docco</strong> by Jeremy Ashkenas:</p>
<a href="http://jashkenas.github.com/docco">jashkenas.github.com/docco</a>
<p>The code from this navigation bar was borrowed from the <strong>CoffeeScript</strong> project, also by Jeremy:</p>
<a href="http://jashkenas.github.com/coffee-script">jashkenas.github.com/coffee-script</a>
<p>The templates used to create this page may be found on GitHub:</p>
<a href="http://github.com/Sharpie/TeXworks/tree/master/CMake/docs">github.com/Sharpie/TeXworks</a>
</div>
</div>
<div class="navigation toc">
<div class="button">
Browse Source
</div>
<div class="contents menu">
<a class="source" href="../../CMake/packaging/CMakeLists.html">CMake/packaging/CMakeLists.txt</a>
<a class="source" href="../../CMake/packaging/mac/MacPackagingTasks.cmake.html">CMake/packaging/mac/MacPackagingTasks.cmake.in</a>
<a class="source" href="../../CMakeLists.html">CMakeLists.txt</a>
<a class="source" href="CMakeLists.html">plugins-src/TWLuaPlugin/CMakeLists.txt</a>
<a class="source" href="../TWPythonPlugin/CMakeLists.html">plugins-src/TWPythonPlugin/CMakeLists.txt</a>
<a class="source" href="../../src/CMakeLists.html">src/CMakeLists.txt</a>
</div>
</div>
<div id="error" style="display:none;"></div>
</div>
<!-- Content -->
<span class="bookmark" id="top"></span>
<table cellspacing=0 cellpadding=0>
<thead>
<tr>
<th class=docs><h1>plugins-src/TWLuaPlugin/CMakeLists.txt</h1></th>
<th class=code></th>
</tr>
</thead>
<tbody>
<tr>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-Build_Lua_Plugin">&#182;</a>
<span class="bookmark" id="section-Build_Lua_Plugin"></span>
</div>
<h1>Build Lua Plugin</h1>
</td>
<td class=code>
<div class='highlight'><pre><span class="nb">INCLUDE_DIRECTORIES</span><span class="p">(</span>
<span class="o">${</span><span class="nv">TeXworks_SOURCE_DIR</span><span class="o">}</span><span class="s">/src</span>
<span class="o">${</span><span class="nv">QT_INCLUDE_DIR</span><span class="o">}</span>
<span class="o">${</span><span class="nv">LUA_INCLUDE_DIR</span><span class="o">}</span>
<span class="p">)</span>
<span class="nb">LINK_DIRECTORIES</span><span class="p">(</span><span class="o">${</span><span class="nv">QT_LIBRARY_DIR</span><span class="o">}</span><span class="p">)</span></pre></div>
</td>
</tr>
<tr>
<td class=docs>
<div class="pilwrap">
<a class="pilcrow" href="#section-2">&#182;</a>
<span class="bookmark" id="section-2"></span>
</div>
<p><strong>NOTE:</strong> <em>Re-moccing headers from the main source directory that have
already been mocced during the build of the main program seems redundant, but
I&rsquo;m not wise enough in the ways of Qt and CMake to figure out a good
alternative.</em></p>
</td>
<td class=code>
<div class='highlight'><pre><span class="err">QT4_WRAP_CPP(LUA_PLUGIN_MOC</span> <span class="err">${TeXworks_SCRIPT_API_H}</span> <span class="err">TWLuaPlugin.h)</span>
<span class="nb">ADD_LIBRARY</span><span class="p">(</span><span class="s">TWLuaPlugin</span> <span class="s">SHARED</span>
<span class="s">TWLuaPlugin.cpp</span>
<span class="o">${</span><span class="nv">TeXworks_SCRIPT_API</span><span class="o">}</span>
<span class="o">${</span><span class="nv">LUA_PLUGIN_MOC</span><span class="o">}</span>
<span class="p">)</span>
<span class="nb">TARGET_LINK_LIBRARIES</span><span class="p">(</span><span class="s">TWLuaPlugin</span> <span class="o">${</span><span class="nv">QT_LIBRARIES</span><span class="o">}</span> <span class="o">${</span><span class="nv">LUA_LIBRARIES</span><span class="o">}</span><span class="p">)</span>
<span class="nb">INSTALL</span><span class="p">(</span><span class="s">TARGETS</span> <span class="s">TWLuaPlugin</span>
<span class="s">LIBRARY</span> <span class="s">DESTINATION</span> <span class="o">${</span><span class="nv">TeXworks_PLUGIN_DIR</span><span class="o">}</span>
<span class="p">)</span></pre></div>
</td>
</tr>
</table>
</div>
<!-- Navbar Scripting -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
var closeMenus;
closeMenus = function() {
return $('.navigation.active').removeClass('active');
};
$('.navigation').click(function(e) {
if (e.target.tagName.toLowerCase() === 'a') {
return;
}
if ($(e.target).closest('.repl_wrapper').length) {
return false;
}
if ($(this).hasClass('active')) {
closeMenus();
} else {
closeMenus();
$(this).addClass('active');
}
return false;
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title></title>
<link rel="stylesheet" href="http://sharpie.github.com/TeXworks/resources/docs.css">
</head>
<body>
<div id='container'>
<div id="background"></div>
<!-- Navbar -->
<div id="fadeout"></div>
<div id="flybar">
<a id="title" href="#top"><h1>plugins-src/TWPythonPlugin/CMakeLists.txt</h1></a>
<div class="navigation about">
<div class="button">
About
</div>
<div class="contents">
<p>This documentation was built using Ryan Tomayko's <strong>Rocco</strong> tool:</p>
<a href="http://rtomayko.github.com/rocco">rtomayko.github.com/rocco</a>
<p>Which is based on <strong>Docco</strong> by Jeremy Ashkenas:</p>
<a href="http://jashkenas.github.com/docco">jashkenas.github.com/docco</a>
<p>The code from this navigation bar was borrowed from the <strong>CoffeeScript</strong> project, also by Jeremy:</p>
<a href="http://jashkenas.github.com/coffee-script">jashkenas.github.com/coffee-script</a>
<p>The templates used to create this page may be found on GitHub:</p>
<a href="http://github.com/Sharpie/TeXworks/tree/master/CMake/docs">github.com/Sharpie/TeXworks</a>
</div>
</div>
<div class="navigation toc">
<div class="button">
Browse Source
</div>
<div class="contents menu">
<a class="source" href="../../CMake/packaging/CMakeLists.html">CMake/packaging/CMakeLists.txt</a>
<a class="source" href="../../CMake/packaging/mac/MacPackagingTasks.cmake.html">CMake/packaging/mac/MacPackagingTasks.cmake.in</a>
<a class="source" href="../../CMakeLists.html">CMakeLists.txt</a>
<a class="source" href="../TWLuaPlugin/CMakeLists.html">plugins-src/TWLuaPlugin/CMakeLists.txt</a>
<a class="source" href="CMakeLists.html">plugi