<?xml version="1.0" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE"> ]>
<article>
<articleinfo>
<title>cmake - cmake</title>
</articleinfo>
<sect1 id="section_Name">
<title>
Name</title>
<itemizedlist>
</itemizedlist>
<literallayout>  cmake-gui - CMake GUI.</literallayout>
    
</sect1>
<sect1 id="section_Usage">
<title>
Usage</title>
<itemizedlist>
</itemizedlist>
<literallayout>  cmake-gui [options]
  cmake-gui [options] &lt;path-to-source&gt;
  cmake-gui [options] &lt;path-to-existing-build&gt;</literallayout>
    
</sect1>
<sect1 id="section_Description">
<title>
Description</title>
<itemizedlist>
</itemizedlist>
<para>The "cmake-gui" executable is the CMake GUI.  Project configuration settings may be specified interactively.  Brief instructions are provided at the bottom of the window when the program is running.</para>
<para>CMake is a cross-platform build system generator.  Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.</para>
</sect1>
<sect1 id="section_Options">
<title>
Options</title>
<itemizedlist>
    <listitem><link linkend="opt_--copyright [file]"><emphasis><literal>--copyright [file]</literal></emphasis></link></listitem>
    <listitem><link linkend="opt_--help,-help,-usage,-h,-H,/?"><emphasis><literal>--help,-help,-usage,-h,-H,/?</literal></emphasis></link></listitem>
    <listitem><link linkend="opt_--help-full [file]"><emphasis><literal>--help-full [file]</literal></emphasis></link></listitem>
    <listitem><link linkend="opt_--help-html [file]"><emphasis><literal>--help-html [file]</literal></emphasis></link></listitem>
    <listitem><link linkend="opt_--help-man [file]"><emphasis><literal>--help-man [file]</literal></emphasis></link></listitem>
    <listitem><link linkend="opt_--version,-version,/V [file]"><emphasis><literal>--version,-version,/V [file]</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="opt_--copyright [file]"><sect2><title>--copyright [file]</title></sect2> Print the CMake copyright and exit.</para>

    <para>If a file is specified, the copyright is written into it.</para>
    <para id="opt_--help,-help,-usage,-h,-H,/?"><sect2><title>--help,-help,-usage,-h,-H,/?</title></sect2> Print usage information and exit.</para>

    <para>Usage describes the basic command line interface and its options.</para>
    <para id="opt_--help-full [file]"><sect2><title>--help-full [file]</title></sect2> Print full help and exit.</para>

    <para>Full help displays most of the documentation provided by the UNIX man page.  It is provided for use on non-UNIX platforms, but is also convenient if the man page is not installed.  If a file is specified, the help is written into it.</para>
    <para id="opt_--help-html [file]"><sect2><title>--help-html [file]</title></sect2> Print full help in HTML format.</para>

    <para>This option is used by CMake authors to help produce web pages.  If a file is specified, the help is written into it.</para>
    <para id="opt_--help-man [file]"><sect2><title>--help-man [file]</title></sect2> Print full help as a UNIX man page and exit.</para>

    <para>This option is used by the cmake build to generate the UNIX man page.  If a file is specified, the help is written into it.</para>
    <para id="opt_--version,-version,/V [file]"><sect2><title>--version,-version,/V [file]</title></sect2> Show program name/version banner and exit.</para>

    <para>If a file is specified, the version is written into it.</para>
</sect1>
<sect1 id="section_Generators">
<title>
Generators</title>
<itemizedlist>
    <listitem><link linkend="gen_Borland Makefiles"><emphasis><literal>Borland Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_MSYS Makefiles"><emphasis><literal>MSYS Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_MinGW Makefiles"><emphasis><literal>MinGW Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_NMake Makefiles"><emphasis><literal>NMake Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_NMake Makefiles JOM"><emphasis><literal>NMake Makefiles JOM</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Unix Makefiles"><emphasis><literal>Unix Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 10"><emphasis><literal>Visual Studio 10</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 10 IA64"><emphasis><literal>Visual Studio 10 IA64</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 10 Win64"><emphasis><literal>Visual Studio 10 Win64</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 11"><emphasis><literal>Visual Studio 11</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 11 Win64"><emphasis><literal>Visual Studio 11 Win64</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 6"><emphasis><literal>Visual Studio 6</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 7"><emphasis><literal>Visual Studio 7</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 7 .NET 2003"><emphasis><literal>Visual Studio 7 .NET 2003</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 8 2005"><emphasis><literal>Visual Studio 8 2005</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 8 2005 Win64"><emphasis><literal>Visual Studio 8 2005 Win64</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 9 2008"><emphasis><literal>Visual Studio 9 2008</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 9 2008 IA64"><emphasis><literal>Visual Studio 9 2008 IA64</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Visual Studio 9 2008 Win64"><emphasis><literal>Visual Studio 9 2008 Win64</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Watcom WMake"><emphasis><literal>Watcom WMake</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_CodeBlocks - MinGW Makefiles"><emphasis><literal>CodeBlocks - MinGW Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_CodeBlocks - NMake Makefiles"><emphasis><literal>CodeBlocks - NMake Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_CodeBlocks - Unix Makefiles"><emphasis><literal>CodeBlocks - Unix Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Eclipse CDT4 - MinGW Makefiles"><emphasis><literal>Eclipse CDT4 - MinGW Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Eclipse CDT4 - NMake Makefiles"><emphasis><literal>Eclipse CDT4 - NMake Makefiles</literal></emphasis></link></listitem>
    <listitem><link linkend="gen_Eclipse CDT4 - Unix Makefiles"><emphasis><literal>Eclipse CDT4 - Unix Makefiles</literal></emphasis></link></listitem>
</itemizedlist>
<para>The following generators are available on this platform:</para>
    <para id="gen_Borland Makefiles"><sect2><title>Borland Makefiles</title></sect2> Generates Borland makefiles.</para>

    <para id="gen_MSYS Makefiles"><sect2><title>MSYS Makefiles</title></sect2> Generates MSYS makefiles.</para>

    <para>The makefiles use /bin/sh as the shell.  They require msys to be installed on the machine.</para>
    <para id="gen_MinGW Makefiles"><sect2><title>MinGW Makefiles</title></sect2> Generates a make file for use with mingw32-make.</para>

    <para>The makefiles generated use cmd.exe as the shell.  They do not require msys or a unix shell.</para>
    <para id="gen_NMake Makefiles"><sect2><title>NMake Makefiles</title></sect2> Generates NMake makefiles.</para>

    <para id="gen_NMake Makefiles JOM"><sect2><title>NMake Makefiles JOM</title></sect2> Generates JOM makefiles.</para>

    <para id="gen_Unix Makefiles"><sect2><title>Unix Makefiles</title></sect2> Generates standard UNIX makefiles.</para>

    <para>A hierarchy of UNIX makefiles is generated into the build tree.  Any standard UNIX-style make program can build the project through the default make target.  A "make install" target is also provided.</para>
    <para id="gen_Visual Studio 10"><sect2><title>Visual Studio 10</title></sect2> Generates Visual Studio 10 project files.</para>

    <para id="gen_Visual Studio 10 IA64"><sect2><title>Visual Studio 10 IA64</title></sect2> Generates Visual Studio 10 Itanium project files.</para>

    <para id="gen_Visual Studio 10 Win64"><sect2><title>Visual Studio 10 Win64</title></sect2> Generates Visual Studio 10 Win64 project files.</para>

    <para id="gen_Visual Studio 11"><sect2><title>Visual Studio 11</title></sect2> Generates Visual Studio 11 project files.</para>

    <para id="gen_Visual Studio 11 Win64"><sect2><title>Visual Studio 11 Win64</title></sect2> Generates Visual Studio 11 Win64 project files.</para>

    <para id="gen_Visual Studio 6"><sect2><title>Visual Studio 6</title></sect2> Generates Visual Studio 6 project files.</para>

    <para id="gen_Visual Studio 7"><sect2><title>Visual Studio 7</title></sect2> Generates Visual Studio .NET 2002 project files.</para>

    <para id="gen_Visual Studio 7 .NET 2003"><sect2><title>Visual Studio 7 .NET 2003</title></sect2> Generates Visual Studio .NET 2003 project files.</para>

    <para id="gen_Visual Studio 8 2005"><sect2><title>Visual Studio 8 2005</title></sect2> Generates Visual Studio .NET 2005 project files.</para>

    <para id="gen_Visual Studio 8 2005 Win64"><sect2><title>Visual Studio 8 2005 Win64</title></sect2> Generates Visual Studio .NET 2005 Win64 project files.</para>

    <para id="gen_Visual Studio 9 2008"><sect2><title>Visual Studio 9 2008</title></sect2> Generates Visual Studio 9 2008 project files.</para>

    <para id="gen_Visual Studio 9 2008 IA64"><sect2><title>Visual Studio 9 2008 IA64</title></sect2> Generates Visual Studio 9 2008 Itanium project files.</para>

    <para id="gen_Visual Studio 9 2008 Win64"><sect2><title>Visual Studio 9 2008 Win64</title></sect2> Generates Visual Studio 9 2008 Win64 project files.</para>

    <para id="gen_Watcom WMake"><sect2><title>Watcom WMake</title></sect2> Generates Watcom WMake makefiles.</para>

    <para id="gen_CodeBlocks - MinGW Makefiles"><sect2><title>CodeBlocks - MinGW Makefiles</title></sect2> Generates CodeBlocks project files.</para>

    <para>Project files for CodeBlocks will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. Additionally a hierarchy of makefiles is generated into the build tree.  The appropriate make program can build the project through the default make target.  A "make install" target is also provided.</para>
    <para id="gen_CodeBlocks - NMake Makefiles"><sect2><title>CodeBlocks - NMake Makefiles</title></sect2> Generates CodeBlocks project files.</para>

    <para>Project files for CodeBlocks will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. Additionally a hierarchy of makefiles is generated into the build tree.  The appropriate make program can build the project through the default make target.  A "make install" target is also provided.</para>
    <para id="gen_CodeBlocks - Unix Makefiles"><sect2><title>CodeBlocks - Unix Makefiles</title></sect2> Generates CodeBlocks project files.</para>

    <para>Project files for CodeBlocks will be created in the top directory and in every subdirectory which features a CMakeLists.txt file containing a PROJECT() call. Additionally a hierarchy of makefiles is generated into the build tree.  The appropriate make program can build the project through the default make target.  A "make install" target is also provided.</para>
    <para id="gen_Eclipse CDT4 - MinGW Makefiles"><sect2><title>Eclipse CDT4 - MinGW Makefiles</title></sect2> Generates Eclipse CDT 4.0 project files.</para>

    <para>Project files for Eclipse will be created in the top directory. In out of source builds, a linked resource to the top level source directory will be created.Additionally a hierarchy of makefiles is generated into the build tree. The appropriate make program can build the project through the default make target. A "make install" target is also provided.</para>
    <para id="gen_Eclipse CDT4 - NMake Makefiles"><sect2><title>Eclipse CDT4 - NMake Makefiles</title></sect2> Generates Eclipse CDT 4.0 project files.</para>

    <para>Project files for Eclipse will be created in the top directory. In out of source builds, a linked resource to the top level source directory will be created.Additionally a hierarchy of makefiles is generated into the build tree. The appropriate make program can build the project through the default make target. A "make install" target is also provided.</para>
    <para id="gen_Eclipse CDT4 - Unix Makefiles"><sect2><title>Eclipse CDT4 - Unix Makefiles</title></sect2> Generates Eclipse CDT 4.0 project files.</para>

    <para>Project files for Eclipse will be created in the top directory. In out of source builds, a linked resource to the top level source directory will be created.Additionally a hierarchy of makefiles is generated into the build tree. The appropriate make program can build the project through the default make target. A "make install" target is also provided.</para>
</sect1>
<sect1 id="section_Commands">
<title>
Commands</title>
<itemizedlist>
    <listitem><link linkend="command_add_custom_command"><emphasis><literal>add_custom_command</literal></emphasis></link></listitem>
    <listitem><link linkend="command_add_custom_target"><emphasis><literal>add_custom_target</literal></emphasis></link></listitem>
    <listitem><link linkend="command_add_definitions"><emphasis><literal>add_definitions</literal></emphasis></link></listitem>
    <listitem><link linkend="command_add_dependencies"><emphasis><literal>add_dependencies</literal></emphasis></link></listitem>
    <listitem><link linkend="command_add_executable"><emphasis><literal>add_executable</literal></emphasis></link></listitem>
    <listitem><link linkend="command_add_library"><emphasis><literal>add_library</literal></emphasis></link></listitem>
    <listitem><link linkend="command_add_subdirectory"><emphasis><literal>add_subdirectory</literal></emphasis></link></listitem>
    <listitem><link linkend="command_add_test"><emphasis><literal>add_test</literal></emphasis></link></listitem>
    <listitem><link linkend="command_aux_source_directory"><emphasis><literal>aux_source_directory</literal></emphasis></link></listitem>
    <listitem><link linkend="command_break"><emphasis><literal>break</literal></emphasis></link></listitem>
    <listitem><link linkend="command_build_command"><emphasis><literal>build_command</literal></emphasis></link></listitem>
    <listitem><link linkend="command_cmake_minimum_required"><emphasis><literal>cmake_minimum_required</literal></emphasis></link></listitem>
    <listitem><link linkend="command_cmake_policy"><emphasis><literal>cmake_policy</literal></emphasis></link></listitem>
    <listitem><link linkend="command_configure_file"><emphasis><literal>configure_file</literal></emphasis></link></listitem>
    <listitem><link linkend="command_create_test_sourcelist"><emphasis><literal>create_test_sourcelist</literal></emphasis></link></listitem>
    <listitem><link linkend="command_define_property"><emphasis><literal>define_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_else"><emphasis><literal>else</literal></emphasis></link></listitem>
    <listitem><link linkend="command_elseif"><emphasis><literal>elseif</literal></emphasis></link></listitem>
    <listitem><link linkend="command_enable_language"><emphasis><literal>enable_language</literal></emphasis></link></listitem>
    <listitem><link linkend="command_enable_testing"><emphasis><literal>enable_testing</literal></emphasis></link></listitem>
    <listitem><link linkend="command_endforeach"><emphasis><literal>endforeach</literal></emphasis></link></listitem>
    <listitem><link linkend="command_endfunction"><emphasis><literal>endfunction</literal></emphasis></link></listitem>
    <listitem><link linkend="command_endif"><emphasis><literal>endif</literal></emphasis></link></listitem>
    <listitem><link linkend="command_endmacro"><emphasis><literal>endmacro</literal></emphasis></link></listitem>
    <listitem><link linkend="command_endwhile"><emphasis><literal>endwhile</literal></emphasis></link></listitem>
    <listitem><link linkend="command_execute_process"><emphasis><literal>execute_process</literal></emphasis></link></listitem>
    <listitem><link linkend="command_export"><emphasis><literal>export</literal></emphasis></link></listitem>
    <listitem><link linkend="command_file"><emphasis><literal>file</literal></emphasis></link></listitem>
    <listitem><link linkend="command_find_file"><emphasis><literal>find_file</literal></emphasis></link></listitem>
    <listitem><link linkend="command_find_library"><emphasis><literal>find_library</literal></emphasis></link></listitem>
    <listitem><link linkend="command_find_package"><emphasis><literal>find_package</literal></emphasis></link></listitem>
    <listitem><link linkend="command_find_path"><emphasis><literal>find_path</literal></emphasis></link></listitem>
    <listitem><link linkend="command_find_program"><emphasis><literal>find_program</literal></emphasis></link></listitem>
    <listitem><link linkend="command_fltk_wrap_ui"><emphasis><literal>fltk_wrap_ui</literal></emphasis></link></listitem>
    <listitem><link linkend="command_foreach"><emphasis><literal>foreach</literal></emphasis></link></listitem>
    <listitem><link linkend="command_function"><emphasis><literal>function</literal></emphasis></link></listitem>
    <listitem><link linkend="command_get_cmake_property"><emphasis><literal>get_cmake_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_get_directory_property"><emphasis><literal>get_directory_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_get_filename_component"><emphasis><literal>get_filename_component</literal></emphasis></link></listitem>
    <listitem><link linkend="command_get_property"><emphasis><literal>get_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_get_source_file_property"><emphasis><literal>get_source_file_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_get_target_property"><emphasis><literal>get_target_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_get_test_property"><emphasis><literal>get_test_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_if"><emphasis><literal>if</literal></emphasis></link></listitem>
    <listitem><link linkend="command_include"><emphasis><literal>include</literal></emphasis></link></listitem>
    <listitem><link linkend="command_include_directories"><emphasis><literal>include_directories</literal></emphasis></link></listitem>
    <listitem><link linkend="command_include_external_msproject"><emphasis><literal>include_external_msproject</literal></emphasis></link></listitem>
    <listitem><link linkend="command_include_regular_expression"><emphasis><literal>include_regular_expression</literal></emphasis></link></listitem>
    <listitem><link linkend="command_install"><emphasis><literal>install</literal></emphasis></link></listitem>
    <listitem><link linkend="command_link_directories"><emphasis><literal>link_directories</literal></emphasis></link></listitem>
    <listitem><link linkend="command_list"><emphasis><literal>list</literal></emphasis></link></listitem>
    <listitem><link linkend="command_load_cache"><emphasis><literal>load_cache</literal></emphasis></link></listitem>
    <listitem><link linkend="command_load_command"><emphasis><literal>load_command</literal></emphasis></link></listitem>
    <listitem><link linkend="command_macro"><emphasis><literal>macro</literal></emphasis></link></listitem>
    <listitem><link linkend="command_mark_as_advanced"><emphasis><literal>mark_as_advanced</literal></emphasis></link></listitem>
    <listitem><link linkend="command_math"><emphasis><literal>math</literal></emphasis></link></listitem>
    <listitem><link linkend="command_message"><emphasis><literal>message</literal></emphasis></link></listitem>
    <listitem><link linkend="command_option"><emphasis><literal>option</literal></emphasis></link></listitem>
    <listitem><link linkend="command_project"><emphasis><literal>project</literal></emphasis></link></listitem>
    <listitem><link linkend="command_qt_wrap_cpp"><emphasis><literal>qt_wrap_cpp</literal></emphasis></link></listitem>
    <listitem><link linkend="command_qt_wrap_ui"><emphasis><literal>qt_wrap_ui</literal></emphasis></link></listitem>
    <listitem><link linkend="command_remove_definitions"><emphasis><literal>remove_definitions</literal></emphasis></link></listitem>
    <listitem><link linkend="command_return"><emphasis><literal>return</literal></emphasis></link></listitem>
    <listitem><link linkend="command_separate_arguments"><emphasis><literal>separate_arguments</literal></emphasis></link></listitem>
    <listitem><link linkend="command_set"><emphasis><literal>set</literal></emphasis></link></listitem>
    <listitem><link linkend="command_set_directory_properties"><emphasis><literal>set_directory_properties</literal></emphasis></link></listitem>
    <listitem><link linkend="command_set_property"><emphasis><literal>set_property</literal></emphasis></link></listitem>
    <listitem><link linkend="command_set_source_files_properties"><emphasis><literal>set_source_files_properties</literal></emphasis></link></listitem>
    <listitem><link linkend="command_set_target_properties"><emphasis><literal>set_target_properties</literal></emphasis></link></listitem>
    <listitem><link linkend="command_set_tests_properties"><emphasis><literal>set_tests_properties</literal></emphasis></link></listitem>
    <listitem><link linkend="command_site_name"><emphasis><literal>site_name</literal></emphasis></link></listitem>
    <listitem><link linkend="command_source_group"><emphasis><literal>source_group</literal></emphasis></link></listitem>
    <listitem><link linkend="command_string"><emphasis><literal>string</literal></emphasis></link></listitem>
    <listitem><link linkend="command_target_link_libraries"><emphasis><literal>target_link_libraries</literal></emphasis></link></listitem>
    <listitem><link linkend="command_try_compile"><emphasis><literal>try_compile</literal></emphasis></link></listitem>
    <listitem><link linkend="command_try_run"><emphasis><literal>try_run</literal></emphasis></link></listitem>
    <listitem><link linkend="command_unset"><emphasis><literal>unset</literal></emphasis></link></listitem>
    <listitem><link linkend="command_variable_watch"><emphasis><literal>variable_watch</literal></emphasis></link></listitem>
    <listitem><link linkend="command_while"><emphasis><literal>while</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="command_add_custom_command"><sect2><title>add_custom_command</title></sect2> Add a custom build rule to the generated build system.</para>

    <para>There are two main signatures for add_custom_command The first signature is for adding a custom command to produce an output.
</para><literallayout>  add_custom_command(OUTPUT output1 [output2 ...]
                     COMMAND command1 [ARGS] [args1...]
                     [COMMAND command2 [ARGS] [args2...] ...]
                     [MAIN_DEPENDENCY depend]
                     [DEPENDS [depends...]]
                     [IMPLICIT_DEPENDS &lt;lang1&gt; depend1 ...]
                     [WORKING_DIRECTORY dir]
                     [COMMENT comment] [VERBATIM] [APPEND])
</literallayout>
    <para>This defines a command to generate specified OUTPUT file(s).  A target created in the same directory (CMakeLists.txt file) that specifies any output of the custom command as a source file is given a rule to generate the file using the command at build time.  Do not list the output in more than one independent target that may build in parallel or the two instances of the rule may conflict (instead use add_custom_target to drive the command and make the other targets depend on that one).  If an output name is a relative path it will be interpreted relative to the build tree directory corresponding to the current source directory. Note that MAIN_DEPENDENCY is completely optional and is used as a suggestion to visual studio about where to hang the custom command. In makefile terms this creates a new target in the following form:
</para><literallayout>  OUTPUT: MAIN_DEPENDENCY DEPENDS
          COMMAND
</literallayout>
    <para>If more than one command is specified they will be executed in order. The optional ARGS argument is for backward compatibility and will be ignored.
</para><para>The second signature adds a custom command to a target such as a library or executable. This is useful for performing an operation before or after building the target. The command becomes part of the target and will only execute when the target itself is built.  If the target is already built, the command will not execute.
</para><literallayout>  add_custom_command(TARGET target
                     PRE_BUILD | PRE_LINK | POST_BUILD
                     COMMAND command1 [ARGS] [args1...]
                     [COMMAND command2 [ARGS] [args2...] ...]
                     [WORKING_DIRECTORY dir]
                     [COMMENT comment] [VERBATIM])
</literallayout>
    <para>This defines a new command that will be associated with building the specified target. When the command will happen is determined by which of the following is specified:
</para><literallayout>  PRE_BUILD - run before all other dependencies
  PRE_LINK - run after other dependencies
  POST_BUILD - run after the target has been built
</literallayout>
    <para>Note that the PRE_BUILD option is only supported on Visual Studio 7 or later. For all other generators PRE_BUILD will be treated as PRE_LINK.
</para><para>If WORKING_DIRECTORY is specified the command will be executed in the directory given. If it is a relative path it will be interpreted relative to the build tree directory corresponding to the current source directory. If COMMENT is set, the value will be displayed as a message before the commands are executed at build time. If APPEND is specified the COMMAND and DEPENDS option values are appended to the custom command for the first output specified. There must have already been a previous call to this command with the same output. The COMMENT, WORKING_DIRECTORY, and MAIN_DEPENDENCY options are currently ignored when APPEND is given, but may be used in the future.
</para><para>If VERBATIM is given then all arguments to the commands will be escaped properly for the build tool so that the invoked command receives each argument unchanged.  Note that one level of escapes is still used by the CMake language processor before add_custom_command even sees the arguments. Use of VERBATIM is recommended as it enables correct behavior. When VERBATIM is not given the behavior is platform specific because there is no protection of tool-specific special characters.
</para><para>If the output of the custom command is not actually created as a file on disk it should be marked as SYMBOLIC with SET_SOURCE_FILES_PROPERTIES.
</para><para>The IMPLICIT_DEPENDS option requests scanning of implicit dependencies of an input file.  The language given specifies the programming language whose corresponding dependency scanner should be used.  Currently only C and CXX language scanners are supported. Dependencies discovered from the scanning are added to those of the custom command at build time.  Note that the IMPLICIT_DEPENDS option is currently supported only for Makefile generators and will be ignored by other generators.
</para><para>If COMMAND specifies an executable target (created by ADD_EXECUTABLE) it will automatically be replaced by the location of the executable created at build time.  Additionally a target-level dependency will be added so that the executable target will be built before any target using this custom command.  However this does NOT add a file-level dependency that would cause the custom command to re-run whenever the executable is recompiled.
</para><para>Arguments to COMMAND may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluted during build system generation to produce information specific to each build configuration.  Valid expressions are:
</para><literallayout>  $&lt;CONFIGURATION&gt;          = configuration name
  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)
  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)
  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)
</literallayout>
    <para>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:
</para><literallayout>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;
  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;
  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;
</literallayout>
    <para>References to target names in generator expressions imply target-level dependencies, but NOT file-level dependencies.  List target names with the DEPENDS option to add file dependencies.
</para><para>The DEPENDS option specifies files on which the command depends.  If any dependency is an OUTPUT of another custom command in the same directory (CMakeLists.txt file) CMake automatically brings the other custom command into the target in which this command is built.  If DEPENDS is not specified the command will run whenever the OUTPUT is missing; if the command does not actually create the OUTPUT then the rule will always run.  If DEPENDS specifies any target (created by an ADD_* command) a target-level dependency is created to make sure the target is built before any target using this custom command.  Additionally, if the target is an executable or library a file-level dependency is created to cause the custom command to re-run whenever the target is recompiled.
</para>
    <para id="command_add_custom_target"><sect2><title>add_custom_target</title></sect2> Add a target with no output so it will always be built.</para>

    <literallayout>  add_custom_target(Name [ALL] [command1 [args1...]]
                    [COMMAND command2 [args2...] ...]
                    [DEPENDS depend depend depend ... ]
                    [WORKING_DIRECTORY dir]
                    [COMMENT comment] [VERBATIM]
                    [SOURCES src1 [src2...]])
</literallayout>
    <para>Adds a target with the given name that executes the given commands. The target has no output file and is ALWAYS CONSIDERED OUT OF DATE even if the commands try to create a file with the name of the target. Use ADD_CUSTOM_COMMAND to generate a file with dependencies. By default nothing depends on the custom target. Use ADD_DEPENDENCIES to add dependencies to or from other targets. If the ALL option is specified it indicates that this target should be added to the default build target so that it will be run every time (the command cannot be called ALL). The command and arguments are optional and if not specified an empty target will be created. If WORKING_DIRECTORY is set, then the command will be run in that directory. If it is a relative path it will be interpreted relative to the build tree directory corresponding to the current source directory. If COMMENT is set, the value will be displayed as a message before the commands are executed at build time. Dependencies listed with the DEPENDS argument may reference files and outputs of custom commands created with add_custom_command() in the same directory (CMakeLists.txt file).
</para><para>If VERBATIM is given then all arguments to the commands will be escaped properly for the build tool so that the invoked command receives each argument unchanged.  Note that one level of escapes is still used by the CMake language processor before add_custom_target even sees the arguments. Use of VERBATIM is recommended as it enables correct behavior. When VERBATIM is not given the behavior is platform specific because there is no protection of tool-specific special characters.
</para><para>The SOURCES option specifies additional source files to be included in the custom target.  Specified source files will be added to IDE project files for convenience in editing even if they have not build rules.</para>
    <para id="command_add_definitions"><sect2><title>add_definitions</title></sect2> Adds -D define flags to the compilation of source files.</para>

    <literallayout>  add_definitions(-DFOO -DBAR ...)
</literallayout>
    <para>Adds flags to the compiler command line for sources in the current directory and below.  This command can be used to add any flags, but it was originally intended to add preprocessor definitions.  Flags beginning in -D or /D that look like preprocessor definitions are automatically added to the COMPILE_DEFINITIONS property for the current directory.  Definitions with non-trival values may be left in the set of flags instead of being converted for reasons of backwards compatibility.  See documentation of the directory, target, and source file COMPILE_DEFINITIONS properties for details on adding preprocessor definitions to specific scopes and configurations.</para>
    <para id="command_add_dependencies"><sect2><title>add_dependencies</title></sect2> Add a dependency between top-level targets.</para>

    <literallayout>  add_dependencies(target-name depend-target1
                   depend-target2 ...)
</literallayout>
    <para>Make a top-level target depend on other top-level targets.  A top-level target is one created by ADD_EXECUTABLE, ADD_LIBRARY, or ADD_CUSTOM_TARGET.  Adding dependencies with this command can be used to make sure one target is built before another target.  Dependencies added to an IMPORTED target are followed transitively in its place since the target itself does not build.  See the DEPENDS option of ADD_CUSTOM_TARGET and ADD_CUSTOM_COMMAND for adding file-level dependencies in custom rules.  See the OBJECT_DEPENDS option in SET_SOURCE_FILES_PROPERTIES to add file-level dependencies to object files.</para>
    <para id="command_add_executable"><sect2><title>add_executable</title></sect2> Add an executable to the project using the specified source files.</para>

    <literallayout>  add_executable(&lt;name&gt; [WIN32] [MACOSX_BUNDLE]
                 [EXCLUDE_FROM_ALL]
                 source1 source2 ... sourceN)
</literallayout>
    <para>Adds an executable target called &lt;name&gt; to be built from the source files listed in the command invocation.  The &lt;name&gt; corresponds to the logical target name and must be globally unique within a project.  The actual file name of the executable built is constructed based on conventions of the native platform (such as &lt;name&gt;.exe or just &lt;name&gt;).  
</para><para>By default the executable file will be created in the build tree directory corresponding to the source tree directory in which the command was invoked.  See documentation of the RUNTIME_OUTPUT_DIRECTORY target property to change this location.  See documentation of the OUTPUT_NAME target property to change the &lt;name&gt; part of the final file name.  
</para><para>If WIN32 is given the property WIN32_EXECUTABLE will be set on the target created.  See documentation of that target property for details.
</para><para>If MACOSX_BUNDLE is given the corresponding property will be set on the created target.  See documentation of the MACOSX_BUNDLE target property for details.
</para><para>If EXCLUDE_FROM_ALL is given the corresponding property will be set on the created target.  See documentation of the EXCLUDE_FROM_ALL target property for details.
</para><para>The add_executable command can also create IMPORTED executable targets using this signature:
</para><literallayout>  add_executable(&lt;name&gt; IMPORTED [GLOBAL])
</literallayout>
    <para>An IMPORTED executable target references an executable file located outside the project.  No rules are generated to build it.  The target name has scope in the directory in which it is created and below, but the GLOBAL option extends visibility.  It may be referenced like any target built within the project.  IMPORTED executables are useful for convenient reference from commands like add_custom_command.  Details about the imported executable are specified by setting properties whose names begin in "IMPORTED_".  The most important such property is IMPORTED_LOCATION (and its per-configuration version IMPORTED_LOCATION_&lt;CONFIG&gt;) which specifies the location of the main executable file on disk.  See documentation of the IMPORTED_* properties for more information.</para>
    <para id="command_add_library"><sect2><title>add_library</title></sect2> Add a library to the project using the specified source files.</para>

    <literallayout>  add_library(&lt;name&gt; [STATIC | SHARED | MODULE]
              [EXCLUDE_FROM_ALL]
              source1 source2 ... sourceN)
</literallayout>
    <para>Adds a library target called &lt;name&gt; to be built from the source files listed in the command invocation.  The &lt;name&gt; corresponds to the logical target name and must be globally unique within a project.  The actual file name of the library built is constructed based on conventions of the native platform (such as lib&lt;name&gt;.a or &lt;name&gt;.lib).
</para><para>STATIC, SHARED, or MODULE may be given to specify the type of library to be created.  STATIC libraries are archives of object files for use when linking other targets.  SHARED libraries are linked dynamically and loaded at runtime.  MODULE libraries are plugins that are not linked into other targets but may be loaded dynamically at runtime using dlopen-like functionality.  If no type is given explicitly the type is STATIC or SHARED based on whether the current value of the variable BUILD_SHARED_LIBS is true.
</para><para>By default the library file will be created in the build tree directory corresponding to the source tree directory in which the command was invoked.  See documentation of the ARCHIVE_OUTPUT_DIRECTORY, LIBRARY_OUTPUT_DIRECTORY, and RUNTIME_OUTPUT_DIRECTORY target properties to change this location.  See documentation of the OUTPUT_NAME target property to change the &lt;name&gt; part of the final file name.  
</para><para>If EXCLUDE_FROM_ALL is given the corresponding property will be set on the created target.  See documentation of the EXCLUDE_FROM_ALL target property for details.
</para><para>The add_library command can also create IMPORTED library targets using this signature:
</para><literallayout>  add_library(&lt;name&gt; &lt;SHARED|STATIC|MODULE|UNKNOWN&gt; IMPORTED
              [GLOBAL])
</literallayout>
    <para>An IMPORTED library target references a library file located outside the project.  No rules are generated to build it.  The target name has scope in the directory in which it is created and below, but the GLOBAL option extends visibility.  It may be referenced like any target built within the project.  IMPORTED libraries are useful for convenient reference from commands like target_link_libraries.  Details about the imported library are specified by setting properties whose names begin in "IMPORTED_".  The most important such property is IMPORTED_LOCATION (and its per-configuration version IMPORTED_LOCATION_&lt;CONFIG&gt;) which specifies the location of the main library file on disk.  See documentation of the IMPORTED_* properties for more information.
</para><para>The signature
</para><literallayout>  add_library(&lt;name&gt; OBJECT &lt;src&gt;...)
</literallayout>
    <para>creates a special "object library" target.  An object library compiles source files but does not archive or link their object files into a library.  Instead other targets created by add_library or add_executable may reference the objects using an expression of the form $&lt;TARGET_OBJECTS:objlib&gt; as a source, where "objlib" is the object library name.  For example:
</para><literallayout>  add_library(... $&lt;TARGET_OBJECTS:objlib&gt; ...)
  add_executable(... $&lt;TARGET_OBJECTS:objlib&gt; ...)
</literallayout>
    <para>will include objlib's object files in a library and an executable along with those compiled from their own sources.  Object libraries may contain only sources (and headers) that compile to object files.  They may contain custom commands generating such sources, but not PRE_BUILD, PRE_LINK, or POST_BUILD commands.  Object libraries cannot be imported, exported, installed, or linked.</para>
    <para id="command_add_subdirectory"><sect2><title>add_subdirectory</title></sect2> Add a subdirectory to the build.</para>

    <literallayout>  add_subdirectory(source_dir [binary_dir] 
                   [EXCLUDE_FROM_ALL])
</literallayout>
    <para>Add a subdirectory to the build. The source_dir specifies the directory in which the source CmakeLists.txt and code files are located. If it is a relative path it will be evaluated with respect to the current directory (the typical usage), but it may also be an absolute path. The binary_dir specifies the directory in which to place the output files. If it is a relative path it will be evaluated with respect to the current output directory, but it may also be an absolute path. If binary_dir is not specified, the value of source_dir, before expanding any relative path, will be used (the typical usage). The CMakeLists.txt file in the specified source directory will be processed immediately by CMake before processing in the current input file continues beyond this command.
</para><para>If the EXCLUDE_FROM_ALL argument is provided then targets in the subdirectory will not be included in the ALL target of the parent directory by default, and will be excluded from IDE project files.  Users must explicitly build targets in the subdirectory.  This is meant for use when the subdirectory contains a separate part of the project that is useful but not necessary, such as a set of examples.  Typically the subdirectory should contain its own project() command invocation so that a full build system will be generated in the subdirectory (such as a VS IDE solution file).  Note that inter-target dependencies supercede this exclusion.  If a target built by the parent project depends on a target in the subdirectory, the dependee target will be included in the parent project build system to satisfy the dependency.</para>
    <para id="command_add_test"><sect2><title>add_test</title></sect2> Add a test to the project with the specified arguments.</para>

    <literallayout>  add_test(testname Exename arg1 arg2 ... )
</literallayout>
    <para>If the ENABLE_TESTING command has been run, this command adds a test target to the current directory. If ENABLE_TESTING has not been run, this command does nothing.  The tests are run by the testing subsystem by executing Exename with the specified arguments.  Exename can be either an executable built by this project or an arbitrary executable on the system (like tclsh).  The test will be run with the current working directory set to the CMakeList.txt files corresponding directory in the binary tree.
</para><para>
</para><literallayout>  add_test(NAME &lt;name&gt; [CONFIGURATIONS [Debug|Release|...]]
           [WORKING_DIRECTORY dir]
           COMMAND &lt;command&gt; [arg1 [arg2 ...]])
</literallayout>
    <para>If COMMAND specifies an executable target (created by add_executable) it will automatically be replaced by the location of the executable created at build time.  If a CONFIGURATIONS option is given then the test will be executed only when testing under one of the named configurations.  If a WORKING_DIRECTORY option is given then the test will be executed in the given directory.
</para><para>Arguments after COMMAND may use "generator expressions" with the syntax "$&lt;...&gt;".  Generator expressions are evaluted during build system generation to produce information specific to each build configuration.  Valid expressions are:
</para><literallayout>  $&lt;CONFIGURATION&gt;          = configuration name
  $&lt;TARGET_FILE:tgt&gt;        = main file (.exe, .so.1.2, .a)
  $&lt;TARGET_LINKER_FILE:tgt&gt; = file used to link (.a, .lib, .so)
  $&lt;TARGET_SONAME_FILE:tgt&gt; = file with soname (.so.3)
</literallayout>
    <para>where "tgt" is the name of a target.  Target file expressions produce a full path, but _DIR and _NAME versions can produce the directory and file name components:
</para><literallayout>  $&lt;TARGET_FILE_DIR:tgt&gt;/$&lt;TARGET_FILE_NAME:tgt&gt;
  $&lt;TARGET_LINKER_FILE_DIR:tgt&gt;/$&lt;TARGET_LINKER_FILE_NAME:tgt&gt;
  $&lt;TARGET_SONAME_FILE_DIR:tgt&gt;/$&lt;TARGET_SONAME_FILE_NAME:tgt&gt;
</literallayout>
    <para>Example usage:
</para><literallayout>  add_test(NAME mytest
           COMMAND testDriver --config $&lt;CONFIGURATION&gt;
                              --exe $&lt;TARGET_FILE:myexe&gt;)
</literallayout>
    <para>This creates a test "mytest" whose command runs a testDriver tool passing the configuration name and the full path to the executable file produced by target "myexe".</para>
    <para id="command_aux_source_directory"><sect2><title>aux_source_directory</title></sect2> Find all source files in a directory.</para>

    <literallayout>  aux_source_directory(&lt;dir&gt; &lt;variable&gt;)
</literallayout>
    <para>Collects the names of all the source files in the specified directory and stores the list in the &lt;variable&gt; provided.  This command is intended to be used by projects that use explicit template instantiation.  Template instantiation files can be stored in a "Templates" subdirectory and collected automatically using this command to avoid manually listing all instantiations.
</para><para>It is tempting to use this command to avoid writing the list of source files for a library or executable target.  While this seems to work, there is no way for CMake to generate a build system that knows when a new source file has been added.  Normally the generated build system knows when it needs to rerun CMake because the CMakeLists.txt file is modified to add a new source.  When the source is just added to the directory without modifying this file, one would have to manually rerun CMake to generate a build system incorporating the new file.</para>
    <para id="command_break"><sect2><title>break</title></sect2> Break from an enclosing foreach or while loop.</para>

    <literallayout>  break()
</literallayout>
    <para>Breaks from an enclosing foreach loop or while loop</para>
    <para id="command_build_command"><sect2><title>build_command</title></sect2> Get the command line to build this project.</para>

    <literallayout>  build_command(&lt;variable&gt;
                [CONFIGURATION &lt;config&gt;]
                [PROJECT_NAME &lt;projname&gt;]
                [TARGET &lt;target&gt;])
</literallayout>
    <para>Sets the given &lt;variable&gt; to a string containing the command line for building one configuration of a target in a project using the build tool appropriate for the current CMAKE_GENERATOR.
</para><para>If CONFIGURATION is omitted, CMake chooses a reasonable default value  for multi-configuration generators.  CONFIGURATION is ignored for single-configuration generators.
</para><para>If PROJECT_NAME is omitted, the resulting command line will build the top level PROJECT in the current build tree.
</para><para>If TARGET is omitted, the resulting command line will build everything, effectively using build target 'all' or 'ALL_BUILD'.
</para><literallayout>  build_command(&lt;cachevariable&gt; &lt;makecommand&gt;)
</literallayout>
    <para>This second signature is deprecated, but still available for backwards compatibility. Use the first signature instead.
</para><para>Sets the given &lt;cachevariable&gt; to a string containing the command to build this project from the root of the build tree using the build tool given by &lt;makecommand&gt;.  &lt;makecommand&gt; should be the full path to msdev, devenv, nmake, make or one of the end user build tools.</para>
    <para id="command_cmake_minimum_required"><sect2><title>cmake_minimum_required</title></sect2> Set the minimum required version of cmake for a project.</para>

    <literallayout>  cmake_minimum_required(VERSION major[.minor[.patch[.tweak]]]
                         [FATAL_ERROR])
</literallayout>
    <para>If the current version of CMake is lower than that required it will stop processing the project and report an error.  When a version higher than 2.4 is specified the command implicitly invokes
</para><literallayout>  cmake_policy(VERSION major[.minor[.patch[.tweak]]])
</literallayout>
    <para>which sets the cmake policy version level to the version specified.  When version 2.4 or lower is given the command implicitly invokes
</para><literallayout>  cmake_policy(VERSION 2.4)
</literallayout>
    <para>which enables compatibility features for CMake 2.4 and lower.
</para><para>The FATAL_ERROR option is accepted but ignored by CMake 2.6 and higher.  It should be specified so CMake versions 2.4 and lower fail with an error instead of just a warning.</para>
    <para id="command_cmake_policy"><sect2><title>cmake_policy</title></sect2> Manage CMake Policy settings.</para>

    <para>As CMake evolves it is sometimes necessary to change existing behavior in order to fix bugs or improve implementations of existing features.  The CMake Policy mechanism is designed to help keep existing projects building as new versions of CMake introduce changes in behavior.  Each new policy (behavioral change) is given an identifier of the form "CMP&lt;NNNN&gt;" where "&lt;NNNN&gt;" is an integer index.  Documentation associated with each policy describes the OLD and NEW behavior and the reason the policy was introduced.  Projects may set each policy to select the desired behavior.  When CMake needs to know which behavior to use it checks for a setting specified by the project.  If no setting is available the OLD behavior is assumed and a warning is produced requesting that the policy be set.
</para><para>The cmake_policy command is used to set policies to OLD or NEW behavior.  While setting policies individually is supported, we encourage projects to set policies based on CMake versions.
</para><literallayout>  cmake_policy(VERSION major.minor[.patch[.tweak]])
</literallayout>
    <para>Specify that the current CMake list file is written for the given version of CMake.  All policies introduced in the specified version or earlier will be set to use NEW behavior.  All policies introduced after the specified version will be unset (unless variable CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt; sets a default).  This effectively requests behavior preferred as of a given CMake version and tells newer CMake versions to warn about their new policies.  The policy version specified must be at least 2.4 or the command will report an error.  In order to get compatibility features supporting versions earlier than 2.4 see documentation of policy CMP0001.
</para><literallayout>  cmake_policy(SET CMP&lt;NNNN&gt; NEW)
  cmake_policy(SET CMP&lt;NNNN&gt; OLD)
</literallayout>
    <para>Tell CMake to use the OLD or NEW behavior for a given policy.  Projects depending on the old behavior of a given policy may silence a policy warning by setting the policy state to OLD.  Alternatively one may fix the project to work with the new behavior and set the policy state to NEW.
</para><literallayout>  cmake_policy(GET CMP&lt;NNNN&gt; &lt;variable&gt;)
</literallayout>
    <para>Check whether a given policy is set to OLD or NEW behavior.  The output variable value will be "OLD" or "NEW" if the policy is set, and empty otherwise.
</para><para>CMake keeps policy settings on a stack, so changes made by the cmake_policy command affect only the top of the stack.  A new entry on the policy stack is managed automatically for each subdirectory to protect its parents and siblings.  CMake also manages a new entry for scripts loaded by include() and find_package() commands except when invoked with the NO_POLICY_SCOPE option (see also policy CMP0011).  The cmake_policy command provides an interface to manage custom entries on the policy stack:
</para><literallayout>  cmake_policy(PUSH)
  cmake_policy(POP)
</literallayout>
    <para>Each PUSH must have a matching POP to erase any changes.  This is useful to make temporary changes to policy settings.
</para><para>Functions and macros record policy settings when they are created and use the pre-record policies when they are invoked.  If the function or macro implementation sets policies, the changes automatically propagate up through callers until they reach the closest nested policy stack entry.</para>
    <para id="command_configure_file"><sect2><title>configure_file</title></sect2> Copy a file to another location and modify its contents.</para>

    <literallayout>  configure_file(&lt;input&gt; &lt;output&gt;
                 [COPYONLY] [ESCAPE_QUOTES] [@ONLY] 
                 [NEWLINE_STYLE [UNIX|DOS|WIN32|LF|CRLF] ])
</literallayout>
    <para>Copies a file &lt;input&gt; to file &lt;output&gt; and substitutes variable values referenced in the file content.  If &lt;input&gt; is a relative path it is evaluated with respect to the current source directory.  The &lt;input&gt; must be a file, not a directory.  If &lt;output&gt; is a relative path it is evaluated with respect to the current binary directory.  If &lt;output&gt; names an existing directory the input file is placed in that directory with its original name.  
</para><para>This command replaces any variables in the input file referenced as ${VAR} or @VAR@ with their values as determined by CMake.  If a variable is not defined, it will be replaced with nothing.  If COPYONLY is specified, then no variable expansion will take place.  If ESCAPE_QUOTES is specified then any substituted quotes will be C-style escaped.  The file will be configured with the current values of CMake variables. If @ONLY is specified, only variables of the form @VAR@ will be replaces and ${VAR} will be ignored.  This is useful for configuring scripts that use ${VAR}. Any occurrences of #cmakedefine VAR will be replaced with either #define VAR or /* #undef VAR */ depending on the setting of VAR in CMake. Any occurrences of #cmakedefine01 VAR will be replaced with either #define VAR 1 or #define VAR 0 depending on whether VAR evaluates to TRUE or FALSE in CMake.
</para><para>With NEWLINE_STYLE the line ending could be adjusted: 
</para><literallayout>    'UNIX' or 'LF' for \n, 'DOS', 'WIN32' or 'CRLF' for \r\n.
</literallayout>
    <para>COPYONLY must not be used with NEWLINE_STYLE.
</para>
    <para id="command_create_test_sourcelist"><sect2><title>create_test_sourcelist</title></sect2> Create a test driver and source list for building test programs.</para>

    <literallayout>  create_test_sourcelist(sourceListName driverName
                         test1 test2 test3
                         EXTRA_INCLUDE include.h
                         FUNCTION function)
</literallayout>
    <para>A test driver is a program that links together many small tests into a single executable.  This is useful when building static executables with large libraries to shrink the total required size.  The list of source files needed to build the test driver will be in sourceListName.  DriverName is the name of the test driver program.  The rest of the arguments consist of a list of test source files, can be semicolon separated.  Each test source file should have a function in it that is the same name as the file with no extension (foo.cxx should have int foo(int, char*[]);) DriverName will be able to call each of the tests by name on the command line. If EXTRA_INCLUDE is specified, then the next argument is included into the generated file. If FUNCTION is specified, then the next argument is taken as a function name that is passed a pointer to ac and av.  This can be used to add extra command line processing to each test. The cmake variable CMAKE_TESTDRIVER_BEFORE_TESTMAIN can be set to have code that will be placed directly before calling the test main function.   CMAKE_TESTDRIVER_AFTER_TESTMAIN can be set to have code that will be placed directly after the call to the test main function.</para>
    <para id="command_define_property"><sect2><title>define_property</title></sect2> Define and document custom properties.</para>

    <literallayout>  define_property(&lt;GLOBAL | DIRECTORY | TARGET | SOURCE |
                   TEST | VARIABLE | CACHED_VARIABLE&gt;
                   PROPERTY &lt;name&gt; [INHERITED]
                   BRIEF_DOCS &lt;brief-doc&gt; [docs...]
                   FULL_DOCS &lt;full-doc&gt; [docs...])
</literallayout>
    <para>Define one property in a scope for use with the set_property and get_property commands.  This is primarily useful to associate documentation with property names that may be retrieved with the get_property command.  The first argument determines the kind of scope in which the property should be used.  It must be one of the following:
</para><literallayout>  GLOBAL    = associated with the global namespace
  DIRECTORY = associated with one directory
  TARGET    = associated with one target
  SOURCE    = associated with one source file
  TEST      = associated with a test named with add_test
  VARIABLE  = documents a CMake language variable
  CACHED_VARIABLE = documents a CMake cache variable
</literallayout>
    <para>Note that unlike set_property and get_property no actual scope needs to be given; only the kind of scope is important.
</para><para>The required PROPERTY option is immediately followed by the name of the property being defined.
</para><para>If the INHERITED option then the get_property command will chain up to the next higher scope when the requested property is not set in the scope given to the command.  DIRECTORY scope chains to GLOBAL.  TARGET, SOURCE, and TEST chain to DIRECTORY.
</para><para>The BRIEF_DOCS and FULL_DOCS options are followed by strings to be associated with the property as its brief and full documentation.  Corresponding options to the get_property command will retrieve the documentation.</para>
    <para id="command_else"><sect2><title>else</title></sect2> Starts the else portion of an if block.</para>

    <literallayout>  else(expression)
</literallayout>
    <para>See the if command.</para>
    <para id="command_elseif"><sect2><title>elseif</title></sect2> Starts the elseif portion of an if block.</para>

    <literallayout>  elseif(expression)
</literallayout>
    <para>See the if command.</para>
    <para id="command_enable_language"><sect2><title>enable_language</title></sect2> Enable a language (CXX/C/Fortran/etc)</para>

    <literallayout>  enable_language(languageName [OPTIONAL] )
</literallayout>
    <para>This command enables support for the named language in CMake. This is the same as the project command but does not create any of the extra variables that are created by the project command. Example languages are CXX, C, Fortran. If OPTIONAL is used, use the CMAKE_&lt;languageName&gt;_COMPILER_WORKS variable to check whether the language has been enabled successfully.</para>
    <para id="command_enable_testing"><sect2><title>enable_testing</title></sect2> Enable testing for current directory and below.</para>

    <literallayout>  enable_testing()
</literallayout>
    <para>Enables testing for this directory and below.  See also the add_test command.  Note that ctest expects to find a test file in the build directory root.  Therefore, this command should be in the source directory root.</para>
    <para id="command_endforeach"><sect2><title>endforeach</title></sect2> Ends a list of commands in a FOREACH block.</para>

    <literallayout>  endforeach(expression)
</literallayout>
    <para>See the FOREACH command.</para>
    <para id="command_endfunction"><sect2><title>endfunction</title></sect2> Ends a list of commands in a function block.</para>

    <literallayout>  endfunction(expression)
</literallayout>
    <para>See the function command.</para>
    <para id="command_endif"><sect2><title>endif</title></sect2> Ends a list of commands in an if block.</para>

    <literallayout>  endif(expression)
</literallayout>
    <para>See the if command.</para>
    <para id="command_endmacro"><sect2><title>endmacro</title></sect2> Ends a list of commands in a macro block.</para>

    <literallayout>  endmacro(expression)
</literallayout>
    <para>See the macro command.</para>
    <para id="command_endwhile"><sect2><title>endwhile</title></sect2> Ends a list of commands in a while block.</para>

    <literallayout>  endwhile(expression)
</literallayout>
    <para>See the while command.</para>
    <para id="command_execute_process"><sect2><title>execute_process</title></sect2> Execute one or more child processes.</para>

    <literallayout>  execute_process(COMMAND &lt;cmd1&gt; [args1...]]
                  [COMMAND &lt;cmd2&gt; [args2...] [...]]
                  [WORKING_DIRECTORY &lt;directory&gt;]
                  [TIMEOUT &lt;seconds&gt;]
                  [RESULT_VARIABLE &lt;variable&gt;]
                  [OUTPUT_VARIABLE &lt;variable&gt;]
                  [ERROR_VARIABLE &lt;variable&gt;]
                  [INPUT_FILE &lt;file&gt;]
                  [OUTPUT_FILE &lt;file&gt;]
                  [ERROR_FILE &lt;file&gt;]
                  [OUTPUT_QUIET]
                  [ERROR_QUIET]
                  [OUTPUT_STRIP_TRAILING_WHITESPACE]
                  [ERROR_STRIP_TRAILING_WHITESPACE])
</literallayout>
    <para>Runs the given sequence of one or more commands with the standard output of each process piped to the standard input of the next.  A single standard error pipe is used for all processes.  If WORKING_DIRECTORY is given the named directory will be set as the current working directory of the child processes.  If TIMEOUT is given the child processes will be terminated if they do not finish in the specified number of seconds (fractions are allowed).  If RESULT_VARIABLE is given the variable will be set to contain the result of running the processes.  This will be an integer return code from the last child or a string describing an error condition.  If OUTPUT_VARIABLE or ERROR_VARIABLE are given the variable named will be set with the contents of the standard output and standard error pipes respectively.  If the same variable is named for both pipes their output will be merged in the order produced.  If INPUT_FILE, OUTPUT_FILE, or ERROR_FILE is given the file named will be attached to the standard input of the first process, standard output of the last process, or standard error of all processes respectively.  If OUTPUT_QUIET or ERROR_QUIET is given then the standard output or standard error results will be quietly ignored.  If more than one OUTPUT_* or ERROR_* option is given for the same pipe the precedence is not specified.  If no OUTPUT_* or ERROR_* options are given the output will be shared with the corresponding pipes of the CMake process itself.
</para><para>The execute_process command is a newer more powerful version of exec_program, but the old command has been kept for compatibility.</para>
    <para id="command_export"><sect2><title>export</title></sect2> Export targets from the build tree for use by outside projects.</para>

    <literallayout>  export(TARGETS [target1 [target2 [...]]] [NAMESPACE &lt;namespace&gt;]
         [APPEND] FILE &lt;filename&gt;)
</literallayout>
    <para>Create a file &lt;filename&gt; that may be included by outside projects to import targets from the current project's build tree.  This is useful during cross-compiling to build utility executables that can run on the host platform in one project and then import them into another project being compiled for the target platform.  If the NAMESPACE option is given the &lt;namespace&gt; string will be prepended to all target names written to the file.  If the APPEND option is given the generated code will be appended to the file instead of overwriting it.  If a library target is included in the export but a target to which it links is not included the behavior is unspecified.
</para><para>The file created by this command is specific to the build tree and should never be installed.  See the install(EXPORT) command to export targets from an installation tree.
</para><para>Do not set properties that affect the location of a target after passing it to this command.  These include properties whose names match "(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_&lt;CONFIG&gt;)?" or "(IMPLIB_)?(PREFIX|SUFFIX)".  Failure to follow this rule is not diagnosed and leaves the location of the target undefined.
</para><literallayout>  export(PACKAGE &lt;name&gt;)
</literallayout>
    <para>Store the current build directory in the CMake user package registry for package &lt;name&gt;.  The find_package command may consider the directory while searching for package &lt;name&gt;.  This helps dependent projects find and use a package from the current project's build tree without help from the user.  Note that the entry in the package registry that this command creates works only in conjunction with a package configuration file (&lt;name&gt;Config.cmake) that works with the build tree.</para>
    <para id="command_file"><sect2><title>file</title></sect2> File manipulation command.</para>

    <literallayout>  file(WRITE filename "message to write"... )
  file(APPEND filename "message to write"... )
  file(READ filename variable [LIMIT numBytes] [OFFSET offset] [HEX])
  file(&lt;MD5|SHA1|SHA224|SHA256|SHA384|SHA512&gt; filename variable)
  file(STRINGS filename variable [LIMIT_COUNT num]
       [LIMIT_INPUT numBytes] [LIMIT_OUTPUT numBytes]
       [LENGTH_MINIMUM numBytes] [LENGTH_MAXIMUM numBytes]
       [NEWLINE_CONSUME] [REGEX regex]
       [NO_HEX_CONVERSION])
  file(GLOB variable [RELATIVE path] [globbing expressions]...)
  file(GLOB_RECURSE variable [RELATIVE path] 
       [FOLLOW_SYMLINKS] [globbing expressions]...)
  file(RENAME &lt;oldname&gt; &lt;newname&gt;)
  file(REMOVE [file1 ...])
  file(REMOVE_RECURSE [file1 ...])
  file(MAKE_DIRECTORY [directory1 directory2 ...])
  file(RELATIVE_PATH variable directory file)
  file(TO_CMAKE_PATH path result)
  file(TO_NATIVE_PATH path result)
  file(DOWNLOAD url file [INACTIVITY_TIMEOUT timeout]
       [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS]
       [EXPECTED_MD5 sum])
  file(UPLOAD filename url [INACTIVITY_TIMEOUT timeout]
       [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS])
</literallayout>
    <para>WRITE will write a message into a file called 'filename'. It overwrites the file if it already exists, and creates the file if it does not exist.
</para><para>APPEND will write a message into a file same as WRITE, except it will append it to the end of the file
</para><para>READ will read the content of a file and store it into the variable. It will start at the given offset and read up to numBytes. If the argument HEX is given, the binary data will be converted to hexadecimal representation and this will be stored in the variable.
</para><para>MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 will compute a cryptographic hash of the content of a file.
</para><para>STRINGS will parse a list of ASCII strings from a file and store it in a variable. Binary data in the file are ignored. Carriage return (CR) characters are ignored. It works also for Intel Hex and Motorola S-record files, which are automatically converted to binary format when reading them. Disable this using NO_HEX_CONVERSION.
</para><para>LIMIT_COUNT sets the maximum number of strings to return. LIMIT_INPUT sets the maximum number of bytes to read from the input file. LIMIT_OUTPUT sets the maximum number of bytes to store in the output variable. LENGTH_MINIMUM sets the minimum length of a string to return. Shorter strings are ignored. LENGTH_MAXIMUM sets the maximum length of a string to return.  Longer strings are split into strings no longer than the maximum length. NEWLINE_CONSUME allows newlines to be included in strings instead of terminating them.
</para><para>REGEX specifies a regular expression that a string must match to be returned. Typical usage 
</para><literallayout>  file(STRINGS myfile.txt myfile)
</literallayout>
    <para>stores a list in the variable "myfile" in which each item is a line from the input file.
</para><para>GLOB will generate a list of all files that match the globbing expressions and store it into the variable. Globbing expressions are similar to regular expressions, but much simpler. If RELATIVE flag is specified for an expression, the results will be returned as a relative path to the given path.  (We do not recommend using GLOB to collect a list of source files from your source tree.  If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate.)
</para><para>Examples of globbing expressions include:
</para><literallayout>   *.cxx      - match all files with extension cxx
   *.vt?      - match all files with extension vta,...,vtz
   f[3-5].txt - match files f3.txt, f4.txt, f5.txt
</literallayout>
    <para>GLOB_RECURSE will generate a list similar to the regular GLOB, except it will traverse all the subdirectories of the matched directory and match the files. Subdirectories that are symlinks are only traversed if FOLLOW_SYMLINKS is given or cmake policy CMP0009 is not set to NEW. See cmake --help-policy CMP0009 for more information.
</para><para>Examples of recursive globbing include:
</para><literallayout>   /dir/*.py  - match all python files in /dir and subdirectories
</literallayout>
    <para>MAKE_DIRECTORY will create the given directories, also if their parent directories don't exist yet
</para><para>RENAME moves a file or directory within a filesystem, replacing the destination atomically.
</para><para>REMOVE will remove the given files, also in subdirectories
</para><para>REMOVE_RECURSE will remove the given files and directories, also non-empty directories
</para><para>RELATIVE_PATH will determine relative path from directory to the given file.
</para><para>TO_CMAKE_PATH will convert path into a cmake style path with unix /.  The input can be a single path or a system path like "$ENV{PATH}".  Note the double quotes around the ENV call TO_CMAKE_PATH only takes  one argument. This command will also convert the native list delimiters for a list of paths like the PATH environment variable.
</para><para>TO_NATIVE_PATH works just like TO_CMAKE_PATH, but will convert from  a cmake style path into the native path style \ for windows and / for UNIX.
</para><para>DOWNLOAD will download the given URL to the given file. If LOG var is specified a log of the download will be put in var. If STATUS var is specified the status of the operation will be put in var. The status is returned in a list of length 2. The first element is the numeric return value for the operation, and the second element is a string value for the error. A 0 numeric error means no error in the operation. If TIMEOUT time is specified, the operation will timeout after time seconds, time should be specified as an integer. The INACTIVITY_TIMEOUT specifies an integer number of seconds of inactivity after which the operation should terminate. If EXPECTED_MD5 sum is specified, the operation will verify that the downloaded file's actual md5 sum matches the expected value. If it does not match, the operation fails with an error. If SHOW_PROGRESS is specified, progress information will be printed as status messages until the operation is complete.
</para><para>UPLOAD will upload the given file to the given URL. If LOG var is specified a log of the upload will be put in var. If STATUS var is specified the status of the operation will be put in var. The status is returned in a list of length 2. The first element is the numeric return value for the operation, and the second element is a string value for the error. A 0 numeric error means no error in the operation. If TIMEOUT time is specified, the operation will timeout after time seconds, time should be specified as an integer. The INACTIVITY_TIMEOUT specifies an integer number of seconds of inactivity after which the operation should terminate. If SHOW_PROGRESS is specified, progress information will be printed as status messages until the operation is complete.
</para><para>The file() command also provides COPY and INSTALL signatures:
</para><literallayout>  file(&lt;COPY|INSTALL&gt; files... DESTINATION &lt;dir&gt;
       [FILE_PERMISSIONS permissions...]
       [DIRECTORY_PERMISSIONS permissions...]
       [NO_SOURCE_PERMISSIONS] [USE_SOURCE_PERMISSIONS]
       [FILES_MATCHING]
       [[PATTERN &lt;pattern&gt; | REGEX &lt;regex&gt;]
        [EXCLUDE] [PERMISSIONS permissions...]] [...])
</literallayout>
    <para>The COPY signature copies files, directories, and symlinks to a destination folder.  Relative input paths are evaluated with respect to the current source directory, and a relative destination is evaluated with respect to the current build directory.  Copying preserves input file timestamps, and optimizes out a file if it exists at the destination with the same timestamp.  Copying preserves input permissions unless explicit permissions or NO_SOURCE_PERMISSIONS are given (default is USE_SOURCE_PERMISSIONS).  See the install(DIRECTORY) command for documentation of permissions, PATTERN, REGEX, and EXCLUDE options.  
</para><para>The INSTALL signature differs slightly from COPY: it prints status messages, and NO_SOURCE_PERMISSIONS is default.  Installation scripts generated by the install() command use this signature (with some undocumented options for internal use).</para>
    <para id="command_find_file"><sect2><title>find_file</title></sect2> Find the full path to a file.</para>

    <literallayout>   find_file(&lt;VAR&gt; name1 [path1 path2 ...])
</literallayout>
    <para>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_file(&lt;VAR&gt; name1 [PATHS path1 path2 ...])
</para><literallayout>   find_file(
             &lt;VAR&gt;
             name | NAMES name1 [name2 ...]
             [HINTS path1 [path2 ... ENV var]]
             [PATHS path1 [path2 ... ENV var]]
             [PATH_SUFFIXES suffix1 [suffix2 ...]]
             [DOC "cache documentation string"]
             [NO_DEFAULT_PATH]
             [NO_CMAKE_ENVIRONMENT_PATH]
             [NO_CMAKE_PATH]
             [NO_SYSTEM_ENVIRONMENT_PATH]
             [NO_CMAKE_SYSTEM_PATH]
             [CMAKE_FIND_ROOT_PATH_BOTH |
              ONLY_CMAKE_FIND_ROOT_PATH |
              NO_CMAKE_FIND_ROOT_PATH]
            )
</literallayout>
    <para>This command is used to find a full path to named file. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the full path to a file is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_file is invoked with the same variable.  The name of the full path to a file that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.
</para><para>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:
</para><para>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_INCLUDE_PATH
   CMAKE_FRAMEWORK_PATH
</literallayout>
    <para>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_INCLUDE_PATH
   CMAKE_FRAMEWORK_PATH
</literallayout>
    <para>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.
</para><para>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.
</para><literallayout>   PATH
   INCLUDE
</literallayout>
    <para>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH
   CMAKE_SYSTEM_INCLUDE_PATH
   CMAKE_SYSTEM_FRAMEWORK_PATH
</literallayout>
    <para>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.
</para><para>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find frameworks before standard
              libraries or headers. This is the default on Darwin.
   "LAST"   - Try to find frameworks after standard
              libraries or headers.
   "ONLY"   - Only try to find frameworks.
   "NEVER" - Never try to find frameworks.
</literallayout>
    <para>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find application bundles before standard
              programs. This is the default on Darwin.
   "LAST"   - Try to find application bundles after standard
              programs.
   "ONLY"   - Only try to find application bundles.
   "NEVER" - Never try to find application bundles.
</literallayout>
    <para>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_INCLUDE.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.
</para><para>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:
</para><literallayout>   find_file(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)
   find_file(&lt;VAR&gt; NAMES name)
</literallayout>
    <para>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.</para>
    <para id="command_find_library"><sect2><title>find_library</title></sect2> Find a library.</para>

    <literallayout>   find_library(&lt;VAR&gt; name1 [path1 path2 ...])
</literallayout>
    <para>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_library(&lt;VAR&gt; name1 [PATHS path1 path2 ...])
</para><literallayout>   find_library(
             &lt;VAR&gt;
             name | NAMES name1 [name2 ...]
             [HINTS path1 [path2 ... ENV var]]
             [PATHS path1 [path2 ... ENV var]]
             [PATH_SUFFIXES suffix1 [suffix2 ...]]
             [DOC "cache documentation string"]
             [NO_DEFAULT_PATH]
             [NO_CMAKE_ENVIRONMENT_PATH]
             [NO_CMAKE_PATH]
             [NO_SYSTEM_ENVIRONMENT_PATH]
             [NO_CMAKE_SYSTEM_PATH]
             [CMAKE_FIND_ROOT_PATH_BOTH |
              ONLY_CMAKE_FIND_ROOT_PATH |
              NO_CMAKE_FIND_ROOT_PATH]
            )
</literallayout>
    <para>This command is used to find a library. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the library is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_library is invoked with the same variable.  The name of the library that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.
</para><para>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:
</para><para>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/lib/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and
   &lt;prefix&gt;/lib for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_LIBRARY_PATH
   CMAKE_FRAMEWORK_PATH
</literallayout>
    <para>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/lib/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and
   &lt;prefix&gt;/lib for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_LIBRARY_PATH
   CMAKE_FRAMEWORK_PATH
</literallayout>
    <para>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.
</para><para>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.
</para><literallayout>   PATH
   LIB
</literallayout>
    <para>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/lib/&lt;arch&gt; if CMAKE_LIBRARY_ARCHITECTURE is set, and
   &lt;prefix&gt;/lib for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH
   CMAKE_SYSTEM_LIBRARY_PATH
   CMAKE_SYSTEM_FRAMEWORK_PATH
</literallayout>
    <para>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.
</para><para>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find frameworks before standard
              libraries or headers. This is the default on Darwin.
   "LAST"   - Try to find frameworks after standard
              libraries or headers.
   "ONLY"   - Only try to find frameworks.
   "NEVER" - Never try to find frameworks.
</literallayout>
    <para>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find application bundles before standard
              programs. This is the default on Darwin.
   "LAST"   - Try to find application bundles after standard
              programs.
   "ONLY"   - Only try to find application bundles.
   "NEVER" - Never try to find application bundles.
</literallayout>
    <para>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_LIBRARY.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.
</para><para>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:
</para><literallayout>   find_library(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)
   find_library(&lt;VAR&gt; NAMES name)
</literallayout>
    <para>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.
</para><para>If the library found is a framework, then VAR will be set to the full path to the framework &lt;fullPath&gt;/A.framework. When a full path to a framework is used as a library, CMake will use a -framework A, and a -F&lt;fullPath&gt; to link the framework to the target.
</para><para>If the global property FIND_LIBRARY_USE_LIB64_PATHS is set all search paths will be tested as normal, with "64/" appended, and with all matches of "lib/" replaced with "lib64/". This property is automatically set for the platforms that are known to need it if at least one of the languages supported by the PROJECT command is enabled.</para>
    <para id="command_find_package"><sect2><title>find_package</title></sect2> Load settings for an external project.</para>

    <literallayout>  find_package(&lt;package&gt; [version] [EXACT] [QUIET] [MODULE]
               [[REQUIRED|COMPONENTS] [components...]]
               [OPTIONAL_COMPONENTS components...]
               [NO_POLICY_SCOPE])
</literallayout>
    <para>Finds and loads settings from an external project.  &lt;package&gt;_FOUND will be set to indicate whether the package was found.  When the package is found package-specific information is provided through variables documented by the package itself.  The QUIET option disables messages if the package cannot be found.  The MODULE option disables the second signature documented below.  The REQUIRED option stops processing with an error message if the package cannot be found.
</para><para>A package-specific list of required components may be listed after the COMPONENTS option or directly after the REQUIRED option.  Additional optional components may be listed after OPTIONAL_COMPONENTS.  Available components and their influence on whether a package is considered to be found are defined by the target package.
</para><para>The [version] argument requests a version with which the package found should be compatible (format is major[.minor[.patch[.tweak]]]).  The EXACT option requests that the version be matched exactly.  If no [version] and/or component list is given to a recursive invocation inside a find-module, the corresponding arguments are forwarded automatically from the outer call (including the EXACT flag for [version]).  Version support is currently provided only on a package-by-package basis (details below).
</para><para>User code should generally look for packages using the above simple signature.  The remainder of this command documentation specifies the full command signature and details of the search process.  Project maintainers wishing to provide a package to be found by this command are encouraged to read on.
</para><para>The command has two modes by which it searches for packages: "Module" mode and "Config" mode.  Module mode is available when the command is invoked with the above reduced signature.  CMake searches for a file called "Find&lt;package&gt;.cmake" in the CMAKE_MODULE_PATH followed by the CMake installation.  If the file is found, it is read and processed by CMake.  It is responsible for finding the package, checking the version, and producing any needed messages.  Many find-modules provide limited or no support for versioning; check the module documentation.  If no module is found and the MODULE option is not given the command proceeds to Config mode.
</para><para>The complete Config mode command signature is:
</para><literallayout>  find_package(&lt;package&gt; [version] [EXACT] [QUIET]
               [[REQUIRED|COMPONENTS] [components...]]
               [CONFIG|NO_MODULE]
               [NO_POLICY_SCOPE]
               [NAMES name1 [name2 ...]]
               [CONFIGS config1 [config2 ...]]
               [HINTS path1 [path2 ... ]]
               [PATHS path1 [path2 ... ]]
               [PATH_SUFFIXES suffix1 [suffix2 ...]]
               [NO_DEFAULT_PATH]
               [NO_CMAKE_ENVIRONMENT_PATH]
               [NO_CMAKE_PATH]
               [NO_SYSTEM_ENVIRONMENT_PATH]
               [NO_CMAKE_PACKAGE_REGISTRY]
               [NO_CMAKE_BUILDS_PATH]
               [NO_CMAKE_SYSTEM_PATH]
               [NO_CMAKE_SYSTEM_PACKAGE_REGISTRY]
               [CMAKE_FIND_ROOT_PATH_BOTH |
                ONLY_CMAKE_FIND_ROOT_PATH |
                NO_CMAKE_FIND_ROOT_PATH])
</literallayout>
    <para>The CONFIG option may be used to skip Module mode explicitly and switch to Config mode.  It is synonymous to using NO_MODULE.  Config mode is also implied by use of options not specified in the reduced signature.  
</para><para>Config mode attempts to locate a configuration file provided by the package to be found.  A cache entry called &lt;package&gt;_DIR is created to hold the directory containing the file.  By default the command searches for a package with the name &lt;package&gt;.  If the NAMES option is given the names following it are used instead of &lt;package&gt;.  The command searches for a file called "&lt;name&gt;Config.cmake" or "&lt;lower-case-name&gt;-config.cmake" for each name specified.  A replacement set of possible configuration file names may be given using the CONFIGS option.  The search procedure is specified below.  Once found, the configuration file is read and processed by CMake.  Since the file is provided by the package it already knows the location of package contents.  The full path to the configuration file is stored in the cmake variable &lt;package&gt;_CONFIG.
</para><para>All configuration files which have been considered by CMake while searching for an installation of the package with an appropriate version are stored in the cmake variable &lt;package&gt;_CONSIDERED_CONFIGS, the associated versions in &lt;package&gt;_CONSIDERED_VERSIONS. 
</para><para>If the package configuration file cannot be found CMake will generate an error describing the problem unless the QUIET argument is specified.  If REQUIRED is specified and the package is not found a fatal error is generated and the configure step stops executing.  If &lt;package&gt;_DIR has been set to a directory not containing a configuration file CMake will ignore it and search from scratch.
</para><para>When the [version] argument is given Config mode will only find a version of the package that claims compatibility with the requested version (format is major[.minor[.patch[.tweak]]]).  If the EXACT option is given only a version of the package claiming an exact match of the requested version may be found.  CMake does not establish any convention for the meaning of version numbers.  Package version numbers are checked by "version" files provided by the packages themselves.  For a candidate package configuration file "&lt;config-file&gt;.cmake" the corresponding version file is located next to it and named either "&lt;config-file&gt;-version.cmake" or "&lt;config-file&gt;Version.cmake".  If no such version file is available then the configuration file is assumed to not be compatible with any requested version.  A basic version file containing generic version matching code can be created using the macro write_basic_package_version_file(), see its documentation for more details.  When a version file is found it is loaded to check the requested version number.  The version file is loaded in a nested scope in which the following variables have been defined:
</para><literallayout>  PACKAGE_FIND_NAME          = the &lt;package&gt; name
  PACKAGE_FIND_VERSION       = full requested version string
  PACKAGE_FIND_VERSION_MAJOR = major version if requested, else 0
  PACKAGE_FIND_VERSION_MINOR = minor version if requested, else 0
  PACKAGE_FIND_VERSION_PATCH = patch version if requested, else 0
  PACKAGE_FIND_VERSION_TWEAK = tweak version if requested, else 0
  PACKAGE_FIND_VERSION_COUNT = number of version components, 0 to 4
</literallayout>
    <para>The version file checks whether it satisfies the requested version and sets these variables:
</para><literallayout>  PACKAGE_VERSION            = full provided version string
  PACKAGE_VERSION_EXACT      = true if version is exact match
  PACKAGE_VERSION_COMPATIBLE = true if version is compatible
  PACKAGE_VERSION_UNSUITABLE = true if unsuitable as any version
</literallayout>
    <para>These variables are checked by the find_package command to determine whether the configuration file provides an acceptable version.  They are not available after the find_package call returns.  If the version is acceptable the following variables are set:
</para><literallayout>  &lt;package&gt;_VERSION       = full provided version string
  &lt;package&gt;_VERSION_MAJOR = major version if provided, else 0
  &lt;package&gt;_VERSION_MINOR = minor version if provided, else 0
  &lt;package&gt;_VERSION_PATCH = patch version if provided, else 0
  &lt;package&gt;_VERSION_TWEAK = tweak version if provided, else 0
  &lt;package&gt;_VERSION_COUNT = number of version components, 0 to 4
</literallayout>
    <para>and the corresponding package configuration file is loaded.  When multiple package configuration files are available whose version files claim compatibility with the version requested it is unspecified which one is chosen.  No attempt is made to choose a highest or closest version number.
</para><para>Config mode provides an elaborate interface and search procedure.  Much of the interface is provided for completeness and for use internally by find-modules loaded by Module mode.  Most user code should simply call
</para><literallayout>  find_package(&lt;package&gt; [major[.minor]] [EXACT] [REQUIRED|QUIET])
</literallayout>
    <para>in order to find a package.  Package maintainers providing CMake package configuration files are encouraged to name and install them such that the procedure outlined below will find them without requiring use of additional options.
</para><para>CMake constructs a set of possible installation prefixes for the package.  Under each prefix several directories are searched for a configuration file.  The tables below show the directories searched.  Each entry is meant for installation trees following Windows (W), UNIX (U), or Apple (A) conventions.
</para><literallayout>  &lt;prefix&gt;/                                               (W)
  &lt;prefix&gt;/(cmake|CMake)/                                 (W)
  &lt;prefix&gt;/&lt;name&gt;*/                                       (W)
  &lt;prefix&gt;/&lt;name&gt;*/(cmake|CMake)/                         (W)
  &lt;prefix&gt;/(lib/&lt;arch&gt;|lib|share)/cmake/&lt;name&gt;*/          (U)
  &lt;prefix&gt;/(lib/&lt;arch&gt;|lib|share)/&lt;name&gt;*/                (U)
  &lt;prefix&gt;/(lib/&lt;arch&gt;|lib|share)/&lt;name&gt;*/(cmake|CMake)/  (U)
</literallayout>
    <para>On systems supporting OS X Frameworks and Application Bundles the following directories are searched for frameworks or bundles containing a configuration file:
</para><literallayout>  &lt;prefix&gt;/&lt;name&gt;.framework/Resources/                    (A)
  &lt;prefix&gt;/&lt;name&gt;.framework/Resources/CMake/              (A)
  &lt;prefix&gt;/&lt;name&gt;.framework/Versions/*/Resources/         (A)
  &lt;prefix&gt;/&lt;name&gt;.framework/Versions/*/Resources/CMake/   (A)
  &lt;prefix&gt;/&lt;name&gt;.app/Contents/Resources/                 (A)
  &lt;prefix&gt;/&lt;name&gt;.app/Contents/Resources/CMake/           (A)
</literallayout>
    <para>In all cases the &lt;name&gt; is treated as case-insensitive and corresponds to any of the names specified (&lt;package&gt; or names given by NAMES).  Paths with lib/&lt;arch&gt; are enabled if CMAKE_LIBRARY_ARCHITECTURE is set.  If PATH_SUFFIXES is specified the suffixes are appended to each (W) or (U) directory entry one-by-one.
</para><para>This set of directories is intended to work in cooperation with projects that provide configuration files in their installation trees.  Directories above marked with (W) are intended for installations on Windows where the prefix may point at the top of an application's installation directory.  Those marked with (U) are intended for installations on UNIX platforms where the prefix is shared by multiple packages.  This is merely a convention, so all (W) and (U) directories are still searched on all platforms.  Directories marked with (A) are intended for installations on Apple platforms.  The cmake variables CMAKE_FIND_FRAMEWORK and CMAKE_FIND_APPBUNDLE determine the order of preference as specified below.
</para><para>The set of installation prefixes is constructed using the following steps.  If NO_DEFAULT_PATH is specified all NO_* options are enabled.
</para><para>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.
</para><literallayout>   CMAKE_PREFIX_PATH
   CMAKE_FRAMEWORK_PATH
   CMAKE_APPBUNDLE_PATH
</literallayout>
    <para>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.
</para><literallayout>   &lt;package&gt;_DIR
   CMAKE_PREFIX_PATH
   CMAKE_FRAMEWORK_PATH
   CMAKE_APPBUNDLE_PATH
</literallayout>
    <para>3. Search paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.
</para><para>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is passed.  Path entries ending in "/bin" or "/sbin" are automatically converted to their parent directories.
</para><literallayout>   PATH
</literallayout>
    <para>5. Search project build trees recently configured in a CMake GUI.  This can be skipped if NO_CMAKE_BUILDS_PATH is passed.  It is intended for the case when a user is building multiple dependent projects one after another.
</para><para>6. Search paths stored in the CMake user package registry.  This can be skipped if NO_CMAKE_PACKAGE_REGISTRY is passed.  On Windows a &lt;package&gt; may appear under registry key
</para><literallayout>  HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\&lt;package&gt;
</literallayout>
    <para>as a REG_SZ value, with arbitrary name, that specifies the directory containing the package configuration file.  On UNIX platforms a &lt;package&gt; may appear under the directory
</para><literallayout>  ~/.cmake/packages/&lt;package&gt;
</literallayout>
    <para>as a file, with arbitrary name, whose content specifies the directory containing the package configuration file.  See the export(PACKAGE) command to create user package registry entries for project build trees.
</para><para>7. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.
</para><literallayout>   CMAKE_SYSTEM_PREFIX_PATH
   CMAKE_SYSTEM_FRAMEWORK_PATH
   CMAKE_SYSTEM_APPBUNDLE_PATH
</literallayout>
    <para>8. Search paths stored in the CMake system package registry.  This can be skipped if NO_CMAKE_SYSTEM_PACKAGE_REGISTRY is passed.  On Windows a &lt;package&gt; may appear under registry key
</para><literallayout>  HKEY_LOCAL_MACHINE\Software\Kitware\CMake\Packages\&lt;package&gt;
</literallayout>
    <para>as a REG_SZ value, with arbitrary name, that specifies the directory containing the package configuration file.  There is no system package registry on non-Windows platforms.
</para><para>9. Search paths specified by the PATHS option.  These are typically hard-coded guesses.
</para><para>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find frameworks before standard
              libraries or headers. This is the default on Darwin.
   "LAST"   - Try to find frameworks after standard
              libraries or headers.
   "ONLY"   - Only try to find frameworks.
   "NEVER" - Never try to find frameworks.
</literallayout>
    <para>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find application bundles before standard
              programs. This is the default on Darwin.
   "LAST"   - Try to find application bundles after standard
              programs.
   "ONLY"   - Only try to find application bundles.
   "NEVER" - Never try to find application bundles.
</literallayout>
    <para>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_PACKAGE.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.
</para><para>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:
</para><literallayout>   find_package(&lt;package&gt; PATHS paths... NO_DEFAULT_PATH)
   find_package(&lt;package&gt;)
</literallayout>
    <para>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.
</para><para>Every non-REQUIRED find_package() call can be disabled by setting the variable CMAKE_DISABLE_FIND_PACKAGE_&lt;package&gt; to TRUE. See the documentation for the CMAKE_DISABLE_FIND_PACKAGE_&lt;package&gt; variable for more information.
</para><para>See the cmake_policy() command documentation for discussion of the NO_POLICY_SCOPE option.</para>
    <para id="command_find_path"><sect2><title>find_path</title></sect2> Find the directory containing a file.</para>

    <literallayout>   find_path(&lt;VAR&gt; name1 [path1 path2 ...])
</literallayout>
    <para>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_path(&lt;VAR&gt; name1 [PATHS path1 path2 ...])
</para><literallayout>   find_path(
             &lt;VAR&gt;
             name | NAMES name1 [name2 ...]
             [HINTS path1 [path2 ... ENV var]]
             [PATHS path1 [path2 ... ENV var]]
             [PATH_SUFFIXES suffix1 [suffix2 ...]]
             [DOC "cache documentation string"]
             [NO_DEFAULT_PATH]
             [NO_CMAKE_ENVIRONMENT_PATH]
             [NO_CMAKE_PATH]
             [NO_SYSTEM_ENVIRONMENT_PATH]
             [NO_CMAKE_SYSTEM_PATH]
             [CMAKE_FIND_ROOT_PATH_BOTH |
              ONLY_CMAKE_FIND_ROOT_PATH |
              NO_CMAKE_FIND_ROOT_PATH]
            )
</literallayout>
    <para>This command is used to find a directory containing the named file. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the file in a directory is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_path is invoked with the same variable.  The name of the file in a directory that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.
</para><para>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:
</para><para>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_INCLUDE_PATH
   CMAKE_FRAMEWORK_PATH
</literallayout>
    <para>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_INCLUDE_PATH
   CMAKE_FRAMEWORK_PATH
</literallayout>
    <para>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.
</para><para>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.
</para><literallayout>   PATH
   INCLUDE
</literallayout>
    <para>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/include for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH
   CMAKE_SYSTEM_INCLUDE_PATH
   CMAKE_SYSTEM_FRAMEWORK_PATH
</literallayout>
    <para>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.
</para><para>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find frameworks before standard
              libraries or headers. This is the default on Darwin.
   "LAST"   - Try to find frameworks after standard
              libraries or headers.
   "ONLY"   - Only try to find frameworks.
   "NEVER" - Never try to find frameworks.
</literallayout>
    <para>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find application bundles before standard
              programs. This is the default on Darwin.
   "LAST"   - Try to find application bundles after standard
              programs.
   "ONLY"   - Only try to find application bundles.
   "NEVER" - Never try to find application bundles.
</literallayout>
    <para>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_INCLUDE.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.
</para><para>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:
</para><literallayout>   find_path(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)
   find_path(&lt;VAR&gt; NAMES name)
</literallayout>
    <para>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.
</para><para>When searching for frameworks, if the file is specified as A/b.h, then the framework search will look for A.framework/Headers/b.h. If that is found the path will be set to the path to the framework. CMake will convert this to the correct -F option to include the file. </para>
    <para id="command_find_program"><sect2><title>find_program</title></sect2> Find an executable program.</para>

    <literallayout>   find_program(&lt;VAR&gt; name1 [path1 path2 ...])
</literallayout>
    <para>This is the short-hand signature for the command that is sufficient in many cases.  It is the same as find_program(&lt;VAR&gt; name1 [PATHS path1 path2 ...])
</para><literallayout>   find_program(
             &lt;VAR&gt;
             name | NAMES name1 [name2 ...]
             [HINTS path1 [path2 ... ENV var]]
             [PATHS path1 [path2 ... ENV var]]
             [PATH_SUFFIXES suffix1 [suffix2 ...]]
             [DOC "cache documentation string"]
             [NO_DEFAULT_PATH]
             [NO_CMAKE_ENVIRONMENT_PATH]
             [NO_CMAKE_PATH]
             [NO_SYSTEM_ENVIRONMENT_PATH]
             [NO_CMAKE_SYSTEM_PATH]
             [CMAKE_FIND_ROOT_PATH_BOTH |
              ONLY_CMAKE_FIND_ROOT_PATH |
              NO_CMAKE_FIND_ROOT_PATH]
            )
</literallayout>
    <para>This command is used to find a program. A cache entry named by &lt;VAR&gt; is created to store the result of this command.  If the program is found the result is stored in the variable and the search will not be repeated unless the variable is cleared.  If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again the next time find_program is invoked with the same variable.  The name of the program that is searched for is specified by the names listed after the NAMES argument.   Additional search locations can be specified after the PATHS argument.  If ENV var is found in the HINTS or PATHS section the environment variable var will be read and converted from a system environment variable to a cmake style list of paths.  For example ENV PATH would be a way to list the system path variable. The argument after DOC will be used for the documentation string in the cache.  PATH_SUFFIXES specifies additional subdirectories to check below each search path.
</para><para>If NO_DEFAULT_PATH is specified, then no additional paths are added to the search. If NO_DEFAULT_PATH is not specified, the search process is as follows:
</para><para>1. Search paths specified in cmake-specific cache variables.  These are intended to be used on the command line with a -DVAR=value.  This can be skipped if NO_CMAKE_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/[s]bin for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_PROGRAM_PATH
   CMAKE_APPBUNDLE_PATH
</literallayout>
    <para>2. Search paths specified in cmake-specific environment variables.  These are intended to be set in the user's shell configuration.  This can be skipped if NO_CMAKE_ENVIRONMENT_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/[s]bin for each &lt;prefix&gt; in CMAKE_PREFIX_PATH
   CMAKE_PROGRAM_PATH
   CMAKE_APPBUNDLE_PATH
</literallayout>
    <para>3. Search the paths specified by the HINTS option.  These should be paths computed by system introspection, such as a hint provided by the location of another item already found.  Hard-coded guesses should be specified with the PATHS option.
</para><para>4. Search the standard system environment variables. This can be skipped if NO_SYSTEM_ENVIRONMENT_PATH is an argument.
</para><literallayout>   PATH
   
</literallayout>
    <para>5. Search cmake variables defined in the Platform files for the current system.  This can be skipped if NO_CMAKE_SYSTEM_PATH is passed.
</para><literallayout>   &lt;prefix&gt;/[s]bin for each &lt;prefix&gt; in CMAKE_SYSTEM_PREFIX_PATH
   CMAKE_SYSTEM_PROGRAM_PATH
   CMAKE_SYSTEM_APPBUNDLE_PATH
</literallayout>
    <para>6. Search the paths specified by the PATHS option or in the short-hand version of the command.  These are typically hard-coded guesses.
</para><para>On Darwin or systems supporting OS X Frameworks, the cmake variable    CMAKE_FIND_FRAMEWORK can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find frameworks before standard
              libraries or headers. This is the default on Darwin.
   "LAST"   - Try to find frameworks after standard
              libraries or headers.
   "ONLY"   - Only try to find frameworks.
   "NEVER" - Never try to find frameworks.
</literallayout>
    <para>On Darwin or systems supporting OS X Application Bundles, the cmake variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:
</para><literallayout>   "FIRST"  - Try to find application bundles before standard
              programs. This is the default on Darwin.
   "LAST"   - Try to find application bundles after standard
              programs.
   "ONLY"   - Only try to find application bundles.
   "NEVER" - Never try to find application bundles.
</literallayout>
    <para>The CMake variable CMAKE_FIND_ROOT_PATH specifies one or more directories to be prepended to all other search directories. This effectively "re-roots" the entire search under given locations. By default it is empty. It is especially useful when cross-compiling to point to the root directory of the target environment and CMake will search there too. By default at first the directories listed in CMAKE_FIND_ROOT_PATH and then the non-rooted directories will be searched. The default behavior can be adjusted by setting CMAKE_FIND_ROOT_PATH_MODE_PROGRAM.  This behavior can be manually overridden on a per-call basis. By using CMAKE_FIND_ROOT_PATH_BOTH the search order will be as described above. If NO_CMAKE_FIND_ROOT_PATH is used then CMAKE_FIND_ROOT_PATH will not be used. If ONLY_CMAKE_FIND_ROOT_PATH is used then only the re-rooted directories will be searched.
</para><para>The default search order is designed to be most-specific to least-specific for common use cases.  Projects may override the order by simply calling the command multiple times and using the NO_* options:
</para><literallayout>   find_program(&lt;VAR&gt; NAMES name PATHS paths... NO_DEFAULT_PATH)
   find_program(&lt;VAR&gt; NAMES name)
</literallayout>
    <para>Once one of the calls succeeds the result variable will be set and stored in the cache so that no call will search again.</para>
    <para id="command_fltk_wrap_ui"><sect2><title>fltk_wrap_ui</title></sect2> Create FLTK user interfaces Wrappers.</para>

    <literallayout>  fltk_wrap_ui(resultingLibraryName source1
               source2 ... sourceN )
</literallayout>
    <para>Produce .h and .cxx files for all the .fl and .fld files listed.  The resulting .h and .cxx files will be added to a variable named resultingLibraryName_FLTK_UI_SRCS which should be added to your library.</para>
    <para id="command_foreach"><sect2><title>foreach</title></sect2> Evaluate a group of commands for each value in a list.</para>

    <literallayout>  foreach(loop_var arg1 arg2 ...)
    COMMAND1(ARGS ...)
    COMMAND2(ARGS ...)
    ...
  endforeach(loop_var)
</literallayout>
    <para>All commands between foreach and the matching endforeach are recorded without being invoked.  Once the endforeach is evaluated, the recorded list of commands is invoked once for each argument listed in the original foreach command.  Before each iteration of the loop "${loop_var}" will be set as a variable with the current value in the list.
</para><literallayout>  foreach(loop_var RANGE total)
  foreach(loop_var RANGE start stop [step])
</literallayout>
    <para>Foreach can also iterate over a generated range of numbers. There are three types of this iteration:
</para><para>* When specifying single number, the range will have elements 0 to "total".
</para><para>* When specifying two numbers, the range will have elements from the first number to the second number.
</para><para>* The third optional number is the increment used to iterate from the first number to the second number.
</para><literallayout>  foreach(loop_var IN [LISTS [list1 [...]]]
                      [ITEMS [item1 [...]]])
</literallayout>
    <para>Iterates over a precise list of items.  The LISTS option names list-valued variables to be traversed, including empty elements (an empty string is a zero-length list).  The ITEMS option ends argument parsing and includes all arguments following it in the iteration.</para>
    <para id="command_function"><sect2><title>function</title></sect2> Start recording a function for later invocation as a command.</para>

    <literallayout>  function(&lt;name&gt; [arg1 [arg2 [arg3 ...]]])
    COMMAND1(ARGS ...)
    COMMAND2(ARGS ...)
    ...
  endfunction(&lt;name&gt;)
</literallayout>
    <para>Define a function named &lt;name&gt; that takes arguments named arg1 arg2 arg3 (...).  Commands listed after function, but before the matching endfunction, are not invoked until the function is invoked.  When it is invoked, the commands recorded in the function are first modified by replacing formal parameters (${arg1}) with the arguments passed, and then invoked as normal commands. In addition to referencing the formal parameters you can reference the variable ARGC which will be set to the number of arguments passed into the function as well as ARGV0 ARGV1 ARGV2 ... which will have the actual values of the arguments passed in. This facilitates creating functions with optional arguments. Additionally ARGV holds the list of all arguments given to the function and ARGN holds the list of argument past the last expected argument.
</para><para>See the cmake_policy() command documentation for the behavior of policies inside functions.</para>
    <para id="command_get_cmake_property"><sect2><title>get_cmake_property</title></sect2> Get a property of the CMake instance.</para>

    <literallayout>  get_cmake_property(VAR property)
</literallayout>
    <para>Get a property from the CMake instance.  The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND".  Some supported properties include: VARIABLES, CACHE_VARIABLES, COMMANDS, MACROS, and COMPONENTS.
</para><para>See also the more general get_property() command.</para>
    <para id="command_get_directory_property"><sect2><title>get_directory_property</title></sect2> Get a property of DIRECTORY scope.</para>

    <literallayout>  get_directory_property(&lt;variable&gt; [DIRECTORY &lt;dir&gt;] &lt;prop-name&gt;)
</literallayout>
    <para>Store a property of directory scope in the named variable.  If the property is not defined the empty-string is returned.  The DIRECTORY argument specifies another directory from which to retrieve the property value.  The specified directory must have already been traversed by CMake.
</para><literallayout>  get_directory_property(&lt;variable&gt; [DIRECTORY &lt;dir&gt;]
                         DEFINITION &lt;var-name&gt;)
</literallayout>
    <para>Get a variable definition from a directory.  This form is useful to get a variable definition from another directory.
</para><para>See also the more general get_property() command.</para>
    <para id="command_get_filename_component"><sect2><title>get_filename_component</title></sect2> Get a specific component of a full filename.</para>

    <literallayout>  get_filename_component(&lt;VAR&gt; FileName
                         PATH|ABSOLUTE|NAME|EXT|NAME_WE|REALPATH
                         [CACHE])
</literallayout>
    <para>Set &lt;VAR&gt; to be the path (PATH), file name (NAME), file extension (EXT), file name without extension (NAME_WE) of FileName, the full path (ABSOLUTE), or the full path with all symlinks resolved (REALPATH).  Note that the path is converted to Unix slashes format and has no trailing slashes. The longest file extension is always considered. If the optional CACHE argument is specified, the result variable is added to the cache.
</para><literallayout>  get_filename_component(&lt;VAR&gt; FileName
                         PROGRAM [PROGRAM_ARGS &lt;ARG_VAR&gt;]
                         [CACHE])
</literallayout>
    <para>The program in FileName will be found in the system search path or left as a full path.  If PROGRAM_ARGS is present with PROGRAM, then any command-line arguments present in the FileName string are split from the program name and stored in &lt;ARG_VAR&gt;.  This is used to separate a program name from its arguments in a command line string.</para>
    <para id="command_get_property"><sect2><title>get_property</title></sect2> Get a property.</para>

    <literallayout>  get_property(&lt;variable&gt;
               &lt;GLOBAL             |
                DIRECTORY [dir]    |
                TARGET    &lt;target&gt; |
                SOURCE    &lt;source&gt; |
                TEST      &lt;test&gt;   |
                CACHE     &lt;entry&gt;  |
                VARIABLE&gt;
               PROPERTY &lt;name&gt;
               [SET | DEFINED | BRIEF_DOCS | FULL_DOCS])
</literallayout>
    <para>Get one property from one object in a scope.  The first argument specifies the variable in which to store the result.  The second argument determines the scope from which to get the property.  It must be one of the following:
</para><para>GLOBAL scope is unique and does not accept a name.
</para><para>DIRECTORY scope defaults to the current directory but another directory (already processed by CMake) may be named by full or relative path.
</para><para>TARGET scope must name one existing target.
</para><para>SOURCE scope must name one source file.
</para><para>TEST scope must name one existing test.
</para><para>CACHE scope must name one cache entry.
</para><para>VARIABLE scope is unique and does not accept a name.
</para><para>The required PROPERTY option is immediately followed by the name of the property to get.  If the property is not set an empty value is returned.  If the SET option is given the variable is set to a boolean value indicating whether the property has been set.  If the DEFINED option is given the variable is set to a boolean value indicating whether the property has been defined such as with define_property. If BRIEF_DOCS or FULL_DOCS is given then the variable is set to a string containing documentation for the requested property.  If documentation is requested for a property that has not been defined NOTFOUND is returned.</para>
    <para id="command_get_source_file_property"><sect2><title>get_source_file_property</title></sect2> Get a property for a source file.</para>

    <literallayout>  get_source_file_property(VAR file property)
</literallayout>
    <para>Get a property from a source file.  The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND". Use set_source_files_properties to set property values.  Source file properties usually control how the file is built. One property that is always there is LOCATION
</para><para>See also the more general get_property() command.</para>
    <para id="command_get_target_property"><sect2><title>get_target_property</title></sect2> Get a property from a target.</para>

    <literallayout>  get_target_property(VAR target property)
</literallayout>
    <para>Get a property from a target.   The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND".  Use set_target_properties to set property values.  Properties are usually used to control how a target is built, but some query the target instead.  This command can get properties for any target so far created. The targets do not need to be in the current CMakeLists.txt file.
</para><para>See also the more general get_property() command.</para>
    <para id="command_get_test_property"><sect2><title>get_test_property</title></sect2> Get a property of the test.</para>

    <literallayout>  get_test_property(test property VAR)
</literallayout>
    <para>Get a property from the Test.  The value of the property is stored in the variable VAR.  If the property is not found, VAR will be set to "NOTFOUND". For a list of standard properties you can type cmake --help-property-list
</para><para>See also the more general get_property() command.</para>
    <para id="command_if"><sect2><title>if</title></sect2> Conditionally execute a group of commands.</para>

    <literallayout>  if(expression)
    # then section.
    COMMAND1(ARGS ...)
    COMMAND2(ARGS ...)
    ...
  elseif(expression2)
    # elseif section.
    COMMAND1(ARGS ...)
    COMMAND2(ARGS ...)
    ...
  else(expression)
    # else section.
    COMMAND1(ARGS ...)
    COMMAND2(ARGS ...)
    ...
  endif(expression)
</literallayout>
    <para>Evaluates the given expression.  If the result is true, the commands in the THEN section are invoked.  Otherwise, the commands in the else section are invoked.  The elseif and else sections are optional. You may have multiple elseif clauses. Note that the expression in the else and endif clause is optional. Long expressions can be used and there is a traditional order of precedence. Parenthetical expressions are evaluated first followed by unary operators such as EXISTS, COMMAND, and DEFINED. Then any EQUAL, LESS, GREATER, STRLESS, STRGREATER, STREQUAL, MATCHES will be evaluated. Then NOT operators and finally AND, OR operators will be evaluated. Possible expressions are:
</para><literallayout>  if(&lt;constant&gt;)
</literallayout>
    <para>True if the constant is 1, ON, YES, TRUE, Y, or a non-zero number.  False if the constant is 0, OFF, NO, FALSE, N, IGNORE, "", or ends in the suffix '-NOTFOUND'.  Named boolean constants are case-insensitive.  If the argument is not one of these constants, it is treated as a variable:
</para><literallayout>  if(&lt;variable&gt;)
</literallayout>
    <para>True if the variable is defined to a value that is not a false constant.  False otherwise.  
</para><literallayout>  if(NOT &lt;expression&gt;)
</literallayout>
    <para>True if the expression is not true.
</para><literallayout>  if(&lt;expr1&gt; AND &lt;expr2&gt;)
</literallayout>
    <para>True if both expressions would be considered true individually.
</para><literallayout>  if(&lt;expr1&gt; OR &lt;expr2&gt;)
</literallayout>
    <para>True if either expression would be considered true individually.
</para><literallayout>  if(COMMAND command-name)
</literallayout>
    <para>True if the given name is a command, macro or function that can be invoked.
</para><literallayout>  if(POLICY policy-id)
</literallayout>
    <para>True if the given name is an existing policy (of the form CMP&lt;NNNN&gt;).
</para><literallayout>  if(TARGET target-name)
</literallayout>
    <para>True if the given name is an existing target, built or imported.
</para><literallayout>  if(EXISTS file-name)
  if(EXISTS directory-name)
</literallayout>
    <para>True if the named file or directory exists.  Behavior is well-defined only for full paths.
</para><literallayout>  if(file1 IS_NEWER_THAN file2)
</literallayout>
    <para>True if file1 is newer than file2 or if one of the two files doesn't exist. Behavior is well-defined only for full paths.
</para><literallayout>  if(IS_DIRECTORY directory-name)
</literallayout>
    <para>True if the given name is a directory.  Behavior is well-defined only for full paths.
</para><literallayout>  if(IS_SYMLINK file-name)
</literallayout>
    <para>True if the given name is a symbolic link.  Behavior is well-defined only for full paths.
</para><literallayout>  if(IS_ABSOLUTE path)
</literallayout>
    <para>True if the given path is an absolute path.
</para><literallayout>  if(&lt;variable|string&gt; MATCHES regex)
</literallayout>
    <para>True if the given string or variable's value matches the given regular expression.
</para><literallayout>  if(&lt;variable|string&gt; LESS &lt;variable|string&gt;)
  if(&lt;variable|string&gt; GREATER &lt;variable|string&gt;)
  if(&lt;variable|string&gt; EQUAL &lt;variable|string&gt;)
</literallayout>
    <para>True if the given string or variable's value is a valid number and the inequality or equality is true.
</para><literallayout>  if(&lt;variable|string&gt; STRLESS &lt;variable|string&gt;)
  if(&lt;variable|string&gt; STRGREATER &lt;variable|string&gt;)
  if(&lt;variable|string&gt; STREQUAL &lt;variable|string&gt;)
</literallayout>
    <para>True if the given string or variable's value is lexicographically less (or greater, or equal) than the string or variable on the right.
</para><literallayout>  if(&lt;variable|string&gt; VERSION_LESS &lt;variable|string&gt;)
  if(&lt;variable|string&gt; VERSION_EQUAL &lt;variable|string&gt;)
  if(&lt;variable|string&gt; VERSION_GREATER &lt;variable|string&gt;)
</literallayout>
    <para>Component-wise integer version number comparison (version format is major[.minor[.patch[.tweak]]]).
</para><literallayout>  if(DEFINED &lt;variable&gt;)
</literallayout>
    <para>True if the given variable is defined. It does not matter if the variable is true or false just if it has been set.
</para><literallayout>  if((expression) AND (expression OR (expression)))
</literallayout>
    <para>The expressions inside the parenthesis are evaluated first and then the remaining expression is evaluated as in the previous examples. Where there are nested parenthesis the innermost are evaluated as part of evaluating the expression that contains them.
</para><para>The if command was written very early in CMake's history, predating the ${} variable evaluation syntax, and for convenience evaluates variables named by its arguments as shown in the above signatures.  Note that normal variable evaluation with ${} applies before the if command even receives the arguments.  Therefore code like
</para><literallayout>  set(var1 OFF)
  set(var2 "var1")
  if(${var2})
</literallayout>
    <para>appears to the if command as
</para><literallayout>  if(var1)
</literallayout>
    <para>and is evaluated according to the if(&lt;variable&gt;) case documented above.  The result is OFF which is false.  However, if we remove the ${} from the example then the command sees
</para><literallayout>  if(var2)
</literallayout>
    <para>which is true because var2 is defined to "var1" which is not a false constant.
</para><para>Automatic evaluation applies in the other cases whenever the above-documented signature accepts &lt;variable|string&gt;:
</para><para>1) The left hand argument to MATCHES is first checked to see if it is a defined variable, if so the variable's value is used, otherwise the original value is used. 
</para><para>2) If the left hand argument to MATCHES is missing it returns false without error 
</para><para>3) Both left and right hand arguments to LESS GREATER EQUAL are independently tested to see if they are defined variables, if so their defined values are used otherwise the original value is used. 
</para><para>4) Both left and right hand arguments to STRLESS STREQUAL STRGREATER are independently tested to see if they are defined variables, if so their defined values are used otherwise the original value is used. 
</para><para>5) Both left and right hand argumemnts to VERSION_LESS VERSION_EQUAL VERSION_GREATER are independently tested to see if they are defined variables, if so their defined values are used otherwise the original value is used. 
</para><para>6) The right hand argument to NOT is tested to see if it is a boolean constant, if so the value is used, otherwise it is assumed to be a variable and it is dereferenced. 
</para><para>7) The left and right hand arguments to AND OR are independently tested to see if they are boolean constants, if so they are used as such, otherwise they are assumed to be variables and are dereferenced. 
</para>
    <para id="command_include"><sect2><title>include</title></sect2> Read CMake listfile code from the given file.</para>

    <literallayout>  include(&lt;file|module&gt; [OPTIONAL] [RESULT_VARIABLE &lt;VAR&gt;]
                        [NO_POLICY_SCOPE])
</literallayout>
    <para>Reads CMake listfile code from the given file.  Commands in the file are processed immediately as if they were written in place of the include command.  If OPTIONAL is present, then no error is raised if the file does not exist.  If RESULT_VARIABLE is given the variable will be set to the full filename which has been included or NOTFOUND if it failed.
</para><para>If a module is specified instead of a file, the file with name &lt;modulename&gt;.cmake is searched first in CMAKE_MODULE_PATH, then in the CMake module directory. There is one exception to this: if the file which calls include() is located itself in the CMake module directory, then first the CMake module directory is searched and CMAKE_MODULE_PATH afterwards. See also policy CMP0017.
</para><para>See the cmake_policy() command documentation for discussion of the NO_POLICY_SCOPE option.</para>
    <para id="command_include_directories"><sect2><title>include_directories</title></sect2> Add include directories to the build.</para>

    <literallayout>  include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)
</literallayout>
    <para>Add the given directories to those the compiler uses to search for include files. These directories are added to the directory property INCLUDE_DIRECTORIES for the current CMakeLists file. They are also added to the target property INCLUDE_DIRECTORIES for each target in the current CMakeLists file. The target property values are the ones used by the generators.
</para><para>By default the directories are appended onto the current list of directories. This default behavior can be changed by setting CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. By using AFTER or BEFORE explicitly, you can select between appending and prepending, independent of the default. If the SYSTEM option is given, the compiler will be told the directories are meant as system include directories on some platforms.</para>
    <para id="command_include_external_msproject"><sect2><title>include_external_msproject</title></sect2> Include an external Microsoft project file in a workspace.</para>

    <literallayout>  include_external_msproject(projectname location
                             dep1 dep2 ...)
</literallayout>
    <para>Includes an external Microsoft project in the generated workspace file.  Currently does nothing on UNIX. This will create a target named [projectname].  This can be used in the add_dependencies command to make things depend on the external project.</para>
    <para id="command_include_regular_expression"><sect2><title>include_regular_expression</title></sect2> Set the regular expression used for dependency checking.</para>

    <literallayout>  include_regular_expression(regex_match [regex_complain])
</literallayout>
    <para>Set the regular expressions used in dependency checking.  Only files matching regex_match will be traced as dependencies.  Only files matching regex_complain will generate warnings if they cannot be found (standard header paths are not searched).  The defaults are:
</para><literallayout>  regex_match    = "^.*$" (match everything)
  regex_complain = "^$" (match empty string only)</literallayout>
    
    <para id="command_install"><sect2><title>install</title></sect2> Specify rules to run at install time.</para>

    <para>This command generates installation rules for a project.  Rules specified by calls to this command within a source directory are executed in order during installation.  The order across directories is not defined.
</para><para>There are multiple signatures for this command.  Some of them define installation properties for files and targets.  Properties common to multiple signatures are covered here but they are valid only for signatures that specify them.
</para><para>DESTINATION arguments specify the directory on disk to which a file will be installed.  If a full path (with a leading slash or drive letter) is given it is used directly.  If a relative path is given it is interpreted relative to the value of CMAKE_INSTALL_PREFIX.
</para><para>PERMISSIONS arguments specify permissions for installed files.  Valid permissions are OWNER_READ, OWNER_WRITE, OWNER_EXECUTE, GROUP_READ, GROUP_WRITE, GROUP_EXECUTE, WORLD_READ, WORLD_WRITE, WORLD_EXECUTE, SETUID, and SETGID.  Permissions that do not make sense on certain platforms are ignored on those platforms.
</para><para>The CONFIGURATIONS argument specifies a list of build configurations for which the install rule applies (Debug, Release, etc.).
</para><para>The COMPONENT argument specifies an installation component name with which the install rule is associated, such as "runtime" or "development".  During component-specific installation only install rules associated with the given component name will be executed.  During a full installation all components are installed.
</para><para>The RENAME argument specifies a name for an installed file that may be different from the original file.  Renaming is allowed only when a single file is installed by the command.
</para><para>The OPTIONAL argument specifies that it is not an error if the file to be installed does not exist.  
</para><para>The TARGETS signature:
</para><literallayout>  install(TARGETS targets... [EXPORT &lt;export-name&gt;]
          [[ARCHIVE|LIBRARY|RUNTIME|FRAMEWORK|BUNDLE|
            PRIVATE_HEADER|PUBLIC_HEADER|RESOURCE]
           [DESTINATION &lt;dir&gt;]
           [PERMISSIONS permissions...]
           [CONFIGURATIONS [Debug|Release|...]]
           [COMPONENT &lt;component&gt;]
           [OPTIONAL] [NAMELINK_ONLY|NAMELINK_SKIP]
          ] [...])
</literallayout>
    <para>The TARGETS form specifies rules for installing targets from a project.  There are five kinds of target files that may be installed: ARCHIVE, LIBRARY, RUNTIME, FRAMEWORK, and BUNDLE.  Executables are treated as RUNTIME targets, except that those marked with the MACOSX_BUNDLE property are treated as BUNDLE targets on OS X. Static libraries are always treated as ARCHIVE targets. Module libraries are always treated as LIBRARY targets. For non-DLL platforms shared libraries are treated as LIBRARY targets, except that those marked with the FRAMEWORK property are treated as FRAMEWORK targets on OS X.  For DLL platforms the DLL part of a shared library is treated as a RUNTIME target and the corresponding import library is treated as an ARCHIVE target. All Windows-based systems including Cygwin are DLL platforms. The ARCHIVE, LIBRARY, RUNTIME, and FRAMEWORK arguments change the type of target to which the subsequent properties apply.  If none is given the installation properties apply to all target types.  If only one is given then only targets of that type will be installed (which can be used to install just a DLL or just an import library).
</para><para>The PRIVATE_HEADER, PUBLIC_HEADER, and RESOURCE arguments cause subsequent properties to be applied to installing a FRAMEWORK shared library target's associated files on non-Apple platforms.  Rules defined by these arguments are ignored on Apple platforms because the associated files are installed into the appropriate locations inside the framework folder.  See documentation of the PRIVATE_HEADER, PUBLIC_HEADER, and RESOURCE target properties for details.
</para><para>Either NAMELINK_ONLY or NAMELINK_SKIP may be specified as a LIBRARY option.  On some platforms a versioned shared library has a symbolic link such as
</para><literallayout>  lib&lt;name&gt;.so -&gt; lib&lt;name&gt;.so.1
</literallayout>
    <para>where "lib&lt;name&gt;.so.1" is the soname of the library and "lib&lt;name&gt;.so" is a "namelink" allowing linkers to find the library when given "-l&lt;name&gt;".  The NAMELINK_ONLY option causes installation of only the namelink when a library target is installed.  The NAMELINK_SKIP option causes installation of library files other than the namelink when a library target is installed.  When neither option is given both portions are installed.  On platforms where versioned shared libraries do not have namelinks or when a library is not versioned the NAMELINK_SKIP option installs the library and the NAMELINK_ONLY option installs nothing.  See the VERSION and SOVERSION target properties for details on creating versioned shared libraries.
</para><para>One or more groups of properties may be specified in a single call to the TARGETS form of this command.  A target may be installed more than once to different locations.  Consider hypothetical targets "myExe", "mySharedLib", and "myStaticLib".  The code
</para><literallayout>    install(TARGETS myExe mySharedLib myStaticLib
            RUNTIME DESTINATION bin
            LIBRARY DESTINATION lib
            ARCHIVE DESTINATION lib/static)
    install(TARGETS mySharedLib DESTINATION /some/full/path)
</literallayout>
    <para>will install myExe to &lt;prefix&gt;/bin and myStaticLib to &lt;prefix&gt;/lib/static.  On non-DLL platforms mySharedLib will be installed to &lt;prefix&gt;/lib and /some/full/path.  On DLL platforms the mySharedLib DLL will be installed to &lt;prefix&gt;/bin and /some/full/path and its import library will be installed to &lt;prefix&gt;/lib/static and /some/full/path.
</para><para>The EXPORT option associates the installed target files with an export called &lt;export-name&gt;.  It must appear before any RUNTIME, LIBRARY, or ARCHIVE options.  To actually install the export file itself, call install(EXPORT).  See documentation of the install(EXPORT ...) signature below for details.
</para><para>Installing a target with EXCLUDE_FROM_ALL set to true has undefined behavior.
</para><para>The FILES signature:
</para><literallayout>  install(FILES files... DESTINATION &lt;dir&gt;
          [PERMISSIONS permissions...]
          [CONFIGURATIONS [Debug|Release|...]]
          [COMPONENT &lt;component&gt;]
          [RENAME &lt;name&gt;] [OPTIONAL])
</literallayout>
    <para>The FILES form specifies rules for installing files for a project.  File names given as relative paths are interpreted with respect to the current source directory.  Files installed by this form are by default given permissions OWNER_WRITE, OWNER_READ, GROUP_READ, and WORLD_READ if no PERMISSIONS argument is given.
</para><para>The PROGRAMS signature:
</para><literallayout>  install(PROGRAMS files... DESTINATION &lt;dir&gt;
          [PERMISSIONS permissions...]
          [CONFIGURATIONS [Debug|Release|...]]
          [COMPONENT &lt;component&gt;]
          [RENAME &lt;name&gt;] [OPTIONAL])
</literallayout>
    <para>The PROGRAMS form is identical to the FILES form except that the default permissions for the installed file also include OWNER_EXECUTE, GROUP_EXECUTE, and WORLD_EXECUTE.  This form is intended to install programs that are not targets, such as shell scripts.  Use the TARGETS form to install targets built within the project.
</para><para>The DIRECTORY signature:
</para><literallayout>  install(DIRECTORY dirs... DESTINATION &lt;dir&gt;
          [FILE_PERMISSIONS permissions...]
          [DIRECTORY_PERMISSIONS permissions...]
          [USE_SOURCE_PERMISSIONS] [OPTIONAL]
          [CONFIGURATIONS [Debug|Release|...]]
          [COMPONENT &lt;component&gt;] [FILES_MATCHING]
          [[PATTERN &lt;pattern&gt; | REGEX &lt;regex&gt;]
           [EXCLUDE] [PERMISSIONS permissions...]] [...])
</literallayout>
    <para>The DIRECTORY form installs contents of one or more directories to a given destination.  The directory structure is copied verbatim to the destination.  The last component of each directory name is appended to the destination directory but a trailing slash may be used to avoid this because it leaves the last component empty.  Directory names given as relative paths are interpreted with respect to the current source directory.  If no input directory names are given the destination directory will be created but nothing will be installed into it.  The FILE_PERMISSIONS and DIRECTORY_PERMISSIONS options specify permissions given to files and directories in the destination.  If USE_SOURCE_PERMISSIONS is specified and FILE_PERMISSIONS is not, file permissions will be copied from the source directory structure.  If no permissions are specified files will be given the default permissions specified in the FILES form of the command, and the directories will be given the default permissions specified in the PROGRAMS form of the command.
</para><para>Installation of directories may be controlled with fine granularity using the PATTERN or REGEX options.  These "match" options specify a globbing pattern or regular expression to match directories or files encountered within input directories.  They may be used to apply certain options (see below) to a subset of the files and directories encountered.  The full path to each input file or directory (with forward slashes) is matched against the expression.  A PATTERN will match only complete file names: the portion of the full path matching the pattern must occur at the end of the file name and be preceded by a slash.  A REGEX will match any portion of the full path but it may use '/' and '$' to simulate the PATTERN behavior.  By default all files and directories are installed whether or not they are matched.  The FILES_MATCHING option may be given before the first match option to disable installation of files (but not directories) not matched by any expression.  For example, the code
</para><literallayout>  install(DIRECTORY src/ DESTINATION include/myproj
          FILES_MATCHING PATTERN "*.h")
</literallayout>
    <para>will extract and install header files from a source tree.
</para><para>Some options may follow a PATTERN or REGEX expression and are applied only to files or directories matching them.  The EXCLUDE option will skip the matched file or directory.  The PERMISSIONS option overrides the permissions setting for the matched file or directory.  For example the code
</para><literallayout>  install(DIRECTORY icons scripts/ DESTINATION share/myproj
          PATTERN "CVS" EXCLUDE
          PATTERN "scripts/*"
          PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
                      GROUP_EXECUTE GROUP_READ)
</literallayout>
    <para>will install the icons directory to share/myproj/icons and the scripts directory to share/myproj.  The icons will get default file permissions, the scripts will be given specific permissions, and any CVS directories will be excluded.
</para><para>The SCRIPT and CODE signature:
</para><literallayout>  install([[SCRIPT &lt;file&gt;] [CODE &lt;code&gt;]] [...])
</literallayout>
    <para>The SCRIPT form will invoke the given CMake script files during installation.  If the script file name is a relative path it will be interpreted with respect to the current source directory.  The CODE form will invoke the given CMake code during installation.  Code is specified as a single argument inside a double-quoted string. For example, the code
</para><literallayout>  install(CODE "MESSAGE(\"Sample install message.\")")
</literallayout>
    <para>will print a message during installation.
</para><para>The EXPORT signature:
</para><literallayout>  install(EXPORT &lt;export-name&gt; DESTINATION &lt;dir&gt;
          [NAMESPACE &lt;namespace&gt;] [FILE &lt;name&gt;.cmake]
          [PERMISSIONS permissions...]
          [CONFIGURATIONS [Debug|Release|...]]
          [COMPONENT &lt;component&gt;])
</literallayout>
    <para>The EXPORT form generates and installs a CMake file containing code to import targets from the installation tree into another project.  Target installations are associated with the export &lt;export-name&gt; using the EXPORT option of the install(TARGETS ...) signature documented above.  The NAMESPACE option will prepend &lt;namespace&gt; to the target names as they are written to the import file.  By default the generated file will be called &lt;export-name&gt;.cmake but the FILE option may be used to specify a different name.  The value given to the FILE option must be a file name with the ".cmake" extension.  If a CONFIGURATIONS option is given then the file will only be installed when one of the named configurations is installed.  Additionally, the generated import file will reference only the matching target configurations.  If a COMPONENT option is specified that does not match that given to the targets associated with &lt;export-name&gt; the behavior is undefined.  If a library target is included in the export but a target to which it links is not included the behavior is unspecified.
</para><para>The EXPORT form is useful to help outside projects use targets built and installed by the current project.  For example, the code
</para><literallayout>  install(TARGETS myexe EXPORT myproj DESTINATION bin)
  install(EXPORT myproj NAMESPACE mp_ DESTINATION lib/myproj)
</literallayout>
    <para>will install the executable myexe to &lt;prefix&gt;/bin and code to import it in the file "&lt;prefix&gt;/lib/myproj/myproj.cmake".  An outside project may load this file with the include command and reference the myexe executable from the installation tree using the imported target name mp_myexe as if the target were built in its own tree.
</para><para>NOTE: This command supercedes the INSTALL_TARGETS command and the target properties PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT.  It also replaces the FILES forms of the INSTALL_FILES and INSTALL_PROGRAMS commands.  The processing order of these install rules relative to those generated by INSTALL_TARGETS, INSTALL_FILES, and INSTALL_PROGRAMS commands is not defined.
</para>
    <para id="command_link_directories"><sect2><title>link_directories</title></sect2> Specify directories in which the linker will look for libraries.</para>

    <literallayout>  link_directories(directory1 directory2 ...)
</literallayout>
    <para>Specify the paths in which the linker should search for libraries. The command will apply only to targets created after it is called. For historical reasons, relative paths given to this command are passed to the linker unchanged (unlike many CMake commands which interpret them relative to the current source directory).
</para><para>Note that this command is rarely necessary.  Library locations returned by find_package() and find_library() are absolute paths.  Pass these absolute library file paths directly to the target_link_libraries() command.  CMake will ensure the linker finds them.</para>
    <para id="command_list"><sect2><title>list</title></sect2> List operations.</para>

    <literallayout>  list(LENGTH &lt;list&gt; &lt;output variable&gt;)
  list(GET &lt;list&gt; &lt;element index&gt; [&lt;element index&gt; ...]
       &lt;output variable&gt;)
  list(APPEND &lt;list&gt; &lt;element&gt; [&lt;element&gt; ...])
  list(FIND &lt;list&gt; &lt;value&gt; &lt;output variable&gt;)
  list(INSERT &lt;list&gt; &lt;element_index&gt; &lt;element&gt; [&lt;element&gt; ...])
  list(REMOVE_ITEM &lt;list&gt; &lt;value&gt; [&lt;value&gt; ...])
  list(REMOVE_AT &lt;list&gt; &lt;index&gt; [&lt;index&gt; ...])
  list(REMOVE_DUPLICATES &lt;list&gt;)
  list(REVERSE &lt;list&gt;)
  list(SORT &lt;list&gt;)
</literallayout>
    <para>LENGTH will return a given list's length.
</para><para>GET will return list of elements specified by indices from the list.
</para><para>APPEND will append elements to the list.
</para><para>FIND will return the index of the element specified in the list or -1 if it wasn't found.
</para><para>INSERT will insert elements to the list to the specified location.
</para><para>REMOVE_AT and REMOVE_ITEM will remove items from the list. The difference is that REMOVE_ITEM will remove the given items, while REMOVE_AT will remove the items at the given indices.
</para><para>REMOVE_DUPLICATES will remove duplicated items in the list.
</para><para>REVERSE reverses the contents of the list in-place.
</para><para>SORT sorts the list in-place alphabetically.
</para><para>The list subcommands APPEND, INSERT, REMOVE_AT, REMOVE_ITEM, REMOVE_DUPLICATES, REVERSE and SORT may create new values for the list within the current CMake variable scope. Similar to the SET command, the LIST command creates new variable values in the current scope, even if the list itself is actually defined in a parent scope. To propagate the results of these operations upwards, use SET with PARENT_SCOPE, SET with CACHE INTERNAL, or some other means of value propagation.
</para><para>NOTES: A list in cmake is a ; separated group of strings. To create a list the set command can be used. For example, set(var a b c d e)  creates a list with a;b;c;d;e, and set(var "a b c d e") creates a string or a list with one item in it.
</para><para>When specifying index values, if &lt;element index&gt; is 0 or greater, it is indexed from the beginning of the list, with 0 representing the first list element. If &lt;element index&gt; is -1 or lesser, it is indexed from the end of the list, with -1 representing the last list element. Be careful when counting with negative indices: they do not start from 0. -0 is equivalent to 0, the first list element.
</para>
    <para id="command_load_cache"><sect2><title>load_cache</title></sect2> Load in the values from another project's CMake cache.</para>

    <literallayout>  load_cache(pathToCacheFile READ_WITH_PREFIX
             prefix entry1...)
</literallayout>
    <para>Read the cache and store the requested entries in variables with their name prefixed with the given prefix.  This only reads the values, and does not create entries in the local project's cache.
</para><literallayout>  load_cache(pathToCacheFile [EXCLUDE entry1...]
             [INCLUDE_INTERNALS entry1...])
</literallayout>
    <para>Load in the values from another cache and store them in the local project's cache as internal entries.  This is useful for a project that depends on another project built in a different tree.  EXCLUDE option can be used to provide a list of entries to be excluded.  INCLUDE_INTERNALS can be used to provide a list of internal entries to be included.  Normally, no internal entries are brought in.  Use of this form of the command is strongly discouraged, but it is provided for backward compatibility.</para>
    <para id="command_load_command"><sect2><title>load_command</title></sect2> Load a command into a running CMake.</para>

    <literallayout>  load_command(COMMAND_NAME &lt;loc1&gt; [loc2 ...])
</literallayout>
    <para>The given locations are searched for a library whose name is cmCOMMAND_NAME.  If found, it is loaded as a module and the command is added to the set of available CMake commands.  Usually, TRY_COMPILE is used before this command to compile the module. If the command is successfully loaded a variable named
</para><literallayout>  CMAKE_LOADED_COMMAND_&lt;COMMAND_NAME&gt;
</literallayout>
    <para>will be set to the full path of the module that was loaded.  Otherwise the variable will not be set.</para>
    <para id="command_macro"><sect2><title>macro</title></sect2> Start recording a macro for later invocation as a command.</para>

    <literallayout>  macro(&lt;name&gt; [arg1 [arg2 [arg3 ...]]])
    COMMAND1(ARGS ...)
    COMMAND2(ARGS ...)
    ...
  endmacro(&lt;name&gt;)
</literallayout>
    <para>Define a macro named &lt;name&gt; that takes arguments named arg1 arg2 arg3 (...).  Commands listed after macro, but before the matching endmacro, are not invoked until the macro is invoked.  When it is invoked, the commands recorded in the macro are first modified by replacing formal parameters (${arg1}) with the arguments passed, and then invoked as normal commands. In addition to referencing the formal parameters you can reference the values ${ARGC} which will be set to the number of arguments passed into the function as well as ${ARGV0} ${ARGV1} ${ARGV2} ... which will have the actual values of the arguments passed in. This facilitates creating macros with optional arguments. Additionally ${ARGV} holds the list of all arguments given to the macro and ${ARGN} holds the list of argument past the last expected argument. Note that the parameters to a macro and values such as ARGN are not variables in the usual CMake sense. They are string replacements much like the c preprocessor would do with a macro. If you want true CMake variables you should look at the function command.
</para><para>See the cmake_policy() command documentation for the behavior of policies inside macros.</para>
    <para id="command_mark_as_advanced"><sect2><title>mark_as_advanced</title></sect2> Mark cmake cached variables as advanced.</para>

    <literallayout>  mark_as_advanced([CLEAR|FORCE] VAR VAR2 VAR...)
</literallayout>
    <para>Mark the named cached variables as advanced.  An advanced variable will not be displayed in any of the cmake GUIs unless the show advanced option is on.  If CLEAR is the first argument advanced variables are changed back to unadvanced.  If FORCE is the first argument, then the variable is made advanced.  If neither FORCE nor CLEAR is specified, new values will be marked as advanced, but if the variable already has an advanced/non-advanced state, it will not be changed.
</para><para>It does nothing in script mode.</para>
    <para id="command_math"><sect2><title>math</title></sect2> Mathematical expressions.</para>

    <literallayout>  math(EXPR &lt;output variable&gt; &lt;math expression&gt;)
</literallayout>
    <para>EXPR evaluates mathematical expression and return result in the output variable. Example mathematical expression is '5 * ( 10 + 13 )'.  Supported operators are + - * / % | &amp; ^ ~ &lt;&lt; &gt;&gt; * / %.  They have the same meaning  as they do in c code.</para>
    <para id="command_message"><sect2><title>message</title></sect2> Display a message to the user.</para>

    <literallayout>  message([STATUS|WARNING|AUTHOR_WARNING|FATAL_ERROR|SEND_ERROR]
          "message to display" ...)
</literallayout>
    <para>The optional keyword determines the type of message:
</para><literallayout>  (none)         = Important information
  STATUS         = Incidental information
  WARNING        = CMake Warning, continue processing
  AUTHOR_WARNING = CMake Warning (dev), continue processing
  SEND_ERROR     = CMake Error, continue but skip generation
  FATAL_ERROR    = CMake Error, stop all processing
</literallayout>
    <para>The CMake command-line tool displays STATUS messages on stdout and all other message types on stderr.  The CMake GUI displays all messages in its log area.  The interactive dialogs (ccmake and CMakeSetup) show STATUS messages one at a time on a status line and other messages in interactive pop-up boxes.
</para><para>CMake Warning and Error message text displays using a simple markup language.  Non-indented text is formatted in line-wrapped paragraphs delimited by newlines.  Indented text is considered pre-formatted.</para>
    <para id="command_option"><sect2><title>option</title></sect2> Provides an option that the user can optionally select.</para>

    <literallayout>  option(&lt;option_variable&gt; "help string describing option"
         [initial value])
</literallayout>
    <para>Provide an option for the user to select as ON or OFF.  If no initial value is provided, OFF is used.
</para><para>If you have options that depend on the values of other options, see the module help for CMakeDependentOption.</para>
    <para id="command_project"><sect2><title>project</title></sect2> Set a name for the entire project.</para>

    <literallayout>  project(&lt;projectname&gt; [languageName1 languageName2 ... ] )
</literallayout>
    <para>Sets the name of the project.  Additionally this sets the variables &lt;projectName&gt;_BINARY_DIR and &lt;projectName&gt;_SOURCE_DIR to the respective values.
</para><para>Optionally you can specify which languages your project supports.  Example languages are CXX (i.e. C++), C, Fortran, etc. By default C and CXX are enabled.  E.g. if you do not have a C++ compiler, you can disable the check for it by explicitly listing the languages you want to support, e.g. C.  By using the special language "NONE" all checks for any language can be disabled. If a variable exists called CMAKE_PROJECT_&lt;projectName&gt;_INCLUDE_FILE, the file pointed to by that variable will be included as the last step of the project command.</para>
    <para id="command_qt_wrap_cpp"><sect2><title>qt_wrap_cpp</title></sect2> Create Qt Wrappers.</para>

    <literallayout>  qt_wrap_cpp(resultingLibraryName DestName
              SourceLists ...)
</literallayout>
    <para>Produce moc files for all the .h files listed in the SourceLists.  The moc files will be added to the library using the DestName source list.</para>
    <para id="command_qt_wrap_ui"><sect2><title>qt_wrap_ui</title></sect2> Create Qt user interfaces Wrappers.</para>

    <literallayout>  qt_wrap_ui(resultingLibraryName HeadersDestName
             SourcesDestName SourceLists ...)
</literallayout>
    <para>Produce .h and .cxx files for all the .ui files listed in the SourceLists.  The .h files will be added to the library using the HeadersDestNamesource list.  The .cxx files will be added to the library using the SourcesDestNamesource list.</para>
    <para id="command_remove_definitions"><sect2><title>remove_definitions</title></sect2> Removes -D define flags added by add_definitions.</para>

    <literallayout>  remove_definitions(-DFOO -DBAR ...)
</literallayout>
    <para>Removes flags (added by add_definitions) from the compiler command line for sources in the current directory and below.</para>
    <para id="command_return"><sect2><title>return</title></sect2> Return from a file, directory or function.</para>

    <literallayout>  return()
</literallayout>
    <para>Returns from a file, directory or function. When this command is encountered in an included file (via include() or find_package()), it causes processing of the current file to stop and control is returned to the including file. If it is encountered in a file which is not included by another file, e.g. a CMakeLists.txt, control is returned to the parent directory if there is one. If return is called in a function, control is returned to the caller of the function. Note that a macro is not a function and does not handle return like a function does.</para>
    <para id="command_separate_arguments"><sect2><title>separate_arguments</title></sect2> Parse space-separated arguments into a semicolon-separated list.</para>

    <literallayout>  separate_arguments(&lt;var&gt; &lt;UNIX|WINDOWS&gt;_COMMAND "&lt;args&gt;")
</literallayout>
    <para>Parses a unix- or windows-style command-line string "&lt;args&gt;" and stores a semicolon-separated list of the arguments in &lt;var&gt;.  The entire command line must be given in one "&lt;args&gt;" argument.
</para><para>The UNIX_COMMAND mode separates arguments by unquoted whitespace.  It recognizes both single-quote and double-quote pairs.  A backslash escapes the next literal character (\" is "); there are no special escapes (\n is just n).
</para><para>The WINDOWS_COMMAND mode parses a windows command-line using the same syntax the runtime library uses to construct argv at startup.  It separates arguments by whitespace that is not double-quoted.  Backslashes are literal unless they precede double-quotes.  See the MSDN article "Parsing C Command-Line Arguments" for details.
</para><literallayout>  separate_arguments(VARIABLE)
</literallayout>
    <para>Convert the value of VARIABLE to a semi-colon separated list.  All spaces are replaced with ';'.  This helps with generating command lines.</para>
    <para id="command_set"><sect2><title>set</title></sect2> Set a CMAKE variable to a given value.</para>

    <literallayout>  set(&lt;variable&gt; &lt;value&gt;
      [[CACHE &lt;type&gt; &lt;docstring&gt; [FORCE]] | PARENT_SCOPE])
</literallayout>
    <para>Within CMake sets &lt;variable&gt; to the value &lt;value&gt;.  &lt;value&gt; is expanded  before &lt;variable&gt; is set to it.  If CACHE is present, then the &lt;variable&gt; is put in the cache. &lt;type&gt; and &lt;docstring&gt; are then required. &lt;type&gt; is used by the CMake GUI to choose a widget with which the user sets a value.  The value for &lt;type&gt; may be one of
</para><literallayout>  FILEPATH = File chooser dialog.
  PATH     = Directory chooser dialog.
  STRING   = Arbitrary string.
  BOOL     = Boolean ON/OFF checkbox.
  INTERNAL = No GUI entry (used for persistent variables).
</literallayout>
    <para>If &lt;type&gt; is INTERNAL, then the &lt;value&gt; is always written into the cache, replacing any values existing in the cache.  If it is not a cache variable, then this always writes into the current makefile. The FORCE option will overwrite the cache value removing any changes by the user.
</para><para>If PARENT_SCOPE is present, the variable will be set in the scope above the current scope. Each new directory or function creates a new scope. This command will set the value of a variable into the parent directory or calling function (whichever is applicable to the case at hand).
</para><para>If &lt;value&gt; is not specified then the variable is removed instead of set.  See also: the unset() command.
</para><literallayout>  set(&lt;variable&gt; &lt;value1&gt; ... &lt;valueN&gt;)
</literallayout>
    <para>In this case &lt;variable&gt; is set to a semicolon separated list of values.
</para><para>&lt;variable&gt; can be an environment variable such as:
</para><literallayout>  set( ENV{PATH} /home/martink )
</literallayout>
    <para>in which case the environment variable will be set.</para>
    <para id="command_set_directory_properties"><sect2><title>set_directory_properties</title></sect2> Set a property of the directory.</para>

    <literallayout>  set_directory_properties(PROPERTIES prop1 value1 prop2 value2)
</literallayout>
    <para>Set a property for the current directory and subdirectories. If the property is not found, CMake will report an error. The properties include: INCLUDE_DIRECTORIES, LINK_DIRECTORIES, INCLUDE_REGULAR_EXPRESSION, and ADDITIONAL_MAKE_CLEAN_FILES. ADDITIONAL_MAKE_CLEAN_FILES is a list of files that will be cleaned as a part of "make clean" stage.</para>
    <para id="command_set_property"><sect2><title>set_property</title></sect2> Set a named property in a given scope.</para>

    <literallayout>  set_property(&lt;GLOBAL                            |
                DIRECTORY [dir]                   |
                TARGET    [target1 [target2 ...]] |
                SOURCE    [src1 [src2 ...]]       |
                TEST      [test1 [test2 ...]]     |
                CACHE     [entry1 [entry2 ...]]&gt;
               [APPEND] [APPEND_STRING]
               PROPERTY &lt;name&gt; [value1 [value2 ...]])
</literallayout>
    <para>Set one property on zero or more objects of a scope.  The first argument determines the scope in which the property is set.  It must be one of the following:
</para><para>GLOBAL scope is unique and does not accept a name.
</para><para>DIRECTORY scope defaults to the current directory but another directory (already processed by CMake) may be named by full or relative path.
</para><para>TARGET scope may name zero or more existing targets.
</para><para>SOURCE scope may name zero or more source files.  Note that source file properties are visible only to targets added in the same directory (CMakeLists.txt).
</para><para>TEST scope may name zero or more existing tests.
</para><para>CACHE scope must name zero or more cache existing entries.
</para><para>The required PROPERTY option is immediately followed by the name of the property to set.  Remaining arguments are used to compose the property value in the form of a semicolon-separated list.  If the APPEND option is given the list is appended to any existing property value.If the APPEND_STRING option is given the string is append to any existing property value as string, i.e. it results in a longer string and not a list of strings.</para>
    <para id="command_set_source_files_properties"><sect2><title>set_source_files_properties</title></sect2> Source files can have properties that affect how they are built.</para>

    <literallayout>  set_source_files_properties([file1 [file2 [...]]]
                              PROPERTIES prop1 value1
                              [prop2 value2 [...]])
</literallayout>
    <para>Set properties associated with source files using a key/value paired list.  See properties documentation for those known to CMake.  Unrecognized properties are ignored.  Source file properties are visible only to targets added in the same directory (CMakeLists.txt).</para>
    <para id="command_set_target_properties"><sect2><title>set_target_properties</title></sect2> Targets can have properties that affect how they are built.</para>

    <literallayout>  set_target_properties(target1 target2 ...
                        PROPERTIES prop1 value1
                        prop2 value2 ...)
</literallayout>
    <para>Set properties on a target. The syntax for the command is to list all the files you want to change, and then provide the values you want to set next.  You can use any prop value pair you want and extract it later with the GET_TARGET_PROPERTY command.
</para><para>Properties that affect the name of a target's output file are as follows.  The PREFIX and SUFFIX properties override the default target name prefix (such as "lib") and suffix (such as ".so"). IMPORT_PREFIX and IMPORT_SUFFIX are the equivalent properties for the import library corresponding to a DLL (for SHARED library targets).  OUTPUT_NAME sets the real name of a target when it is built and can be used to help create two targets of the same name even though CMake requires unique logical target names.  There is also a &lt;CONFIG&gt;_OUTPUT_NAME that can set the output name on a per-configuration basis.  &lt;CONFIG&gt;_POSTFIX sets a postfix for the real name of the target when it is built under the configuration named by &lt;CONFIG&gt; (in upper-case, such as "DEBUG_POSTFIX").  The value of this property is initialized when the target is created to the value of the variable CMAKE_&lt;CONFIG&gt;_POSTFIX (except for executable targets because earlier CMake versions which did not use this variable for executables).
</para><para>The LINK_FLAGS property can be used to add extra flags to the link step of a target. LINK_FLAGS_&lt;CONFIG&gt; will add to the configuration &lt;CONFIG&gt;, for example, DEBUG, RELEASE, MINSIZEREL, RELWITHDEBINFO. DEFINE_SYMBOL sets the name of the preprocessor symbol defined when compiling sources in a shared library. If not set here then it is set to target_EXPORTS by default (with some substitutions if the target is not a valid C identifier). This is useful for headers to know whether they are being included from inside their library or outside to properly setup dllexport/dllimport decorations. The COMPILE_FLAGS property sets additional compiler flags used to build sources within the target.  It may also be used to pass additional preprocessor definitions.
</para><para>The LINKER_LANGUAGE property is used to change the tool used to link an executable or shared library. The default is set the language to match the files in the library. CXX and C are common values for this property.
</para><para>For shared libraries VERSION and SOVERSION can be used to specify the build version and api version respectively. When building or installing appropriate symlinks are created if the platform supports symlinks and the linker supports so-names. If only one of both is specified the missing is assumed to have the same version number. For executables VERSION can be used to specify the build version. When building or installing appropriate symlinks are created if the platform supports symlinks. For shared libraries and executables on Windows the VERSION attribute is parsed to extract a "major.minor" version number. These numbers are used as the image version of the binary. 
</para><para>There are a few properties used to specify RPATH rules. INSTALL_RPATH is a semicolon-separated list specifying the rpath to use in installed targets (for platforms that support it). INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true will append directories in the linker search path and outside the project to the INSTALL_RPATH. SKIP_BUILD_RPATH is a boolean specifying whether to skip automatic generation of an rpath allowing the target to run from the build tree. BUILD_WITH_INSTALL_RPATH is a boolean specifying whether to link the target in the build tree with the INSTALL_RPATH.  This takes precedence over SKIP_BUILD_RPATH and avoids the need for relinking before installation.  INSTALL_NAME_DIR is a string specifying the directory portion of the "install_name" field of shared libraries on Mac OSX to use in the installed targets. When the target is created the values of the variables CMAKE_INSTALL_RPATH, CMAKE_INSTALL_RPATH_USE_LINK_PATH, CMAKE_SKIP_BUILD_RPATH, CMAKE_BUILD_WITH_INSTALL_RPATH, and CMAKE_INSTALL_NAME_DIR are used to initialize these properties.
</para><para>PROJECT_LABEL can be used to change the name of the target in an IDE like visual studio.  VS_KEYWORD can be set to change the visual studio keyword, for example QT integration works better if this is set to Qt4VSv1.0.
</para><para>VS_SCC_PROJECTNAME, VS_SCC_LOCALPATH, VS_SCC_PROVIDER and VS_SCC_AUXPATH can be set to add support for source control bindings in a  Visual Studio project file.
</para><para>VS_GLOBAL_&lt;variable&gt; can be set to add a Visual Studio project-specific global variable. Qt integration works better if VS_GLOBAL_QtVersion is set to the Qt version FindQt4.cmake found. For example, "4.7.3"
</para><para>The PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT properties are the old way to specify CMake scripts to run before and after installing a target.  They are used only when the old INSTALL_TARGETS command is used to install the target.  Use the INSTALL command instead.
</para><para>The EXCLUDE_FROM_DEFAULT_BUILD property is used by the visual studio generators.  If it is set to 1 the target will not be part of the default build when you select "Build Solution".</para>
    <para id="command_set_tests_properties"><sect2><title>set_tests_properties</title></sect2> Set a property of the tests.</para>

    <literallayout>  set_tests_properties(test1 [test2...] PROPERTIES prop1 value1 prop2 value2)
</literallayout>
    <para>Set a property for the tests. If the property is not found, CMake will report an error. The properties include:
</para><para>WILL_FAIL: If set to true, this will invert the pass/fail flag of the test.
</para><para>PASS_REGULAR_EXPRESSION: If set, the test output will be checked against the specified regular expressions and at least one of the regular expressions has to match, otherwise the test will fail.
</para><literallayout>  Example: PASS_REGULAR_EXPRESSION "TestPassed;All ok"
</literallayout>
    <para>FAIL_REGULAR_EXPRESSION: If set, if the output will match to one of specified regular expressions, the test will fail.
</para><literallayout>  Example: PASS_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed"
</literallayout>
    <para>Both PASS_REGULAR_EXPRESSION and FAIL_REGULAR_EXPRESSION expect a list of regular expressions.
</para><para>TIMEOUT: Setting this will limit the test runtime to the number of seconds specified.
</para>
    <para id="command_site_name"><sect2><title>site_name</title></sect2> Set the given variable to the name of the computer.</para>

    <literallayout>  site_name(variable)
</literallayout>
    
    <para id="command_source_group"><sect2><title>source_group</title></sect2> Define a grouping for sources in the makefile.</para>

    <literallayout>  source_group(name [REGULAR_EXPRESSION regex] [FILES src1 src2 ...])
</literallayout>
    <para>Defines a group into which sources will be placed in project files.  This is mainly used to setup file tabs in Visual Studio.  Any file whose name is listed or matches the regular expression will be placed in this group.  If a file matches multiple groups, the LAST group that explicitly lists the file will be favored, if any.  If no group explicitly lists the file, the LAST group whose regular expression matches the file will be favored.
</para><para>The name of the group may contain backslashes to specify subgroups:
</para><literallayout>  source_group(outer\\inner ...)
</literallayout>
    <para>For backwards compatibility, this command is also supports the format:
</para><literallayout>  source_group(name regex)</literallayout>
    
    <para id="command_string"><sect2><title>string</title></sect2> String operations.</para>

    <literallayout>  string(REGEX MATCH &lt;regular_expression&gt;
         &lt;output variable&gt; &lt;input&gt; [&lt;input&gt;...])
  string(REGEX MATCHALL &lt;regular_expression&gt;
         &lt;output variable&gt; &lt;input&gt; [&lt;input&gt;...])
  string(REGEX REPLACE &lt;regular_expression&gt;
         &lt;replace_expression&gt; &lt;output variable&gt;
         &lt;input&gt; [&lt;input&gt;...])
  string(REPLACE &lt;match_string&gt;
         &lt;replace_string&gt; &lt;output variable&gt;
         &lt;input&gt; [&lt;input&gt;...])
  string(&lt;MD5|SHA1|SHA224|SHA256|SHA384|SHA512&gt;
         &lt;output variable&gt; &lt;input&gt;)
  string(COMPARE EQUAL &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)
  string(COMPARE NOTEQUAL &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)
  string(COMPARE LESS &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)
  string(COMPARE GREATER &lt;string1&gt; &lt;string2&gt; &lt;output variable&gt;)
  string(ASCII &lt;number&gt; [&lt;number&gt; ...] &lt;output variable&gt;)
  string(CONFIGURE &lt;string1&gt; &lt;output variable&gt;
         [@ONLY] [ESCAPE_QUOTES])
  string(TOUPPER &lt;string1&gt; &lt;output variable&gt;)
  string(TOLOWER &lt;string1&gt; &lt;output variable&gt;)
  string(LENGTH &lt;string&gt; &lt;output variable&gt;)
  string(SUBSTRING &lt;string&gt; &lt;begin&gt; &lt;length&gt; &lt;output variable&gt;)
  string(STRIP &lt;string&gt; &lt;output variable&gt;)
  string(RANDOM [LENGTH &lt;length&gt;] [ALPHABET &lt;alphabet&gt;]
         [RANDOM_SEED &lt;seed&gt;] &lt;output variable&gt;)
  string(FIND &lt;string&gt; &lt;substring&gt; &lt;output variable&gt; [REVERSE])
</literallayout>
    <para>REGEX MATCH will match the regular expression once and store the match in the output variable.
</para><para>REGEX MATCHALL will match the regular expression as many times as possible and store the matches in the output variable as a list.
</para><para>REGEX REPLACE will match the regular expression as many times as possible and substitute the replacement expression for the match in the output.  The replace expression may refer to paren-delimited subexpressions of the match using \1, \2, ..., \9.  Note that two backslashes (\\1) are required in CMake code to get a backslash through argument parsing.
</para><para>REPLACE will replace all occurrences of match_string in the input with replace_string and store the result in the output.
</para><para>MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 will compute a cryptographic hash of the input string.
</para><para>COMPARE EQUAL/NOTEQUAL/LESS/GREATER will compare the strings and store true or false in the output variable.
</para><para>ASCII will convert all numbers into corresponding ASCII characters.
</para><para>CONFIGURE will transform a string like CONFIGURE_FILE transforms a file.
</para><para>TOUPPER/TOLOWER will convert string to upper/lower characters.
</para><para>LENGTH will return a given string's length.
</para><para>SUBSTRING will return a substring of a given string. If length is -1 the remainder of the string starting at begin will be returned.
</para><para>STRIP will return a substring of a given string with leading and trailing spaces removed.
</para><para>RANDOM will return a random string of given length consisting of characters from the given alphabet. Default length is 5 characters and default alphabet is all numbers and upper and lower case letters.  If an integer RANDOM_SEED is given, its value will be used to seed the random number generator.
</para><para>FIND will return the position where the given substring was found in the supplied string. If the REVERSE flag was used, the command will search for the position of the last occurrence of the specified substring.
</para><para>The following characters have special meaning in regular expressions:
</para><literallayout>   ^         Matches at beginning of a line
   $         Matches at end of a line
   .         Matches any single character
   [ ]       Matches any character(s) inside the brackets
   [^ ]      Matches any character(s) not inside the brackets
    -        Matches any character in range on either side of a dash
   *         Matches preceding pattern zero or more times
   +         Matches preceding pattern one or more times
   ?         Matches preceding pattern zero or once only
   |         Matches a pattern on either side of the |
   ()        Saves a matched subexpression, which can be referenced 
             in the REGEX REPLACE operation. Additionally it is saved
             by all regular expression-related commands, including 
             e.g. if( MATCHES ), in the variables CMAKE_MATCH_(0..9).</literallayout>
    
    <para id="command_target_link_libraries"><sect2><title>target_link_libraries</title></sect2> Link a target to given libraries.</para>

    <literallayout>  target_link_libraries(&lt;target&gt; [item1 [item2 [...]]]
                        [[debug|optimized|general] &lt;item&gt;] ...)
</literallayout>
    <para>Specify libraries or flags to use when linking a given target.  The named &lt;target&gt; must have been created in the current directory by a command such as add_executable or add_library.  The remaining arguments specify library names or flags.
</para><para>If a library name matches that of another target in the project a dependency will automatically be added in the build system to make sure the library being linked is up-to-date before the target links.  Item names starting with '-', but not '-l' or '-framework', are treated as linker flags.
</para><para>A "debug", "optimized", or "general" keyword indicates that the library immediately following it is to be used only for the corresponding build configuration.  The "debug" keyword corresponds to the Debug configuration (or to configurations named in the DEBUG_CONFIGURATIONS global property if it is set).  The "optimized" keyword corresponds to all other configurations.  The "general" keyword corresponds to all configurations, and is purely optional (assumed if omitted).  Higher granularity may be achieved for per-configuration rules by creating and linking to IMPORTED library targets.  See the IMPORTED mode of the add_library command for more information.  
</para><para>Library dependencies are transitive by default.  When this target is linked into another target then the libraries linked to this target will appear on the link line for the other target too.  See the LINK_INTERFACE_LIBRARIES target property to override the set of transitive link dependencies for a target.
</para><literallayout>  target_link_libraries(&lt;target&gt; LINK_INTERFACE_LIBRARIES
                        [[debug|optimized|general] &lt;lib&gt;] ...)
</literallayout>
    <para>The LINK_INTERFACE_LIBRARIES mode appends the libraries to the LINK_INTERFACE_LIBRARIES and its per-configuration equivalent target properties instead of using them for linking.  Libraries specified as "debug" are appended to the the LINK_INTERFACE_LIBRARIES_DEBUG property (or to the properties corresponding to configurations listed in the DEBUG_CONFIGURATIONS global property if it is set).  Libraries specified as "optimized" are appended to the the LINK_INTERFACE_LIBRARIES property.  Libraries specified as "general" (or without any keyword) are treated as if specified for both "debug" and "optimized".
</para><literallayout>  target_link_libraries(&lt;target&gt;
                        &lt;LINK_PRIVATE|LINK_PUBLIC&gt;
                          [[debug|optimized|general] &lt;lib&gt;] ...
                        [&lt;LINK_PRIVATE|LINK_PUBLIC&gt;
                          [[debug|optimized|general] &lt;lib&gt;] ...])
</literallayout>
    <para>The LINK_PUBLIC and LINK_PRIVATE modes can be used to specify both the link dependencies and the link interface in one command.  Libraries and targets following LINK_PUBLIC are linked to, and are made part of the LINK_INTERFACE_LIBRARIES. Libraries and targets following LINK_PRIVATE are linked to, but are not made part of the LINK_INTERFACE_LIBRARIES.  
</para><para>The library dependency graph is normally acyclic (a DAG), but in the case of mutually-dependent STATIC libraries CMake allows the graph to contain cycles (strongly connected components).  When another target links to one of the libraries CMake repeats the entire connected component.  For example, the code
</para><literallayout>  add_library(A STATIC a.c)
  add_library(B STATIC b.c)
  target_link_libraries(A B)
  target_link_libraries(B A)
  add_executable(main main.c)
  target_link_libraries(main A)
</literallayout>
    <para>links 'main' to 'A B A B'.  (While one repetition is usually sufficient, pathological object file and symbol arrangements can require more.  One may handle such cases by manually repeating the component in the last target_link_libraries call.  However, if two archives are really so interdependent they should probably be combined into a single archive.)</para>
    <para id="command_try_compile"><sect2><title>try_compile</title></sect2> Try building some code.</para>

    <literallayout>  try_compile(RESULT_VAR &lt;bindir&gt; &lt;srcdir&gt;
              &lt;projectName&gt; [targetName] [CMAKE_FLAGS flags...]
              [OUTPUT_VARIABLE &lt;var&gt;])
</literallayout>
    <para>Try building a project.  In this form, srcdir should contain a complete CMake project with a CMakeLists.txt file and all sources. The bindir and srcdir will not be deleted after this command is run. Specify targetName to build a specific target instead of the 'all' or 'ALL_BUILD' target.
</para><literallayout>  try_compile(RESULT_VAR &lt;bindir&gt; &lt;srcfile&gt;
              [CMAKE_FLAGS flags...]
              [COMPILE_DEFINITIONS flags...]
              [OUTPUT_VARIABLE &lt;var&gt;]
              [COPY_FILE &lt;fileName&gt;])
</literallayout>
    <para>Try building a source file into an executable.  In this form the user need only supply a source file that defines a 'main'.  CMake will create a CMakeLists.txt file to build the source as an executable.  Specify COPY_FILE to get a copy of the linked executable at the given fileName.
</para><para>In this version all files in bindir/CMakeFiles/CMakeTmp will be cleaned automatically. For debugging, --debug-trycompile can be passed to cmake to avoid this clean. However, multiple sequential try_compile operations reuse this single output directory. If you use --debug-trycompile, you can only debug one try_compile call at a time. The recommended procedure is to configure with cmake all the way through once, then delete the cache entry associated with the try_compile call of interest, and then re-run cmake again with --debug-trycompile.
</para><para>Some extra flags that can be included are,  INCLUDE_DIRECTORIES, LINK_DIRECTORIES, and LINK_LIBRARIES.  COMPILE_DEFINITIONS are -Ddefinition that will be passed to the compile line.  try_compile creates a CMakeList.txt file on the fly that looks like this:
</para><literallayout>  add_definitions( &lt;expanded COMPILE_DEFINITIONS from calling cmake&gt;)
  include_directories(${INCLUDE_DIRECTORIES})
  link_directories(${LINK_DIRECTORIES})
  add_executable(cmTryCompileExec sources)
  target_link_libraries(cmTryCompileExec ${LINK_LIBRARIES})
</literallayout>
    <para>In both versions of the command, if OUTPUT_VARIABLE is specified, then the output from the build process is stored in the given variable. The success or failure of the try_compile, i.e. TRUE or FALSE respectively, is returned in RESULT_VAR. CMAKE_FLAGS can be used to pass -DVAR:TYPE=VALUE flags to the cmake that is run during the build. Set variable CMAKE_TRY_COMPILE_CONFIGURATION to choose a build configuration.</para>
    <para id="command_try_run"><sect2><title>try_run</title></sect2> Try compiling and then running some code.</para>

    <literallayout>  try_run(RUN_RESULT_VAR COMPILE_RESULT_VAR
          bindir srcfile [CMAKE_FLAGS &lt;Flags&gt;]
          [COMPILE_DEFINITIONS &lt;flags&gt;]
          [COMPILE_OUTPUT_VARIABLE comp]
          [RUN_OUTPUT_VARIABLE run]
          [OUTPUT_VARIABLE var]
          [ARGS &lt;arg1&gt; &lt;arg2&gt;...])
</literallayout>
    <para>Try compiling a srcfile.  Return TRUE or FALSE for success or failure in COMPILE_RESULT_VAR.  Then if the compile succeeded, run the executable and return its exit code in RUN_RESULT_VAR. If the executable was built, but failed to run, then RUN_RESULT_VAR will be set to FAILED_TO_RUN. COMPILE_OUTPUT_VARIABLE specifies the variable where the output from the compile step goes. RUN_OUTPUT_VARIABLE specifies the variable where the output from the running executable goes.
</para><para>For compatibility reasons OUTPUT_VARIABLE is still supported, which gives you the output from the compile and run step combined.
</para><para>Cross compiling issues
</para><para>When cross compiling, the executable compiled in the first step usually cannot be run on the build host. try_run() checks the CMAKE_CROSSCOMPILING variable to detect whether CMake is in crosscompiling mode. If that's the case, it will still try to compile the executable, but it will not try to run the executable. Instead it will create cache variables which must be filled by the user or by presetting them in some CMake script file to the values the executable would have produced if it would have been run on its actual target platform. These variables are RUN_RESULT_VAR (explanation see above) and if RUN_OUTPUT_VARIABLE (or OUTPUT_VARIABLE) was used, an additional cache variable RUN_RESULT_VAR__COMPILE_RESULT_VAR__TRYRUN_OUTPUT.This is intended to hold stdout and stderr from the executable.
</para><para>In order to make cross compiling your project easier, use try_run only if really required. If you use try_run, use RUN_OUTPUT_VARIABLE (or OUTPUT_VARIABLE) only if really required. Using them will require that when crosscompiling, the cache variables will have to be set manually to the output of the executable. You can also "guard" the calls to try_run with if(CMAKE_CROSSCOMPILING) and provide an easy-to-preset alternative for this case.
</para><para>Set variable CMAKE_TRY_COMPILE_CONFIGURATION to choose a build configuration.</para>
    <para id="command_unset"><sect2><title>unset</title></sect2> Unset a variable, cache variable, or environment variable.</para>

    <literallayout>  unset(&lt;variable&gt; [CACHE])
</literallayout>
    <para>Removes the specified variable causing it to become undefined.  If CACHE is present then the variable is removed from the cache instead of the current scope.
</para><para>&lt;variable&gt; can be an environment variable such as:
</para><literallayout>  unset(ENV{LD_LIBRARY_PATH})
</literallayout>
    <para>in which case the variable will be removed from the current environment.</para>
    <para id="command_variable_watch"><sect2><title>variable_watch</title></sect2> Watch the CMake variable for change.</para>

    <literallayout>  variable_watch(&lt;variable name&gt; [&lt;command to execute&gt;])
</literallayout>
    <para>If the specified variable changes, the message will be printed about the variable being changed. If the command is specified, the command will be executed. The command will receive the following arguments: COMMAND(&lt;variable&gt; &lt;access&gt; &lt;value&gt; &lt;current list file&gt; &lt;stack&gt;)</para>
    <para id="command_while"><sect2><title>while</title></sect2> Evaluate a group of commands while a condition is true</para>

    <literallayout>  while(condition)
    COMMAND1(ARGS ...)
    COMMAND2(ARGS ...)
    ...
  endwhile(condition)
</literallayout>
    <para>All commands between while and the matching endwhile are recorded without being invoked.  Once the endwhile is evaluated, the recorded list of commands is invoked as long as the condition is true. The condition is evaluated using the same logic as the if command.</para>
</sect1>
<sect1 id="section_Properties">
<title>
Properties</title>
<itemizedlist>
</itemizedlist>
<literallayout>  CMake Properties - Properties supported by CMake, the Cross-Platform Makefile Generator.</literallayout>
    
<para>This is the documentation for the properties supported by CMake. Properties can have different scopes. They can either be assigned to a source file, a directory, a target or globally to CMake. By modifying the values of properties the behaviour of the build system can be customized.</para>
</sect1>
<sect1 id="section_Properties of Global Scope">
<title>
Properties of Global Scope</title>
<itemizedlist>
    <listitem><link linkend="prop_global_ALLOW_DUPLICATE_CUSTOM_TARGETS"><emphasis><literal>ALLOW_DUPLICATE_CUSTOM_TARGETS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_DEBUG_CONFIGURATIONS"><emphasis><literal>DEBUG_CONFIGURATIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_DISABLED_FEATURES"><emphasis><literal>DISABLED_FEATURES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_ENABLED_FEATURES"><emphasis><literal>ENABLED_FEATURES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_ENABLED_LANGUAGES"><emphasis><literal>ENABLED_LANGUAGES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_FIND_LIBRARY_USE_LIB64_PATHS"><emphasis><literal>FIND_LIBRARY_USE_LIB64_PATHS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_FIND_LIBRARY_USE_OPENBSD_VERSIONING"><emphasis><literal>FIND_LIBRARY_USE_OPENBSD_VERSIONING</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_GLOBAL_DEPENDS_DEBUG_MODE"><emphasis><literal>GLOBAL_DEPENDS_DEBUG_MODE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_GLOBAL_DEPENDS_NO_CYCLES"><emphasis><literal>GLOBAL_DEPENDS_NO_CYCLES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_IN_TRY_COMPILE"><emphasis><literal>IN_TRY_COMPILE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_PACKAGES_FOUND"><emphasis><literal>PACKAGES_FOUND</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_PACKAGES_NOT_FOUND"><emphasis><literal>PACKAGES_NOT_FOUND</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_PREDEFINED_TARGETS_FOLDER"><emphasis><literal>PREDEFINED_TARGETS_FOLDER</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_REPORT_UNDEFINED_PROPERTIES"><emphasis><literal>REPORT_UNDEFINED_PROPERTIES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_RULE_LAUNCH_COMPILE"><emphasis><literal>RULE_LAUNCH_COMPILE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_RULE_LAUNCH_CUSTOM"><emphasis><literal>RULE_LAUNCH_CUSTOM</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_RULE_LAUNCH_LINK"><emphasis><literal>RULE_LAUNCH_LINK</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_RULE_MESSAGES"><emphasis><literal>RULE_MESSAGES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_TARGET_ARCHIVES_MAY_BE_SHARED_LIBS"><emphasis><literal>TARGET_ARCHIVES_MAY_BE_SHARED_LIBS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_TARGET_SUPPORTS_SHARED_LIBS"><emphasis><literal>TARGET_SUPPORTS_SHARED_LIBS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global_USE_FOLDERS"><emphasis><literal>USE_FOLDERS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_global___CMAKE_DELETE_CACHE_CHANGE_VARS_"><emphasis><literal>__CMAKE_DELETE_CACHE_CHANGE_VARS_</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="prop_global_ALLOW_DUPLICATE_CUSTOM_TARGETS"><sect2><title>ALLOW_DUPLICATE_CUSTOM_TARGETS</title></sect2> Allow duplicate custom targets to be created.</para>

    <para>Normally CMake requires that all targets built in a project have globally unique logical names (see policy CMP0002).  This is necessary to generate meaningful project file names in Xcode and VS IDE generators.  It also allows the target names to be referenced unambiguously.
</para><para>Makefile generators are capable of supporting duplicate custom target names.  For projects that care only about Makefile generators and do not wish to support Xcode or VS IDE generators, one may set this property to true to allow duplicate custom targets.  The property allows multiple add_custom_target command calls in different directories to specify the same target name.  However, setting this property will cause non-Makefile generators to produce an error and refuse to generate the project.</para>
    <para id="prop_global_DEBUG_CONFIGURATIONS"><sect2><title>DEBUG_CONFIGURATIONS</title></sect2> Specify which configurations are for debugging.</para>

    <para>The value must be a semi-colon separated list of configuration names.  Currently this property is used only by the target_link_libraries command (see its documentation for details).  Additional uses may be defined in the future.  
</para><para>This property must be set at the top level of the project and before the first target_link_libraries command invocation.  If any entry in the list does not match a valid configuration for the project the behavior is undefined.</para>
    <para id="prop_global_DISABLED_FEATURES"><sect2><title>DISABLED_FEATURES</title></sect2> List of features which are disabled during the CMake run.</para>

    <para>List of features which are disabled during the CMake run. By default it contains the names of all packages which were not found. This is determined using the &lt;NAME&gt;_FOUND variables. Packages which are searched QUIET are not listed. A project can add its own features to this list. This property is used by the macros in FeatureSummary.cmake.</para>
    <para id="prop_global_ENABLED_FEATURES"><sect2><title>ENABLED_FEATURES</title></sect2> List of features which are enabled during the CMake run.</para>

    <para>List of features which are enabled during the CMake run. By default it contains the names of all packages which were found. This is determined using the &lt;NAME&gt;_FOUND variables. Packages which are searched QUIET are not listed. A project can add its own features to this list. This property is used by the macros in FeatureSummary.cmake.</para>
    <para id="prop_global_ENABLED_LANGUAGES"><sect2><title>ENABLED_LANGUAGES</title></sect2> Read-only property that contains the list of currently enabled languages</para>

    <para>Set to list of currently enabled languages.</para>
    <para id="prop_global_FIND_LIBRARY_USE_LIB64_PATHS"><sect2><title>FIND_LIBRARY_USE_LIB64_PATHS</title></sect2> Whether FIND_LIBRARY should automatically search lib64 directories.</para>

    <para>FIND_LIBRARY_USE_LIB64_PATHS is a boolean specifying whether the FIND_LIBRARY command should automatically search the lib64 variant of directories called lib in the search path when building 64-bit binaries.</para>
    <para id="prop_global_FIND_LIBRARY_USE_OPENBSD_VERSIONING"><sect2><title>FIND_LIBRARY_USE_OPENBSD_VERSIONING</title></sect2> Whether FIND_LIBRARY should find OpenBSD-style shared libraries.</para>

    <para>This property is a boolean specifying whether the FIND_LIBRARY command should find shared libraries with OpenBSD-style versioned extension: ".so.&lt;major&gt;.&lt;minor&gt;".  The property is set to true on OpenBSD and false on other platforms.</para>
    <para id="prop_global_GLOBAL_DEPENDS_DEBUG_MODE"><sect2><title>GLOBAL_DEPENDS_DEBUG_MODE</title></sect2> Enable global target dependency graph debug mode.</para>

    <para>CMake automatically analyzes the global inter-target dependency graph at the beginning of native build system generation.  This property causes it to display details of its analysis to stderr.</para>
    <para id="prop_global_GLOBAL_DEPENDS_NO_CYCLES"><sect2><title>GLOBAL_DEPENDS_NO_CYCLES</title></sect2> Disallow global target dependency graph cycles.</para>

    <para>CMake automatically analyzes the global inter-target dependency graph at the beginning of native build system generation.  It reports an error if the dependency graph contains a cycle that does not consist of all STATIC library targets.  This property tells CMake to disallow all cycles completely, even among static libraries.</para>
    <para id="prop_global_IN_TRY_COMPILE"><sect2><title>IN_TRY_COMPILE</title></sect2> Read-only property that is true during a try-compile configuration.</para>

    <para>True when building a project inside a TRY_COMPILE or TRY_RUN command.</para>
    <para id="prop_global_PACKAGES_FOUND"><sect2><title>PACKAGES_FOUND</title></sect2> List of packages which were found during the CMake run.</para>

    <para>List of packages which were found during the CMake run. Whether a package has been found is determined using the &lt;NAME&gt;_FOUND variables.</para>
    <para id="prop_global_PACKAGES_NOT_FOUND"><sect2><title>PACKAGES_NOT_FOUND</title></sect2> List of packages which were not found during the CMake run.</para>

    <para>List of packages which were not found during the CMake run. Whether a package has been found is determined using the &lt;NAME&gt;_FOUND variables.</para>
    <para id="prop_global_PREDEFINED_TARGETS_FOLDER"><sect2><title>PREDEFINED_TARGETS_FOLDER</title></sect2> Name of FOLDER for targets that are added automatically by CMake.</para>

    <para>If not set, CMake uses "CMakePredefinedTargets" as a default value for this property. Targets such as INSTALL, PACKAGE and RUN_TESTS will be organized into this FOLDER. See also the documentation for the FOLDER target property.</para>
    <para id="prop_global_REPORT_UNDEFINED_PROPERTIES"><sect2><title>REPORT_UNDEFINED_PROPERTIES</title></sect2> If set, report any undefined properties to this file.</para>

    <para>If this property is set to a filename then when CMake runs it will report any properties or variables that were accessed but not defined into the filename specified in this property.</para>
    <para id="prop_global_RULE_LAUNCH_COMPILE"><sect2><title>RULE_LAUNCH_COMPILE</title></sect2> Specify a launcher for compile rules.</para>

    <para>Makefile generators prefix compiler commands with the given launcher command line.  This is intended to allow launchers to intercept build problems with high granularity.  Non-Makefile generators currently ignore this property.</para>
    <para id="prop_global_RULE_LAUNCH_CUSTOM"><sect2><title>RULE_LAUNCH_CUSTOM</title></sect2> Specify a launcher for custom rules.</para>

    <para>Makefile generators prefix custom commands with the given launcher command line.  This is intended to allow launchers to intercept build problems with high granularity.  Non-Makefile generators currently ignore this property.</para>
    <para id="prop_global_RULE_LAUNCH_LINK"><sect2><title>RULE_LAUNCH_LINK</title></sect2> Specify a launcher for link rules.</para>

    <para>Makefile generators prefix link and archive commands with the given launcher command line.  This is intended to allow launchers to intercept build problems with high granularity.  Non-Makefile generators currently ignore this property.</para>
    <para id="prop_global_RULE_MESSAGES"><sect2><title>RULE_MESSAGES</title></sect2> Specify whether to report a message for each make rule.</para>

    <para>This property specifies whether Makefile generators should add a progress message describing what each build rule does.  If the property is not set the default is ON.  Set the property to OFF to disable granular messages and report only as each target completes.  This is intended to allow scripted builds to avoid the build time cost of detailed reports.  If a CMAKE_RULE_MESSAGES cache entry exists its value initializes the value of this property.  Non-Makefile generators currently ignore this property.</para>
    <para id="prop_global_TARGET_ARCHIVES_MAY_BE_SHARED_LIBS"><sect2><title>TARGET_ARCHIVES_MAY_BE_SHARED_LIBS</title></sect2> Set if shared libraries may be named like archives.</para>

    <para>On AIX shared libraries may be named "lib&lt;name&gt;.a".  This property is set to true on such platforms.</para>
    <para id="prop_global_TARGET_SUPPORTS_SHARED_LIBS"><sect2><title>TARGET_SUPPORTS_SHARED_LIBS</title></sect2> Does the target platform support shared libraries.</para>

    <para>TARGET_SUPPORTS_SHARED_LIBS is a boolean specifying whether the target platform supports shared libraries. Basically all current general general purpose OS do so, the exception are usually embedded systems with no or special OSs.</para>
    <para id="prop_global_USE_FOLDERS"><sect2><title>USE_FOLDERS</title></sect2> Use the FOLDER target property to organize targets into folders.</para>

    <para>If not set, CMake treats this property as OFF by default. CMake generators that are capable of organizing into a hierarchy of folders use the values of the FOLDER target property to name those folders. See also the documentation for the FOLDER target property.</para>
    <para id="prop_global___CMAKE_DELETE_CACHE_CHANGE_VARS_"><sect2><title>__CMAKE_DELETE_CACHE_CHANGE_VARS_</title></sect2> Internal property</para>

    <para>Used to detect compiler changes, Do not set.</para>
</sect1>
<sect1 id="section_Properties on Directories">
<title>
Properties on Directories</title>
<itemizedlist>
    <listitem><link linkend="prop_dir_ADDITIONAL_MAKE_CLEAN_FILES"><emphasis><literal>ADDITIONAL_MAKE_CLEAN_FILES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_CACHE_VARIABLES"><emphasis><literal>CACHE_VARIABLES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_CLEAN_NO_CUSTOM"><emphasis><literal>CLEAN_NO_CUSTOM</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_COMPILE_DEFINITIONS"><emphasis><literal>COMPILE_DEFINITIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_COMPILE_DEFINITIONS_&lt;CONFIG&gt;"><emphasis><literal>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_DEFINITIONS"><emphasis><literal>DEFINITIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_EXCLUDE_FROM_ALL"><emphasis><literal>EXCLUDE_FROM_ALL</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"><emphasis><literal>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_INCLUDE_DIRECTORIES"><emphasis><literal>INCLUDE_DIRECTORIES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_INCLUDE_REGULAR_EXPRESSION"><emphasis><literal>INCLUDE_REGULAR_EXPRESSION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_INTERPROCEDURAL_OPTIMIZATION"><emphasis><literal>INTERPROCEDURAL_OPTIMIZATION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;"><emphasis><literal>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_LINK_DIRECTORIES"><emphasis><literal>LINK_DIRECTORIES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_LISTFILE_STACK"><emphasis><literal>LISTFILE_STACK</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_MACROS"><emphasis><literal>MACROS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_PARENT_DIRECTORY"><emphasis><literal>PARENT_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_RULE_LAUNCH_COMPILE"><emphasis><literal>RULE_LAUNCH_COMPILE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_RULE_LAUNCH_CUSTOM"><emphasis><literal>RULE_LAUNCH_CUSTOM</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_RULE_LAUNCH_LINK"><emphasis><literal>RULE_LAUNCH_LINK</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_TEST_INCLUDE_FILE"><emphasis><literal>TEST_INCLUDE_FILE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_dir_VARIABLES"><emphasis><literal>VARIABLES</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="prop_dir_ADDITIONAL_MAKE_CLEAN_FILES"><sect2><title>ADDITIONAL_MAKE_CLEAN_FILES</title></sect2> Additional files to clean during the make clean stage.</para>

    <para>A list of files that will be cleaned as a part of the "make clean" stage. </para>
    <para id="prop_dir_CACHE_VARIABLES"><sect2><title>CACHE_VARIABLES</title></sect2> List of cache variables available in the current directory.</para>

    <para>This read-only property specifies the list of CMake cache variables currently defined.  It is intended for debugging purposes.</para>
    <para id="prop_dir_CLEAN_NO_CUSTOM"><sect2><title>CLEAN_NO_CUSTOM</title></sect2> Should the output of custom commands be left.</para>

    <para>If this is true then the outputs of custom commands for this directory will not be removed during the "make clean" stage. </para>
    <para id="prop_dir_COMPILE_DEFINITIONS"><sect2><title>COMPILE_DEFINITIONS</title></sect2> Preprocessor definitions for compiling a directory's sources.</para>

    <para>The COMPILE_DEFINITIONS property may be set to a semicolon-separated list of preprocessor definitions using the syntax VAR or VAR=value.  Function-style definitions are not supported.  CMake will automatically escape the value correctly for the native build system (note that CMake language syntax may require escapes to specify some values).  This property may be set on a per-configuration basis using the name COMPILE_DEFINITIONS_&lt;CONFIG&gt; where &lt;CONFIG&gt; is an upper-case name (ex. "COMPILE_DEFINITIONS_DEBUG").  This property will be initialized in each directory by its value in the directory's parent.
</para><para>CMake will automatically drop some definitions that are not supported by the native build tool.  The VS6 IDE does not support definition values with spaces (but NMake does).
</para><para>Disclaimer: Most native build tools have poor support for escaping certain values.  CMake has work-arounds for many cases but some values may just not be possible to pass correctly.  If a value does not seem to be escaped correctly, do not attempt to work-around the problem by adding escape sequences to the value.  Your work-around may break in a future version of CMake that has improved escape support.  Instead consider defining the macro in a (configured) header file.  Then report the limitation.  Known limitations include:
</para><literallayout>  #          - broken almost everywhere
  ;          - broken in VS IDE and Borland Makefiles
  ,          - broken in VS IDE
  %          - broken in some cases in NMake
  &amp; |        - broken in some cases on MinGW
  ^ &lt; &gt; \"   - broken in most Make tools on Windows
</literallayout>
    <para>CMake does not reject these values outright because they do work in some cases.  Use with caution.  </para>
    <para id="prop_dir_COMPILE_DEFINITIONS_&lt;CONFIG&gt;"><sect2><title>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</title></sect2> Per-configuration preprocessor definitions in a directory.</para>

    <para>This is the configuration-specific version of COMPILE_DEFINITIONS.  This property will be initialized in each directory by its value in the directory's parent.
</para>
    <para id="prop_dir_DEFINITIONS"><sect2><title>DEFINITIONS</title></sect2> For CMake 2.4 compatibility only.  Use COMPILE_DEFINITIONS instead.</para>

    <para>This read-only property specifies the list of flags given so far to the add_definitions command.  It is intended for debugging purposes.  Use the COMPILE_DEFINITIONS instead.</para>
    <para id="prop_dir_EXCLUDE_FROM_ALL"><sect2><title>EXCLUDE_FROM_ALL</title></sect2> Exclude the directory from the all target of its parent.</para>

    <para>A property on a directory that indicates if its targets are excluded from the default build target. If it is not, then with a Makefile for example typing make will cause the targets to be built. The same concept applies to the default build of other generators.</para>
    <para id="prop_dir_IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"><sect2><title>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</title></sect2> Specify #include line transforms for dependencies in a directory.</para>

    <para>This property specifies rules to transform macro-like #include lines during implicit dependency scanning of C and C++ source files.  The list of rules must be semicolon-separated with each entry of the form "A_MACRO(%)=value-with-%" (the % must be literal).  During dependency scanning occurrences of A_MACRO(...) on #include lines will be replaced by the value given with the macro argument substituted for '%'.  For example, the entry
</para><literallayout>  MYDIR(%)=&lt;mydir/%&gt;
</literallayout>
    <para>will convert lines of the form
</para><literallayout>  #include MYDIR(myheader.h)
</literallayout>
    <para>to
</para><literallayout>  #include &lt;mydir/myheader.h&gt;
</literallayout>
    <para>allowing the dependency to be followed.
</para><para>This property applies to sources in all targets within a directory.  The property value is initialized in each directory by its value in the directory's parent.</para>
    <para id="prop_dir_INCLUDE_DIRECTORIES"><sect2><title>INCLUDE_DIRECTORIES</title></sect2> List of preprocessor include file search directories.</para>

    <para>This property specifies the list of directories given so far to the include_directories command. This property exists on directories and targets. In addition to accepting values from the include_directories command, values may be set directly on any directory or any target using the set_property command. A target gets its initial value for this property from the value of the directory property. A directory gets its initial value from its parent directory if it has one. Both directory and target property values are adjusted by calls to the include_directories command.
</para><para>The target property values are used by the generators to set the include paths for the compiler. See also the include_directories command.</para>
    <para id="prop_dir_INCLUDE_REGULAR_EXPRESSION"><sect2><title>INCLUDE_REGULAR_EXPRESSION</title></sect2> Include file scanning regular expression.</para>

    <para>This read-only property specifies the regular expression used during dependency scanning to match include files that should be followed.  See the include_regular_expression command.</para>
    <para id="prop_dir_INTERPROCEDURAL_OPTIMIZATION"><sect2><title>INTERPROCEDURAL_OPTIMIZATION</title></sect2> Enable interprocedural optimization for targets in a directory.</para>

    <para>If set to true, enables interprocedural optimizations if they are known to be supported by the compiler.</para>
    <para id="prop_dir_INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;"><sect2><title>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</title></sect2> Per-configuration interprocedural optimization for a directory.</para>

    <para>This is a per-configuration version of INTERPROCEDURAL_OPTIMIZATION.  If set, this property overrides the generic property for the named configuration.</para>
    <para id="prop_dir_LINK_DIRECTORIES"><sect2><title>LINK_DIRECTORIES</title></sect2> List of linker search directories.</para>

    <para>This read-only property specifies the list of directories given so far to the link_directories command.  It is intended for debugging purposes.</para>
    <para id="prop_dir_LISTFILE_STACK"><sect2><title>LISTFILE_STACK</title></sect2> The current stack of listfiles being processed.</para>

    <para>This property is mainly useful when trying to debug errors in your CMake scripts. It returns a list of what list files are currently being processed, in order. So if one listfile does an INCLUDE command then that is effectively pushing the included listfile onto the stack.</para>
    <para id="prop_dir_MACROS"><sect2><title>MACROS</title></sect2> List of macro commands available in the current directory.</para>

    <para>This read-only property specifies the list of CMake macros currently defined.  It is intended for debugging purposes.  See the macro command.</para>
    <para id="prop_dir_PARENT_DIRECTORY"><sect2><title>PARENT_DIRECTORY</title></sect2> Source directory that added current subdirectory.</para>

    <para>This read-only property specifies the source directory that added the current source directory as a subdirectory of the build.  In the top-level directory the value is the empty-string.</para>
    <para id="prop_dir_RULE_LAUNCH_COMPILE"><sect2><title>RULE_LAUNCH_COMPILE</title></sect2> Specify a launcher for compile rules.</para>

    <para>See the global property of the same name for details.  This overrides the global property for a directory.</para>
    <para id="prop_dir_RULE_LAUNCH_CUSTOM"><sect2><title>RULE_LAUNCH_CUSTOM</title></sect2> Specify a launcher for custom rules.</para>

    <para>See the global property of the same name for details.  This overrides the global property for a directory.</para>
    <para id="prop_dir_RULE_LAUNCH_LINK"><sect2><title>RULE_LAUNCH_LINK</title></sect2> Specify a launcher for link rules.</para>

    <para>See the global property of the same name for details.  This overrides the global property for a directory.</para>
    <para id="prop_dir_TEST_INCLUDE_FILE"><sect2><title>TEST_INCLUDE_FILE</title></sect2> A cmake file that will be included when ctest is run.</para>

    <para>If you specify TEST_INCLUDE_FILE, that file will be included and processed when ctest is run on the directory.</para>
    <para id="prop_dir_VARIABLES"><sect2><title>VARIABLES</title></sect2> List of variables defined in the current directory.</para>

    <para>This read-only property specifies the list of CMake variables currently defined.  It is intended for debugging purposes.</para>
</sect1>
<sect1 id="section_Properties on Targets">
<title>
Properties on Targets</title>
<itemizedlist>
    <listitem><link linkend="prop_tgt_&lt;CONFIG&gt;_OUTPUT_NAME"><emphasis><literal>&lt;CONFIG&gt;_OUTPUT_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_&lt;CONFIG&gt;_POSTFIX"><emphasis><literal>&lt;CONFIG&gt;_POSTFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_ARCHIVE_OUTPUT_DIRECTORY"><emphasis><literal>ARCHIVE_OUTPUT_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt;"><emphasis><literal>ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_ARCHIVE_OUTPUT_NAME"><emphasis><literal>ARCHIVE_OUTPUT_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_ARCHIVE_OUTPUT_NAME_&lt;CONFIG&gt;"><emphasis><literal>ARCHIVE_OUTPUT_NAME_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_AUTOMOC"><emphasis><literal>AUTOMOC</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_AUTOMOC_MOC_OPTIONS"><emphasis><literal>AUTOMOC_MOC_OPTIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_BUILD_WITH_INSTALL_RPATH"><emphasis><literal>BUILD_WITH_INSTALL_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_BUNDLE"><emphasis><literal>BUNDLE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_BUNDLE_EXTENSION"><emphasis><literal>BUNDLE_EXTENSION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_COMPILE_DEFINITIONS"><emphasis><literal>COMPILE_DEFINITIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_COMPILE_DEFINITIONS_&lt;CONFIG&gt;"><emphasis><literal>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_COMPILE_FLAGS"><emphasis><literal>COMPILE_FLAGS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_DEBUG_POSTFIX"><emphasis><literal>DEBUG_POSTFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_DEFINE_SYMBOL"><emphasis><literal>DEFINE_SYMBOL</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_ENABLE_EXPORTS"><emphasis><literal>ENABLE_EXPORTS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_EXCLUDE_FROM_ALL"><emphasis><literal>EXCLUDE_FROM_ALL</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_EchoString"><emphasis><literal>EchoString</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_FOLDER"><emphasis><literal>FOLDER</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_FRAMEWORK"><emphasis><literal>FRAMEWORK</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_Fortran_FORMAT"><emphasis><literal>Fortran_FORMAT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_Fortran_MODULE_DIRECTORY"><emphasis><literal>Fortran_MODULE_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_GENERATOR_FILE_NAME"><emphasis><literal>GENERATOR_FILE_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_GNUtoMS"><emphasis><literal>GNUtoMS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_HAS_CXX"><emphasis><literal>HAS_CXX</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"><emphasis><literal>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED"><emphasis><literal>IMPORTED</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_CONFIGURATIONS"><emphasis><literal>IMPORTED_CONFIGURATIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_IMPLIB"><emphasis><literal>IMPORTED_IMPLIB</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_IMPLIB_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_IMPLIB_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_DEPENDENT_LIBRARIES"><emphasis><literal>IMPORTED_LINK_DEPENDENT_LIBRARIES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_DEPENDENT_LIBRARIES_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_LINK_DEPENDENT_LIBRARIES_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_INTERFACE_LANGUAGES"><emphasis><literal>IMPORTED_LINK_INTERFACE_LANGUAGES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_INTERFACE_LANGUAGES_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_LINK_INTERFACE_LANGUAGES_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_INTERFACE_LIBRARIES"><emphasis><literal>IMPORTED_LINK_INTERFACE_LIBRARIES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_INTERFACE_MULTIPLICITY"><emphasis><literal>IMPORTED_LINK_INTERFACE_MULTIPLICITY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LOCATION"><emphasis><literal>IMPORTED_LOCATION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_LOCATION_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_LOCATION_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_NO_SONAME"><emphasis><literal>IMPORTED_NO_SONAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_NO_SONAME_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_NO_SONAME_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_SONAME"><emphasis><literal>IMPORTED_SONAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORTED_SONAME_&lt;CONFIG&gt;"><emphasis><literal>IMPORTED_SONAME_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORT_PREFIX"><emphasis><literal>IMPORT_PREFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_IMPORT_SUFFIX"><emphasis><literal>IMPORT_SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_INCLUDE_DIRECTORIES"><emphasis><literal>INCLUDE_DIRECTORIES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_INSTALL_NAME_DIR"><emphasis><literal>INSTALL_NAME_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_INSTALL_RPATH"><emphasis><literal>INSTALL_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_INSTALL_RPATH_USE_LINK_PATH"><emphasis><literal>INSTALL_RPATH_USE_LINK_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_INTERPROCEDURAL_OPTIMIZATION"><emphasis><literal>INTERPROCEDURAL_OPTIMIZATION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;"><emphasis><literal>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LABELS"><emphasis><literal>LABELS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LIBRARY_OUTPUT_DIRECTORY"><emphasis><literal>LIBRARY_OUTPUT_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt;"><emphasis><literal>LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LIBRARY_OUTPUT_NAME"><emphasis><literal>LIBRARY_OUTPUT_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LIBRARY_OUTPUT_NAME_&lt;CONFIG&gt;"><emphasis><literal>LIBRARY_OUTPUT_NAME_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINKER_LANGUAGE"><emphasis><literal>LINKER_LANGUAGE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_DEPENDS"><emphasis><literal>LINK_DEPENDS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_FLAGS"><emphasis><literal>LINK_FLAGS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_FLAGS_&lt;CONFIG&gt;"><emphasis><literal>LINK_FLAGS_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_INTERFACE_LIBRARIES"><emphasis><literal>LINK_INTERFACE_LIBRARIES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;"><emphasis><literal>LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_INTERFACE_MULTIPLICITY"><emphasis><literal>LINK_INTERFACE_MULTIPLICITY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;"><emphasis><literal>LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_SEARCH_END_STATIC"><emphasis><literal>LINK_SEARCH_END_STATIC</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LINK_SEARCH_START_STATIC"><emphasis><literal>LINK_SEARCH_START_STATIC</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LOCATION"><emphasis><literal>LOCATION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_LOCATION_&lt;CONFIG&gt;"><emphasis><literal>LOCATION_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_MACOSX_BUNDLE"><emphasis><literal>MACOSX_BUNDLE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_MACOSX_BUNDLE_INFO_PLIST"><emphasis><literal>MACOSX_BUNDLE_INFO_PLIST</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_MACOSX_FRAMEWORK_INFO_PLIST"><emphasis><literal>MACOSX_FRAMEWORK_INFO_PLIST</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_MAP_IMPORTED_CONFIG_&lt;CONFIG&gt;"><emphasis><literal>MAP_IMPORTED_CONFIG_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_OSX_ARCHITECTURES"><emphasis><literal>OSX_ARCHITECTURES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_OSX_ARCHITECTURES_&lt;CONFIG&gt;"><emphasis><literal>OSX_ARCHITECTURES_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_OUTPUT_NAME"><emphasis><literal>OUTPUT_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_OUTPUT_NAME_&lt;CONFIG&gt;"><emphasis><literal>OUTPUT_NAME_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_POST_INSTALL_SCRIPT"><emphasis><literal>POST_INSTALL_SCRIPT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_PREFIX"><emphasis><literal>PREFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_PRE_INSTALL_SCRIPT"><emphasis><literal>PRE_INSTALL_SCRIPT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_PRIVATE_HEADER"><emphasis><literal>PRIVATE_HEADER</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_PROJECT_LABEL"><emphasis><literal>PROJECT_LABEL</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_PUBLIC_HEADER"><emphasis><literal>PUBLIC_HEADER</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RESOURCE"><emphasis><literal>RESOURCE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RULE_LAUNCH_COMPILE"><emphasis><literal>RULE_LAUNCH_COMPILE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RULE_LAUNCH_CUSTOM"><emphasis><literal>RULE_LAUNCH_CUSTOM</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RULE_LAUNCH_LINK"><emphasis><literal>RULE_LAUNCH_LINK</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RUNTIME_OUTPUT_DIRECTORY"><emphasis><literal>RUNTIME_OUTPUT_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt;"><emphasis><literal>RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RUNTIME_OUTPUT_NAME"><emphasis><literal>RUNTIME_OUTPUT_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_RUNTIME_OUTPUT_NAME_&lt;CONFIG&gt;"><emphasis><literal>RUNTIME_OUTPUT_NAME_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_SKIP_BUILD_RPATH"><emphasis><literal>SKIP_BUILD_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_SOURCES"><emphasis><literal>SOURCES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_SOVERSION"><emphasis><literal>SOVERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_STATIC_LIBRARY_FLAGS"><emphasis><literal>STATIC_LIBRARY_FLAGS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_STATIC_LIBRARY_FLAGS_&lt;CONFIG&gt;"><emphasis><literal>STATIC_LIBRARY_FLAGS_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_SUFFIX"><emphasis><literal>SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_TYPE"><emphasis><literal>TYPE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VERSION"><emphasis><literal>VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_DOTNET_REFERENCES"><emphasis><literal>VS_DOTNET_REFERENCES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_GLOBAL_&lt;variable&gt;"><emphasis><literal>VS_GLOBAL_&lt;variable&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_GLOBAL_KEYWORD"><emphasis><literal>VS_GLOBAL_KEYWORD</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_GLOBAL_PROJECT_TYPES"><emphasis><literal>VS_GLOBAL_PROJECT_TYPES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_KEYWORD"><emphasis><literal>VS_KEYWORD</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_SCC_AUXPATH"><emphasis><literal>VS_SCC_AUXPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_SCC_LOCALPATH"><emphasis><literal>VS_SCC_LOCALPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_SCC_PROJECTNAME"><emphasis><literal>VS_SCC_PROJECTNAME</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_SCC_PROVIDER"><emphasis><literal>VS_SCC_PROVIDER</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_WINRT_EXTENSIONS"><emphasis><literal>VS_WINRT_EXTENSIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_VS_WINRT_REFERENCES"><emphasis><literal>VS_WINRT_REFERENCES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_WIN32_EXECUTABLE"><emphasis><literal>WIN32_EXECUTABLE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_tgt_XCODE_ATTRIBUTE_&lt;an-attribute&gt;"><emphasis><literal>XCODE_ATTRIBUTE_&lt;an-attribute&gt;</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="prop_tgt_&lt;CONFIG&gt;_OUTPUT_NAME"><sect2><title>&lt;CONFIG&gt;_OUTPUT_NAME</title></sect2> Old per-configuration target file base name.</para>

    <para>This is a configuration-specific version of OUTPUT_NAME.  Use OUTPUT_NAME_&lt;CONFIG&gt; instead.</para>
    <para id="prop_tgt_&lt;CONFIG&gt;_POSTFIX"><sect2><title>&lt;CONFIG&gt;_POSTFIX</title></sect2> Postfix to append to the target file name for configuration &lt;CONFIG&gt;.</para>

    <para>When building with configuration &lt;CONFIG&gt; the value of this property is appended to the target file name built on disk.  For non-executable targets, this property is initialized by the value of the variable CMAKE_&lt;CONFIG&gt;_POSTFIX if it is set when a target is created.  This property is ignored on the Mac for Frameworks and App Bundles.</para>
    <para id="prop_tgt_ARCHIVE_OUTPUT_DIRECTORY"><sect2><title>ARCHIVE_OUTPUT_DIRECTORY</title></sect2> Output directory in which to build ARCHIVE target files.</para>

    <para>This property specifies the directory into which archive target files should be built. Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.  This property is initialized by the value of the variable CMAKE_ARCHIVE_OUTPUT_DIRECTORY if it is set when a target is created.</para>
    <para id="prop_tgt_ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt;"><sect2><title>ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</title></sect2> Per-configuration output directory for ARCHIVE target files.</para>

    <para>This is a per-configuration version of ARCHIVE_OUTPUT_DIRECTORY, but multi-configuration generators (VS, Xcode) do NOT append a per-configuration subdirectory to the specified directory.  This property is initialized by the value of the variable CMAKE_ARCHIVE_OUTPUT_DIRECTORY_&lt;CONFIG&gt; if it is set when a target is created.</para>
    <para id="prop_tgt_ARCHIVE_OUTPUT_NAME"><sect2><title>ARCHIVE_OUTPUT_NAME</title></sect2> Output name for ARCHIVE target files.</para>

    <para>This property specifies the base name for archive target files. It overrides OUTPUT_NAME and OUTPUT_NAME_&lt;CONFIG&gt; properties.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.</para>
    <para id="prop_tgt_ARCHIVE_OUTPUT_NAME_&lt;CONFIG&gt;"><sect2><title>ARCHIVE_OUTPUT_NAME_&lt;CONFIG&gt;</title></sect2> Per-configuration output name for ARCHIVE target files.</para>

    <para>This is the configuration-specific version of ARCHIVE_OUTPUT_NAME.</para>
    <para id="prop_tgt_AUTOMOC"><sect2><title>AUTOMOC</title></sect2> Should the target be processed with automoc (for Qt projects).</para>

    <para>AUTOMOC is a boolean specifying whether CMake will handle the Qt moc preprocessor automatically, i.e. without having to use the QT4_WRAP_CPP() macro. Currently Qt4 is supported. When this property is set to TRUE, CMake will scan the source files at build time and invoke moc accordingly. If an #include statement like #include "moc_foo.cpp" is found, the Q_OBJECT class declaration is expected in the header, and moc is run on the header file. If an #include statement like #include "foo.moc" is found, then a Q_OBJECT is expected in the current source file and moc is run on the file itself. Additionally, all header files are parsed for Q_OBJECT macros, and if found, moc is also executed on those files. The resulting moc files, which are not included as shown above in any of the source files are included in a generated &lt;targetname&gt;_automoc.cpp file, which is compiled as part of the target.This property is initialized by the value of the variable CMAKE_AUTOMOC if it is set when a target is created.
</para><para>Additional command line options for moc can be set via the AUTOMOC_MOC_OPTIONS property.
</para><para>By setting the CMAKE_AUTOMOC_RELAXED_MODE variable to TRUE the rules for searching the files which will be processed by moc can be relaxed. See the documentation for this variable for more details.</para>
    <para id="prop_tgt_AUTOMOC_MOC_OPTIONS"><sect2><title>AUTOMOC_MOC_OPTIONS</title></sect2> Additional options for moc when using automoc (see the AUTOMOC property)</para>

    <para>This property is only used if the AUTOMOC property is set to TRUE for this target. In this case, it holds additional command line options which will be used when moc is executed during the build, i.e. it is equivalent to the optional OPTIONS argument of the qt4_wrap_cpp() macro.
</para><para>By default it is empty.</para>
    <para id="prop_tgt_BUILD_WITH_INSTALL_RPATH"><sect2><title>BUILD_WITH_INSTALL_RPATH</title></sect2> Should build tree targets have install tree rpaths.</para>

    <para>BUILD_WITH_INSTALL_RPATH is a boolean specifying whether to link the target in the build tree with the INSTALL_RPATH.  This takes precedence over SKIP_BUILD_RPATH and avoids the need for relinking before installation.  This property is initialized by the value of the variable CMAKE_BUILD_WITH_INSTALL_RPATH if it is set when a target is created.</para>
    <para id="prop_tgt_BUNDLE"><sect2><title>BUNDLE</title></sect2> This target is a CFBundle on the Mac.</para>

    <para>If a module library target has this property set to true it will be built as a CFBundle when built on the mac. It will have the directory structure required for a CFBundle and will be suitable to be used for creating Browser Plugins or other application resources.</para>
    <para id="prop_tgt_BUNDLE_EXTENSION"><sect2><title>BUNDLE_EXTENSION</title></sect2> The file extension used to name a BUNDLE target on the Mac.</para>

    <para>The default value is "bundle" - you can also use "plugin" or whatever file extension is required by the host app for your bundle.</para>
    <para id="prop_tgt_COMPILE_DEFINITIONS"><sect2><title>COMPILE_DEFINITIONS</title></sect2> Preprocessor definitions for compiling a target's sources.</para>

    <para>The COMPILE_DEFINITIONS property may be set to a semicolon-separated list of preprocessor definitions using the syntax VAR or VAR=value.  Function-style definitions are not supported.  CMake will automatically escape the value correctly for the native build system (note that CMake language syntax may require escapes to specify some values).  This property may be set on a per-configuration basis using the name COMPILE_DEFINITIONS_&lt;CONFIG&gt; where &lt;CONFIG&gt; is an upper-case name (ex. "COMPILE_DEFINITIONS_DEBUG").
</para><para>CMake will automatically drop some definitions that are not supported by the native build tool.  The VS6 IDE does not support definition values with spaces (but NMake does).
</para><para>Disclaimer: Most native build tools have poor support for escaping certain values.  CMake has work-arounds for many cases but some values may just not be possible to pass correctly.  If a value does not seem to be escaped correctly, do not attempt to work-around the problem by adding escape sequences to the value.  Your work-around may break in a future version of CMake that has improved escape support.  Instead consider defining the macro in a (configured) header file.  Then report the limitation.  Known limitations include:
</para><literallayout>  #          - broken almost everywhere
  ;          - broken in VS IDE and Borland Makefiles
  ,          - broken in VS IDE
  %          - broken in some cases in NMake
  &amp; |        - broken in some cases on MinGW
  ^ &lt; &gt; \"   - broken in most Make tools on Windows
</literallayout>
    <para>CMake does not reject these values outright because they do work in some cases.  Use with caution.  </para>
    <para id="prop_tgt_COMPILE_DEFINITIONS_&lt;CONFIG&gt;"><sect2><title>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</title></sect2> Per-configuration preprocessor definitions on a target.</para>

    <para>This is the configuration-specific version of COMPILE_DEFINITIONS.</para>
    <para id="prop_tgt_COMPILE_FLAGS"><sect2><title>COMPILE_FLAGS</title></sect2> Additional flags to use when compiling this target's sources.</para>

    <para>The COMPILE_FLAGS property sets additional compiler flags used to build sources within the target.  Use COMPILE_DEFINITIONS to pass additional preprocessor definitions.</para>
    <para id="prop_tgt_DEBUG_POSTFIX"><sect2><title>DEBUG_POSTFIX</title></sect2> See target property &lt;CONFIG&gt;_POSTFIX.</para>

    <para>This property is a special case of the more-general &lt;CONFIG&gt;_POSTFIX property for the DEBUG configuration.</para>
    <para id="prop_tgt_DEFINE_SYMBOL"><sect2><title>DEFINE_SYMBOL</title></sect2> Define a symbol when compiling this target's sources.</para>

    <para>DEFINE_SYMBOL sets the name of the preprocessor symbol defined when compiling sources in a shared library. If not set here then it is set to target_EXPORTS by default (with some substitutions if the target is not a valid C identifier). This is useful for headers to know whether they are being included from inside their library our outside to properly setup dllexport/dllimport decorations. </para>
    <para id="prop_tgt_ENABLE_EXPORTS"><sect2><title>ENABLE_EXPORTS</title></sect2> Specify whether an executable exports symbols for loadable modules.</para>

    <para>Normally an executable does not export any symbols because it is the final program.  It is possible for an executable to export symbols to be used by loadable modules.  When this property is set to true CMake will allow other targets to "link" to the executable with the TARGET_LINK_LIBRARIES command.  On all platforms a target-level dependency on the executable is created for targets that link to it.  For DLL platforms an import library will be created for the exported symbols and then used for linking.  All Windows-based systems including Cygwin are DLL platforms.  For non-DLL platforms that require all symbols to be resolved at link time, such as Mac OS X, the module will "link" to the executable using a flag like "-bundle_loader".  For other non-DLL platforms the link rule is simply ignored since the dynamic loader will automatically bind symbols when the module is loaded.  </para>
    <para id="prop_tgt_EXCLUDE_FROM_ALL"><sect2><title>EXCLUDE_FROM_ALL</title></sect2> Exclude the target from the all target.</para>

    <para>A property on a target that indicates if the target is excluded from the default build target. If it is not, then with a Makefile for example typing make will cause this target to be built. The same concept applies to the default build of other generators. Installing a target with EXCLUDE_FROM_ALL set to true has undefined behavior.</para>
    <para id="prop_tgt_EchoString"><sect2><title>EchoString</title></sect2> A message to be displayed when the target is built.</para>

    <para>A message to display on some generators (such as makefiles) when the target is built.</para>
    <para id="prop_tgt_FOLDER"><sect2><title>FOLDER</title></sect2> Set the folder name. Use to organize targets in an IDE.</para>

    <para>Targets with no FOLDER property will appear as top level entities in IDEs like Visual Studio. Targets with the same FOLDER property value will appear next to each other in a folder of that name. To nest folders, use FOLDER values such as 'GUI/Dialogs' with '/' characters separating folder levels.</para>
    <para id="prop_tgt_FRAMEWORK"><sect2><title>FRAMEWORK</title></sect2> This target is a framework on the Mac.</para>

    <para>If a shared library target has this property set to true it will be built as a framework when built on the mac. It will have the directory structure required for a framework and will be suitable to be used with the -framework option</para>
    <para id="prop_tgt_Fortran_FORMAT"><sect2><title>Fortran_FORMAT</title></sect2> Set to FIXED or FREE to indicate the Fortran source layout.</para>

    <para>This property tells CMake whether the Fortran source files in a target use fixed-format or free-format.  CMake will pass the corresponding format flag to the compiler.  Use the source-specific Fortran_FORMAT property to change the format of a specific source file.  If the variable CMAKE_Fortran_FORMAT is set when a target is created its value is used to initialize this property.</para>
    <para id="prop_tgt_Fortran_MODULE_DIRECTORY"><sect2><title>Fortran_MODULE_DIRECTORY</title></sect2> Specify output directory for Fortran modules provided by the target.</para>

    <para>If the target contains Fortran source files that provide modules and the compiler supports a module output directory this specifies the directory in which the modules will be placed.  When this property is not set the modules will be placed in the build directory corresponding to the target's source directory.  If the variable CMAKE_Fortran_MODULE_DIRECTORY is set when a target is created its value is used to initialize this property.
</para><para>Note that some compilers will automatically search the module output directory for modules USEd during compilation but others will not.  If your sources USE modules their location must be specified by INCLUDE_DIRECTORIES regardless of this property.</para>
    <para id="prop_tgt_GENERATOR_FILE_NAME"><sect2><title>GENERATOR_FILE_NAME</title></sect2> Generator's file for this target.</para>

    <para>An internal property used by some generators to record the name of project or dsp file associated with this target.</para>
    <para id="prop_tgt_GNUtoMS"><sect2><title>GNUtoMS</title></sect2> Convert GNU import library (.dll.a) to MS format (.lib).</para>

    <para>When linking a shared library or executable that exports symbols using GNU tools on Windows (MinGW/MSYS) with Visual Studio installed convert the import library (.dll.a) from GNU to MS format (.lib).  Both import libraries will be installed by install(TARGETS) and exported by install(EXPORT) and export() to be linked by applications with either GNU- or MS-compatible tools.
</para><para>If the variable CMAKE_GNUtoMS is set when a target is created its value is used to initialize this property.  The variable must be set prior to the first command that enables a language such as project() or enable_language().  CMake provides the variable as an option to the user automatically when configuring on Windows with GNU tools.</para>
    <para id="prop_tgt_HAS_CXX"><sect2><title>HAS_CXX</title></sect2> Link the target using the C++ linker tool (obsolete).</para>

    <para>This is equivalent to setting the LINKER_LANGUAGE property to CXX.  See that property's documentation for details.</para>
    <para id="prop_tgt_IMPLICIT_DEPENDS_INCLUDE_TRANSFORM"><sect2><title>IMPLICIT_DEPENDS_INCLUDE_TRANSFORM</title></sect2> Specify #include line transforms for dependencies in a target.</para>

    <para>This property specifies rules to transform macro-like #include lines during implicit dependency scanning of C and C++ source files.  The list of rules must be semicolon-separated with each entry of the form "A_MACRO(%)=value-with-%" (the % must be literal).  During dependency scanning occurrences of A_MACRO(...) on #include lines will be replaced by the value given with the macro argument substituted for '%'.  For example, the entry
</para><literallayout>  MYDIR(%)=&lt;mydir/%&gt;
</literallayout>
    <para>will convert lines of the form
</para><literallayout>  #include MYDIR(myheader.h)
</literallayout>
    <para>to
</para><literallayout>  #include &lt;mydir/myheader.h&gt;
</literallayout>
    <para>allowing the dependency to be followed.
</para><para>This property applies to sources in the target on which it is set.</para>
    <para id="prop_tgt_IMPORTED"><sect2><title>IMPORTED</title></sect2> Read-only indication of whether a target is IMPORTED.</para>

    <para>The boolean value of this property is true for targets created with the IMPORTED option to add_executable or add_library.  It is false for targets built within the project.</para>
    <para id="prop_tgt_IMPORTED_CONFIGURATIONS"><sect2><title>IMPORTED_CONFIGURATIONS</title></sect2> Configurations provided for an IMPORTED target.</para>

    <para>Set this to the list of configuration names available for an IMPORTED target.  The names correspond to configurations defined in the project from which the target is imported.  If the importing project uses a different set of configurations the names may be mapped using the MAP_IMPORTED_CONFIG_&lt;CONFIG&gt; property.  Ignored for non-imported targets.</para>
    <para id="prop_tgt_IMPORTED_IMPLIB"><sect2><title>IMPORTED_IMPLIB</title></sect2> Full path to the import library for an IMPORTED target.</para>

    <para>Set this to the location of the ".lib" part of a windows DLL.  Ignored for non-imported targets.</para>
    <para id="prop_tgt_IMPORTED_IMPLIB_&lt;CONFIG&gt;"><sect2><title>IMPORTED_IMPLIB_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_IMPLIB property.</para>

    <para>Configuration names correspond to those provided by the project from which the target is imported.</para>
    <para id="prop_tgt_IMPORTED_LINK_DEPENDENT_LIBRARIES"><sect2><title>IMPORTED_LINK_DEPENDENT_LIBRARIES</title></sect2> Dependent shared libraries of an imported shared library.</para>

    <para>Shared libraries may be linked to other shared libraries as part of their implementation.  On some platforms the linker searches for the dependent libraries of shared libraries they are including in the link.  Set this property to the list of dependent shared libraries of an imported library.  The list should be disjoint from the list of interface libraries in the IMPORTED_LINK_INTERFACE_LIBRARIES property.  On platforms requiring dependent shared libraries to be found at link time CMake uses this list to add appropriate files or paths to the link command line.  Ignored for non-imported targets.</para>
    <para id="prop_tgt_IMPORTED_LINK_DEPENDENT_LIBRARIES_&lt;CONFIG&gt;"><sect2><title>IMPORTED_LINK_DEPENDENT_LIBRARIES_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_LINK_DEPENDENT_LIBRARIES.</para>

    <para>Configuration names correspond to those provided by the project from which the target is imported.  If set, this property completely overrides the generic property for the named configuration.</para>
    <para id="prop_tgt_IMPORTED_LINK_INTERFACE_LANGUAGES"><sect2><title>IMPORTED_LINK_INTERFACE_LANGUAGES</title></sect2> Languages compiled into an IMPORTED static library.</para>

    <para>Set this to the list of languages of source files compiled to produce a STATIC IMPORTED library (such as "C" or "CXX").  CMake accounts for these languages when computing how to link a target to the imported library.  For example, when a C executable links to an imported C++ static library CMake chooses the C++ linker to satisfy language runtime dependencies of the static library.  
</para><para>This property is ignored for targets that are not STATIC libraries.  This property is ignored for non-imported targets.</para>
    <para id="prop_tgt_IMPORTED_LINK_INTERFACE_LANGUAGES_&lt;CONFIG&gt;"><sect2><title>IMPORTED_LINK_INTERFACE_LANGUAGES_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_LINK_INTERFACE_LANGUAGES.</para>

    <para>Configuration names correspond to those provided by the project from which the target is imported.  If set, this property completely overrides the generic property for the named configuration.</para>
    <para id="prop_tgt_IMPORTED_LINK_INTERFACE_LIBRARIES"><sect2><title>IMPORTED_LINK_INTERFACE_LIBRARIES</title></sect2> Transitive link interface of an IMPORTED target.</para>

    <para>Set this to the list of libraries whose interface is included when an IMPORTED library target is linked to another target.  The libraries will be included on the link line for the target.  Unlike the LINK_INTERFACE_LIBRARIES property, this property applies to all imported target types, including STATIC libraries.  This property is ignored for non-imported targets.</para>
    <para id="prop_tgt_IMPORTED_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;"><sect2><title>IMPORTED_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_LINK_INTERFACE_LIBRARIES.</para>

    <para>Configuration names correspond to those provided by the project from which the target is imported.  If set, this property completely overrides the generic property for the named configuration.</para>
    <para id="prop_tgt_IMPORTED_LINK_INTERFACE_MULTIPLICITY"><sect2><title>IMPORTED_LINK_INTERFACE_MULTIPLICITY</title></sect2> Repetition count for cycles of IMPORTED static libraries.</para>

    <para>This is LINK_INTERFACE_MULTIPLICITY for IMPORTED targets.</para>
    <para id="prop_tgt_IMPORTED_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;"><sect2><title>IMPORTED_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_LINK_INTERFACE_MULTIPLICITY.</para>

    <para>If set, this property completely overrides the generic property for the named configuration.</para>
    <para id="prop_tgt_IMPORTED_LOCATION"><sect2><title>IMPORTED_LOCATION</title></sect2> Full path to the main file on disk for an IMPORTED target.</para>

    <para>Set this to the location of an IMPORTED target file on disk.  For executables this is the location of the executable file.  For bundles on OS X this is the location of the executable file inside Contents/MacOS under the application bundle folder.  For static libraries and modules this is the location of the library or module.  For shared libraries on non-DLL platforms this is the location of the shared library.  For frameworks on OS X this is the location of the library file symlink just inside the framework folder.  For DLLs this is the location of the ".dll" part of the library.  For UNKNOWN libraries this is the location of the file to be linked.  Ignored for non-imported targets.
</para><para>Projects may skip IMPORTED_LOCATION if the configuration-specific property IMPORTED_LOCATION_&lt;CONFIG&gt; is set.  To get the location of an imported target read one of the LOCATION or LOCATION_&lt;CONFIG&gt; properties.</para>
    <para id="prop_tgt_IMPORTED_LOCATION_&lt;CONFIG&gt;"><sect2><title>IMPORTED_LOCATION_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_LOCATION property.</para>

    <para>Configuration names correspond to those provided by the project from which the target is imported.</para>
    <para id="prop_tgt_IMPORTED_NO_SONAME"><sect2><title>IMPORTED_NO_SONAME</title></sect2> Specifies that an IMPORTED shared library target has no "soname".  </para>

    <para>Set this property to true for an imported shared library file that has no "soname" field.  CMake may adjust generated link commands for some platforms to prevent the linker from using the path to the library in place of its missing soname.  Ignored for non-imported targets.</para>
    <para id="prop_tgt_IMPORTED_NO_SONAME_&lt;CONFIG&gt;"><sect2><title>IMPORTED_NO_SONAME_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_NO_SONAME property.</para>

    <para>Configuration names correspond to those provided by the project from which the target is imported.</para>
    <para id="prop_tgt_IMPORTED_SONAME"><sect2><title>IMPORTED_SONAME</title></sect2> The "soname" of an IMPORTED target of shared library type.</para>

    <para>Set this to the "soname" embedded in an imported shared library.  This is meaningful only on platforms supporting the feature.  Ignored for non-imported targets.</para>
    <para id="prop_tgt_IMPORTED_SONAME_&lt;CONFIG&gt;"><sect2><title>IMPORTED_SONAME_&lt;CONFIG&gt;</title></sect2> &lt;CONFIG&gt;-specific version of IMPORTED_SONAME property.</para>

    <para>Configuration names correspond to those provided by the project from which the target is imported.</para>
    <para id="prop_tgt_IMPORT_PREFIX"><sect2><title>IMPORT_PREFIX</title></sect2> What comes before the import library name.</para>

    <para>Similar to the target property PREFIX, but used for import libraries (typically corresponding to a DLL) instead of regular libraries. A target property that can be set to override the prefix (such as "lib") on an import library name.</para>
    <para id="prop_tgt_IMPORT_SUFFIX"><sect2><title>IMPORT_SUFFIX</title></sect2> What comes after the import library name.</para>

    <para>Similar to the target property SUFFIX, but used for import libraries (typically corresponding to a DLL) instead of regular libraries. A target property that can be set to override the suffix (such as ".lib") on an import library name.</para>
    <para id="prop_tgt_INCLUDE_DIRECTORIES"><sect2><title>INCLUDE_DIRECTORIES</title></sect2> List of preprocessor include file search directories.</para>

    <para>This property specifies the list of directories given so far to the include_directories command. This property exists on directories and targets. In addition to accepting values from the include_directories command, values may be set directly on any directory or any target using the set_property command. A target gets its initial value for this property from the value of the directory property. A directory gets its initial value from its parent directory if it has one. Both directory and target property values are adjusted by calls to the include_directories command.
</para><para>The target property values are used by the generators to set the include paths for the compiler. See also the include_directories command.</para>
    <para id="prop_tgt_INSTALL_NAME_DIR"><sect2><title>INSTALL_NAME_DIR</title></sect2> Mac OSX directory name for installed targets.</para>

    <para>INSTALL_NAME_DIR is a string specifying the directory portion of the "install_name" field of shared libraries on Mac OSX to use in the installed targets. </para>
    <para id="prop_tgt_INSTALL_RPATH"><sect2><title>INSTALL_RPATH</title></sect2> The rpath to use for installed targets.</para>

    <para>A semicolon-separated list specifying the rpath to use in installed targets (for platforms that support it).  This property is initialized by the value of the variable CMAKE_INSTALL_RPATH if it is set when a target is created.</para>
    <para id="prop_tgt_INSTALL_RPATH_USE_LINK_PATH"><sect2><title>INSTALL_RPATH_USE_LINK_PATH</title></sect2> Add paths to linker search and installed rpath.</para>

    <para>INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true will append directories in the linker search path and outside the project to the INSTALL_RPATH.  This property is initialized by the value of the variable CMAKE_INSTALL_RPATH_USE_LINK_PATH if it is set when a target is created.</para>
    <para id="prop_tgt_INTERPROCEDURAL_OPTIMIZATION"><sect2><title>INTERPROCEDURAL_OPTIMIZATION</title></sect2> Enable interprocedural optimization for a target.</para>

    <para>If set to true, enables interprocedural optimizations if they are known to be supported by the compiler.</para>
    <para id="prop_tgt_INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;"><sect2><title>INTERPROCEDURAL_OPTIMIZATION_&lt;CONFIG&gt;</title></sect2> Per-configuration interprocedural optimization for a target.</para>

    <para>This is a per-configuration version of INTERPROCEDURAL_OPTIMIZATION.  If set, this property overrides the generic property for the named configuration.</para>
    <para id="prop_tgt_LABELS"><sect2><title>LABELS</title></sect2> Specify a list of text labels associated with a target.</para>

    <para>Target label semantics are currently unspecified.</para>
    <para id="prop_tgt_LIBRARY_OUTPUT_DIRECTORY"><sect2><title>LIBRARY_OUTPUT_DIRECTORY</title></sect2> Output directory in which to build LIBRARY target files.</para>

    <para>This property specifies the directory into which library target files should be built. Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.  This property is initialized by the value of the variable CMAKE_LIBRARY_OUTPUT_DIRECTORY if it is set when a target is created.</para>
    <para id="prop_tgt_LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt;"><sect2><title>LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</title></sect2> Per-configuration output directory for LIBRARY target files.</para>

    <para>This is a per-configuration version of LIBRARY_OUTPUT_DIRECTORY, but multi-configuration generators (VS, Xcode) do NOT append a per-configuration subdirectory to the specified directory.  This property is initialized by the value of the variable CMAKE_LIBRARY_OUTPUT_DIRECTORY_&lt;CONFIG&gt; if it is set when a target is created.</para>
    <para id="prop_tgt_LIBRARY_OUTPUT_NAME"><sect2><title>LIBRARY_OUTPUT_NAME</title></sect2> Output name for LIBRARY target files.</para>

    <para>This property specifies the base name for library target files. It overrides OUTPUT_NAME and OUTPUT_NAME_&lt;CONFIG&gt; properties.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.</para>
    <para id="prop_tgt_LIBRARY_OUTPUT_NAME_&lt;CONFIG&gt;"><sect2><title>LIBRARY_OUTPUT_NAME_&lt;CONFIG&gt;</title></sect2> Per-configuration output name for LIBRARY target files.</para>

    <para>This is the configuration-specific version of LIBRARY_OUTPUT_NAME.</para>
    <para id="prop_tgt_LINKER_LANGUAGE"><sect2><title>LINKER_LANGUAGE</title></sect2> Specifies language whose compiler will invoke the linker.</para>

    <para>For executables, shared libraries, and modules, this sets the language whose compiler is used to link the target (such as "C" or "CXX").  A typical value for an executable is the language of the source file providing the program entry point (main).  If not set, the language with the highest linker preference value is the default.  See documentation of CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE variables.</para>
    <para id="prop_tgt_LINK_DEPENDS"><sect2><title>LINK_DEPENDS</title></sect2> Additional files on which a target binary depends for linking.</para>

    <para>Specifies a semicolon-separated list of full-paths to files on which the link rule for this target depends.  The target binary will be linked if any of the named files is newer than it.
</para><para>This property is ignored by non-Makefile generators.  It is intended to specify dependencies on "linker scripts" for custom Makefile link rules.</para>
    <para id="prop_tgt_LINK_FLAGS"><sect2><title>LINK_FLAGS</title></sect2> Additional flags to use when linking this target.</para>

    <para>The LINK_FLAGS property can be used to add extra flags to the link step of a target. LINK_FLAGS_&lt;CONFIG&gt; will add to the configuration &lt;CONFIG&gt;, for example, DEBUG, RELEASE, MINSIZEREL, RELWITHDEBINFO. </para>
    <para id="prop_tgt_LINK_FLAGS_&lt;CONFIG&gt;"><sect2><title>LINK_FLAGS_&lt;CONFIG&gt;</title></sect2> Per-configuration linker flags for a target.</para>

    <para>This is the configuration-specific version of LINK_FLAGS.</para>
    <para id="prop_tgt_LINK_INTERFACE_LIBRARIES"><sect2><title>LINK_INTERFACE_LIBRARIES</title></sect2> List public interface libraries for a shared library or executable.</para>

    <para>By default linking to a shared library target transitively links to targets with which the library itself was linked.  For an executable with exports (see the ENABLE_EXPORTS property) no default transitive link dependencies are used.  This property replaces the default transitive link dependencies with an explicit list.  When the target is linked into another target the libraries listed (and recursively their link interface libraries) will be provided to the other target also.  If the list is empty then no transitive link dependencies will be incorporated when this target is linked into another target even if the default set is non-empty.  This property is initialized by the value of the variable CMAKE_LINK_INTERFACE_LIBRARIES if it is set when a target is created.  This property is ignored for STATIC libraries.</para>
    <para id="prop_tgt_LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;"><sect2><title>LINK_INTERFACE_LIBRARIES_&lt;CONFIG&gt;</title></sect2> Per-configuration list of public interface libraries for a target.</para>

    <para>This is the configuration-specific version of LINK_INTERFACE_LIBRARIES.  If set, this property completely overrides the generic property for the named configuration.</para>
    <para id="prop_tgt_LINK_INTERFACE_MULTIPLICITY"><sect2><title>LINK_INTERFACE_MULTIPLICITY</title></sect2> Repetition count for STATIC libraries with cyclic dependencies.</para>

    <para>When linking to a STATIC library target with cyclic dependencies the linker may need to scan more than once through the archives in the strongly connected component of the dependency graph.  CMake by default constructs the link line so that the linker will scan through the component at least twice.  This property specifies the minimum number of scans if it is larger than the default.  CMake uses the largest value specified by any target in a component.</para>
    <para id="prop_tgt_LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;"><sect2><title>LINK_INTERFACE_MULTIPLICITY_&lt;CONFIG&gt;</title></sect2> Per-configuration repetition count for cycles of STATIC libraries.</para>

    <para>This is the configuration-specific version of LINK_INTERFACE_MULTIPLICITY.  If set, this property completely overrides the generic property for the named configuration.</para>
    <para id="prop_tgt_LINK_SEARCH_END_STATIC"><sect2><title>LINK_SEARCH_END_STATIC</title></sect2> End a link line such that static system libraries are used.</para>

    <para>Some linkers support switches such as -Bstatic and -Bdynamic to determine whether to use static or shared libraries for -lXXX options.  CMake uses these options to set the link type for libraries whose full paths are not known or (in some cases) are in implicit link directories for the platform.  By default CMake adds an option at the end of the library list (if necessary) to set the linker search type back to its starting type.  This property switches the final linker search type to -Bstatic regardless of how it started.  See also LINK_SEARCH_START_STATIC.</para>
    <para id="prop_tgt_LINK_SEARCH_START_STATIC"><sect2><title>LINK_SEARCH_START_STATIC</title></sect2> Assume the linker looks for static libraries by default.</para>

    <para>Some linkers support switches such as -Bstatic and -Bdynamic to determine whether to use static or shared libraries for -lXXX options.  CMake uses these options to set the link type for libraries whose full paths are not known or (in some cases) are in implicit link directories for the platform.  By default the linker search type is assumed to be -Bdynamic at the beginning of the library list.  This property switches the assumption to -Bstatic.  It is intended for use when linking an executable statically (e.g. with the GNU -static option).  See also LINK_SEARCH_END_STATIC.</para>
    <para id="prop_tgt_LOCATION"><sect2><title>LOCATION</title></sect2> Read-only location of a target on disk.</para>

    <para>For an imported target, this read-only property returns the value of the LOCATION_&lt;CONFIG&gt; property for an unspecified configuration &lt;CONFIG&gt; provided by the target.
</para><para>For a non-imported target, this property is provided for compatibility with CMake 2.4 and below.  It was meant to get the location of an executable target's output file for use in add_custom_command.  The path may contain a build-system-specific portion that is replaced at build time with the configuration getting built (such as "$(ConfigurationName)" in VS). In CMake 2.6 and above add_custom_command automatically recognizes a target name in its COMMAND and DEPENDS options and computes the target location.  In CMake 2.8.4 and above add_custom_command recognizes generator expressions to refer to target locations anywhere in the command.  Therefore this property is not needed for creating custom commands.
</para><para>Do not set properties that affect the location of a target after reading this property.  These include properties whose names match "(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_&lt;CONFIG&gt;)?" or "(IMPLIB_)?(PREFIX|SUFFIX)".  Failure to follow this rule is not diagnosed and leaves the location of the target undefined.</para>
    <para id="prop_tgt_LOCATION_&lt;CONFIG&gt;"><sect2><title>LOCATION_&lt;CONFIG&gt;</title></sect2> Read-only property providing a target location on disk.</para>

    <para>A read-only property that indicates where a target's main file is located on disk for the configuration &lt;CONFIG&gt;.  The property is defined only for library and executable targets.  An imported target may provide a set of configurations different from that of the importing project.  By default CMake looks for an exact-match but otherwise uses an arbitrary available configuration.  Use the MAP_IMPORTED_CONFIG_&lt;CONFIG&gt; property to map imported configurations explicitly.
</para><para>Do not set properties that affect the location of a target after reading this property.  These include properties whose names match "(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_&lt;CONFIG&gt;)?" or "(IMPLIB_)?(PREFIX|SUFFIX)".  Failure to follow this rule is not diagnosed and leaves the location of the target undefined.</para>
    <para id="prop_tgt_MACOSX_BUNDLE"><sect2><title>MACOSX_BUNDLE</title></sect2> Build an executable as an application bundle on Mac OS X.</para>

    <para>When this property is set to true the executable when built on Mac OS X will be created as an application bundle.  This makes it a GUI executable that can be launched from the Finder.  See the MACOSX_BUNDLE_INFO_PLIST target property for information about creation of the Info.plist file for the application bundle.  This property is initialized by the value of the variable CMAKE_MACOSX_BUNDLE if it is set when a target is created.</para>
    <para id="prop_tgt_MACOSX_BUNDLE_INFO_PLIST"><sect2><title>MACOSX_BUNDLE_INFO_PLIST</title></sect2> Specify a custom Info.plist template for a Mac OS X App Bundle.</para>

    <para>An executable target with MACOSX_BUNDLE enabled will be built as an application bundle on Mac OS X.  By default its Info.plist file is created by configuring a template called MacOSXBundleInfo.plist.in located in the CMAKE_MODULE_PATH.  This property specifies an alternative template file name which may be a full path.
</para><para>The following target properties may be set to specify content to be configured into the file:
</para><literallayout>  MACOSX_BUNDLE_INFO_STRING
  MACOSX_BUNDLE_ICON_FILE
  MACOSX_BUNDLE_GUI_IDENTIFIER
  MACOSX_BUNDLE_LONG_VERSION_STRING
  MACOSX_BUNDLE_BUNDLE_NAME
  MACOSX_BUNDLE_SHORT_VERSION_STRING
  MACOSX_BUNDLE_BUNDLE_VERSION
  MACOSX_BUNDLE_COPYRIGHT
</literallayout>
    <para>CMake variables of the same name may be set to affect all targets in a directory that do not have each specific property set.  If a custom Info.plist is specified by this property it may of course hard-code all the settings instead of using the target properties.</para>
    <para id="prop_tgt_MACOSX_FRAMEWORK_INFO_PLIST"><sect2><title>MACOSX_FRAMEWORK_INFO_PLIST</title></sect2> Specify a custom Info.plist template for a Mac OS X Framework.</para>

    <para>An library target with FRAMEWORK enabled will be built as a framework on Mac OS X.  By default its Info.plist file is created by configuring a template called MacOSXFrameworkInfo.plist.in located in the CMAKE_MODULE_PATH.  This property specifies an alternative template file name which may be a full path.
</para><para>The following target properties may be set to specify content to be configured into the file:
</para><literallayout>  MACOSX_FRAMEWORK_ICON_FILE
  MACOSX_FRAMEWORK_IDENTIFIER
  MACOSX_FRAMEWORK_SHORT_VERSION_STRING
  MACOSX_FRAMEWORK_BUNDLE_VERSION
</literallayout>
    <para>CMake variables of the same name may be set to affect all targets in a directory that do not have each specific property set.  If a custom Info.plist is specified by this property it may of course hard-code all the settings instead of using the target properties.</para>
    <para id="prop_tgt_MAP_IMPORTED_CONFIG_&lt;CONFIG&gt;"><sect2><title>MAP_IMPORTED_CONFIG_&lt;CONFIG&gt;</title></sect2> Map from project configuration to IMPORTED target's configuration.</para>

    <para>Set this to the list of configurations of an imported target that may be used for the current project's &lt;CONFIG&gt; configuration.  Targets imported from another project may not provide the same set of configuration names available in the current project.  Setting this property tells CMake what imported configurations are suitable for use when building the &lt;CONFIG&gt; configuration.  The first configuration in the list found to be provided by the imported target is selected.  If no matching configurations are available the imported target is considered to be not found.  This property is ignored for non-imported targets.</para>
    <para id="prop_tgt_OSX_ARCHITECTURES"><sect2><title>OSX_ARCHITECTURES</title></sect2> Target specific architectures for OS X.</para>

    <para>The OSX_ARCHITECTURES property sets the target binary architecture for targets on OS X.  This property is initialized by the value of the variable CMAKE_OSX_ARCHITECTURES if it is set when a target is created.  Use OSX_ARCHITECTURES_&lt;CONFIG&gt; to set the binary architectures on a per-configuration basis.  &lt;CONFIG&gt; is an upper-case name (ex: "OSX_ARCHITECTURES_DEBUG").</para>
    <para id="prop_tgt_OSX_ARCHITECTURES_&lt;CONFIG&gt;"><sect2><title>OSX_ARCHITECTURES_&lt;CONFIG&gt;</title></sect2> Per-configuration OS X binary architectures for a target.</para>

    <para>This property is the configuration-specific version of OSX_ARCHITECTURES.</para>
    <para id="prop_tgt_OUTPUT_NAME"><sect2><title>OUTPUT_NAME</title></sect2> Output name for target files.</para>

    <para>This sets the base name for output files created for an executable or library target.  If not set, the logical target name is used by default.</para>
    <para id="prop_tgt_OUTPUT_NAME_&lt;CONFIG&gt;"><sect2><title>OUTPUT_NAME_&lt;CONFIG&gt;</title></sect2> Per-configuration target file base name.</para>

    <para>This is the configuration-specific version of OUTPUT_NAME.</para>
    <para id="prop_tgt_POST_INSTALL_SCRIPT"><sect2><title>POST_INSTALL_SCRIPT</title></sect2> Deprecated install support.</para>

    <para>The PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT properties are the old way to specify CMake scripts to run before and after installing a target.  They are used only when the old INSTALL_TARGETS command is used to install the target.  Use the INSTALL command instead.</para>
    <para id="prop_tgt_PREFIX"><sect2><title>PREFIX</title></sect2> What comes before the library name.</para>

    <para>A target property that can be set to override the prefix (such as "lib") on a library name.</para>
    <para id="prop_tgt_PRE_INSTALL_SCRIPT"><sect2><title>PRE_INSTALL_SCRIPT</title></sect2> Deprecated install support.</para>

    <para>The PRE_INSTALL_SCRIPT and POST_INSTALL_SCRIPT properties are the old way to specify CMake scripts to run before and after installing a target.  They are used only when the old INSTALL_TARGETS command is used to install the target.  Use the INSTALL command instead.</para>
    <para id="prop_tgt_PRIVATE_HEADER"><sect2><title>PRIVATE_HEADER</title></sect2> Specify private header files in a FRAMEWORK shared library target.</para>

    <para>Shared library targets marked with the FRAMEWORK property generate frameworks on OS X and normal shared libraries on other platforms.  This property may be set to a list of header files to be placed in the PrivateHeaders directory inside the framework folder.  On non-Apple platforms these headers may be installed using the PRIVATE_HEADER option to the install(TARGETS) command.</para>
    <para id="prop_tgt_PROJECT_LABEL"><sect2><title>PROJECT_LABEL</title></sect2> Change the name of a target in an IDE.</para>

    <para>Can be used to change the name of the target in an IDE like Visual Studio. </para>
    <para id="prop_tgt_PUBLIC_HEADER"><sect2><title>PUBLIC_HEADER</title></sect2> Specify public header files in a FRAMEWORK shared library target.</para>

    <para>Shared library targets marked with the FRAMEWORK property generate frameworks on OS X and normal shared libraries on other platforms.  This property may be set to a list of header files to be placed in the Headers directory inside the framework folder.  On non-Apple platforms these headers may be installed using the PUBLIC_HEADER option to the install(TARGETS) command.</para>
    <para id="prop_tgt_RESOURCE"><sect2><title>RESOURCE</title></sect2> Specify resource files in a FRAMEWORK shared library target.</para>

    <para>Shared library targets marked with the FRAMEWORK property generate frameworks on OS X and normal shared libraries on other platforms.  This property may be set to a list of files to be placed in the Resources directory inside the framework folder.  On non-Apple platforms these files may be installed using the RESOURCE option to the install(TARGETS) command.</para>
    <para id="prop_tgt_RULE_LAUNCH_COMPILE"><sect2><title>RULE_LAUNCH_COMPILE</title></sect2> Specify a launcher for compile rules.</para>

    <para>See the global property of the same name for details.  This overrides the global and directory property for a target.</para>
    <para id="prop_tgt_RULE_LAUNCH_CUSTOM"><sect2><title>RULE_LAUNCH_CUSTOM</title></sect2> Specify a launcher for custom rules.</para>

    <para>See the global property of the same name for details.  This overrides the global and directory property for a target.</para>
    <para id="prop_tgt_RULE_LAUNCH_LINK"><sect2><title>RULE_LAUNCH_LINK</title></sect2> Specify a launcher for link rules.</para>

    <para>See the global property of the same name for details.  This overrides the global and directory property for a target.</para>
    <para id="prop_tgt_RUNTIME_OUTPUT_DIRECTORY"><sect2><title>RUNTIME_OUTPUT_DIRECTORY</title></sect2> Output directory in which to build RUNTIME target files.</para>

    <para>This property specifies the directory into which runtime target files should be built. Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.  This property is initialized by the value of the variable CMAKE_RUNTIME_OUTPUT_DIRECTORY if it is set when a target is created.</para>
    <para id="prop_tgt_RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt;"><sect2><title>RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt;</title></sect2> Per-configuration output directory for RUNTIME target files.</para>

    <para>This is a per-configuration version of RUNTIME_OUTPUT_DIRECTORY, but multi-configuration generators (VS, Xcode) do NOT append a per-configuration subdirectory to the specified directory.  This property is initialized by the value of the variable CMAKE_RUNTIME_OUTPUT_DIRECTORY_&lt;CONFIG&gt; if it is set when a target is created.</para>
    <para id="prop_tgt_RUNTIME_OUTPUT_NAME"><sect2><title>RUNTIME_OUTPUT_NAME</title></sect2> Output name for RUNTIME target files.</para>

    <para>This property specifies the base name for runtime target files.  It overrides OUTPUT_NAME and OUTPUT_NAME_&lt;CONFIG&gt; properties.  There are three kinds of target files that may be built: archive, library, and runtime.  Executables are always treated as runtime targets. Static libraries are always treated as archive targets. Module libraries are always treated as library targets. For non-DLL platforms shared libraries are treated as library targets. For DLL platforms the DLL part of a shared library is treated as a runtime target and the corresponding import library is treated as an archive target. All Windows-based systems including Cygwin are DLL platforms.</para>
    <para id="prop_tgt_RUNTIME_OUTPUT_NAME_&lt;CONFIG&gt;"><sect2><title>RUNTIME_OUTPUT_NAME_&lt;CONFIG&gt;</title></sect2> Per-configuration output name for RUNTIME target files.</para>

    <para>This is the configuration-specific version of RUNTIME_OUTPUT_NAME.</para>
    <para id="prop_tgt_SKIP_BUILD_RPATH"><sect2><title>SKIP_BUILD_RPATH</title></sect2> Should rpaths be used for the build tree.</para>

    <para>SKIP_BUILD_RPATH is a boolean specifying whether to skip automatic generation of an rpath allowing the target to run from the build tree.  This property is initialized by the value of the variable CMAKE_SKIP_BUILD_RPATH if it is set when a target is created.</para>
    <para id="prop_tgt_SOURCES"><sect2><title>SOURCES</title></sect2> Source names specified for a target.</para>

    <para>Read-only list of sources specified for a target.  The names returned are suitable for passing to the set_source_files_properties command.</para>
    <para id="prop_tgt_SOVERSION"><sect2><title>SOVERSION</title></sect2> What version number is this target.</para>

    <para>For shared libraries VERSION and SOVERSION can be used to specify the build version and api version respectively. When building or installing appropriate symlinks are created if the platform supports symlinks and the linker supports so-names. If only one of both is specified the missing is assumed to have the same version number. For shared libraries and executables on Windows the VERSION attribute is parsed to extract a "major.minor" version number. These numbers are used as the image version of the binary. </para>
    <para id="prop_tgt_STATIC_LIBRARY_FLAGS"><sect2><title>STATIC_LIBRARY_FLAGS</title></sect2> Extra flags to use when linking static libraries.</para>

    <para>Extra flags to use when linking a static library.</para>
    <para id="prop_tgt_STATIC_LIBRARY_FLAGS_&lt;CONFIG&gt;"><sect2><title>STATIC_LIBRARY_FLAGS_&lt;CONFIG&gt;</title></sect2> Per-configuration flags for creating a static library.</para>

    <para>This is the configuration-specific version of STATIC_LIBRARY_FLAGS.</para>
    <para id="prop_tgt_SUFFIX"><sect2><title>SUFFIX</title></sect2> What comes after the target name.</para>

    <para>A target property that can be set to override the suffix (such as ".so" or ".exe") on the name of a library, module or executable.</para>
    <para id="prop_tgt_TYPE"><sect2><title>TYPE</title></sect2> The type of the target.</para>

    <para>This read-only property can be used to test the type of the given target. It will be one of STATIC_LIBRARY, MODULE_LIBRARY, SHARED_LIBRARY, EXECUTABLE or one of the internal target types.</para>
    <para id="prop_tgt_VERSION"><sect2><title>VERSION</title></sect2> What version number is this target.</para>

    <para>For shared libraries VERSION and SOVERSION can be used to specify the build version and api version respectively. When building or installing appropriate symlinks are created if the platform supports symlinks and the linker supports so-names. If only one of both is specified the missing is assumed to have the same version number. For executables VERSION can be used to specify the build version. When building or installing appropriate symlinks are created if the platform supports symlinks. For shared libraries and executables on Windows the VERSION attribute is parsed to extract a "major.minor" version number. These numbers are used as the image version of the binary. </para>
    <para id="prop_tgt_VS_DOTNET_REFERENCES"><sect2><title>VS_DOTNET_REFERENCES</title></sect2> Visual Studio managed project .NET references</para>

    <para>Adds one or more semicolon-delimited .NET references to a generated Visual Studio project. For example, "System;System.Windows.Forms".</para>
    <para id="prop_tgt_VS_GLOBAL_&lt;variable&gt;"><sect2><title>VS_GLOBAL_&lt;variable&gt;</title></sect2> Visual Studio project-specific global variable.</para>

    <para>Tell the Visual Studio generator to set the global variable '&lt;variable&gt;' to a given value in the generated Visual Studio project. Ignored on other generators. Qt integration works better if VS_GLOBAL_QtVersion is set to the version FindQt4.cmake found. For example, "4.7.3"</para>
    <para id="prop_tgt_VS_GLOBAL_KEYWORD"><sect2><title>VS_GLOBAL_KEYWORD</title></sect2> Visual Studio project keyword.</para>

    <para>Sets the "keyword" attribute for a generated Visual Studio project. Defaults to "Win32Proj". You may wish to override this value with "ManagedCProj", for example, in a Visual Studio managed C++ unit test project.</para>
    <para id="prop_tgt_VS_GLOBAL_PROJECT_TYPES"><sect2><title>VS_GLOBAL_PROJECT_TYPES</title></sect2> Visual Studio project type(s).</para>

    <para>Can be set to one or more UUIDs recognized by Visual Studio to indicate the type of project. This value is copied verbatim into the generated project file. Example for a managed C++ unit testing project:
</para><literallayout> {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}
</literallayout>
    <para>UUIDs are semicolon-delimited.</para>
    <para id="prop_tgt_VS_KEYWORD"><sect2><title>VS_KEYWORD</title></sect2> Visual Studio project keyword.</para>

    <para>Can be set to change the visual studio keyword, for example QT integration works better if this is set to Qt4VSv1.0. </para>
    <para id="prop_tgt_VS_SCC_AUXPATH"><sect2><title>VS_SCC_AUXPATH</title></sect2> Visual Studio Source Code Control Aux Path.</para>

    <para>Can be set to change the visual studio source code control auxpath property.</para>
    <para id="prop_tgt_VS_SCC_LOCALPATH"><sect2><title>VS_SCC_LOCALPATH</title></sect2> Visual Studio Source Code Control Local Path.</para>

    <para>Can be set to change the visual studio source code control local path property.</para>
    <para id="prop_tgt_VS_SCC_PROJECTNAME"><sect2><title>VS_SCC_PROJECTNAME</title></sect2> Visual Studio Source Code Control Project.</para>

    <para>Can be set to change the visual studio source code control project name property.</para>
    <para id="prop_tgt_VS_SCC_PROVIDER"><sect2><title>VS_SCC_PROVIDER</title></sect2> Visual Studio Source Code Control Provider.</para>

    <para>Can be set to change the visual studio source code control provider property.</para>
    <para id="prop_tgt_VS_WINRT_EXTENSIONS"><sect2><title>VS_WINRT_EXTENSIONS</title></sect2> Visual Studio project C++/CX language extensions for Windows Runtime</para>

    <para>Can be set to enable C++/CX language extensions.</para>
    <para id="prop_tgt_VS_WINRT_REFERENCES"><sect2><title>VS_WINRT_REFERENCES</title></sect2> Visual Studio project Windows Runtime Metadata references</para>

    <para>Adds one or more semicolon-delimited WinRT references to a generated Visual Studio project. For example, "Windows;Windows.UI.Core".</para>
    <para id="prop_tgt_WIN32_EXECUTABLE"><sect2><title>WIN32_EXECUTABLE</title></sect2> Build an executable with a WinMain entry point on windows.</para>

    <para>When this property is set to true the executable when linked on Windows will be created with a WinMain() entry point instead of of just main().This makes it a GUI executable instead of a console application.  See the CMAKE_MFC_FLAG variable documentation to configure use of MFC for WinMain executables.  This property is initialized by the value of the variable CMAKE_WIN32_EXECUTABLE if it is set when a target is created.</para>
    <para id="prop_tgt_XCODE_ATTRIBUTE_&lt;an-attribute&gt;"><sect2><title>XCODE_ATTRIBUTE_&lt;an-attribute&gt;</title></sect2> Set Xcode target attributes directly.</para>

    <para>Tell the Xcode generator to set '&lt;an-attribute&gt;' to a given value in the generated Xcode project.  Ignored on other generators.</para>
</sect1>
<sect1 id="section_Properties on Tests">
<title>
Properties on Tests</title>
<itemizedlist>
    <listitem><link linkend="prop_test_ATTACHED_FILES"><emphasis><literal>ATTACHED_FILES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_ATTACHED_FILES_ON_FAIL"><emphasis><literal>ATTACHED_FILES_ON_FAIL</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_COST"><emphasis><literal>COST</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_DEPENDS"><emphasis><literal>DEPENDS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_ENVIRONMENT"><emphasis><literal>ENVIRONMENT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_FAIL_REGULAR_EXPRESSION"><emphasis><literal>FAIL_REGULAR_EXPRESSION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_LABELS"><emphasis><literal>LABELS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_MEASUREMENT"><emphasis><literal>MEASUREMENT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_PASS_REGULAR_EXPRESSION"><emphasis><literal>PASS_REGULAR_EXPRESSION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_PROCESSORS"><emphasis><literal>PROCESSORS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_REQUIRED_FILES"><emphasis><literal>REQUIRED_FILES</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_RESOURCE_LOCK"><emphasis><literal>RESOURCE_LOCK</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_RUN_SERIAL"><emphasis><literal>RUN_SERIAL</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_TIMEOUT"><emphasis><literal>TIMEOUT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_WILL_FAIL"><emphasis><literal>WILL_FAIL</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_test_WORKING_DIRECTORY"><emphasis><literal>WORKING_DIRECTORY</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="prop_test_ATTACHED_FILES"><sect2><title>ATTACHED_FILES</title></sect2> Attach a list of files to a dashboard submission.</para>

    <para>Set this property to a list of files that will be encoded and submitted to the dashboard as an addition to the test result.</para>
    <para id="prop_test_ATTACHED_FILES_ON_FAIL"><sect2><title>ATTACHED_FILES_ON_FAIL</title></sect2> Attach a list of files to a dashboard submission if the test fails.</para>

    <para>Same as ATTACHED_FILES, but these files will only be included if the test does not pass.</para>
    <para id="prop_test_COST"><sect2><title>COST</title></sect2> Set this to a floating point value. Tests in a test set will be run in descending order of cost.</para>

    <para>This property describes the cost of a test. You can explicitly set this value; tests with higher COST values will run first.</para>
    <para id="prop_test_DEPENDS"><sect2><title>DEPENDS</title></sect2> Specifies that this test should only be run after the specified list of tests.</para>

    <para>Set this to a list of tests that must finish before this test is run.</para>
    <para id="prop_test_ENVIRONMENT"><sect2><title>ENVIRONMENT</title></sect2> Specify environment variables that should be defined for running a test.</para>

    <para>If set to a list of environment variables and values of the form MYVAR=value those environment variables will be defined while running the test. The environment is restored to its previous state after the test is done.</para>
    <para id="prop_test_FAIL_REGULAR_EXPRESSION"><sect2><title>FAIL_REGULAR_EXPRESSION</title></sect2> If the output matches this regular expression the test will fail.</para>

    <para>If set, if the output matches one of specified regular expressions, the test will fail.For example: PASS_REGULAR_EXPRESSION "[^a-z]Error;ERROR;Failed"</para>
    <para id="prop_test_LABELS"><sect2><title>LABELS</title></sect2> Specify a list of text labels associated with a test.</para>

    <para>The list is reported in dashboard submissions.</para>
    <para id="prop_test_MEASUREMENT"><sect2><title>MEASUREMENT</title></sect2> Specify a CDASH measurement and value to be reported for a test.</para>

    <para>If set to a name then that name will be reported to CDASH as a named measurement with a value of 1. You may also specify a value by setting MEASUREMENT to "measurement=value".</para>
    <para id="prop_test_PASS_REGULAR_EXPRESSION"><sect2><title>PASS_REGULAR_EXPRESSION</title></sect2> The output must match this regular expression for the test to pass.</para>

    <para>If set, the test output will be checked against the specified regular expressions and at least one of the regular expressions has to match, otherwise the test will fail.</para>
    <para id="prop_test_PROCESSORS"><sect2><title>PROCESSORS</title></sect2> How many process slots this test requires</para>

    <para>Denotes the number of processors that this test will require. This is typically used for MPI tests, and should be used in conjunction with the ctest_test PARALLEL_LEVEL option.</para>
    <para id="prop_test_REQUIRED_FILES"><sect2><title>REQUIRED_FILES</title></sect2> List of files required to run the test.</para>

    <para>If set to a list of files, the test will not be run unless all of the files exist.</para>
    <para id="prop_test_RESOURCE_LOCK"><sect2><title>RESOURCE_LOCK</title></sect2> Specify a list of resources that are locked by this test.</para>

    <para>If multiple tests specify the same resource lock, they are guaranteed not to run concurrently.</para>
    <para id="prop_test_RUN_SERIAL"><sect2><title>RUN_SERIAL</title></sect2> Do not run this test in parallel with any other test.</para>

    <para>Use this option in conjunction with the ctest_test PARALLEL_LEVEL option to specify that this test should not be run in parallel with any other tests.</para>
    <para id="prop_test_TIMEOUT"><sect2><title>TIMEOUT</title></sect2> How many seconds to allow for this test.</para>

    <para>This property if set will limit a test to not take more than the specified number of seconds to run. If it exceeds that the test process will be killed and ctest will move to the next test. This setting takes precedence over CTEST_TESTING_TIMEOUT.</para>
    <para id="prop_test_WILL_FAIL"><sect2><title>WILL_FAIL</title></sect2> If set to true, this will invert the pass/fail flag of the test.</para>

    <para>This property can be used for tests that are expected to fail and return a non zero return code.</para>
    <para id="prop_test_WORKING_DIRECTORY"><sect2><title>WORKING_DIRECTORY</title></sect2> The directory from which the test executable will be called.</para>

    <para>If this is not set it is called from the directory the test executable is located in.</para>
</sect1>
<sect1 id="section_Properties on Source Files">
<title>
Properties on Source Files</title>
<itemizedlist>
    <listitem><link linkend="prop_sf_ABSTRACT"><emphasis><literal>ABSTRACT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_COMPILE_DEFINITIONS"><emphasis><literal>COMPILE_DEFINITIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_COMPILE_DEFINITIONS_&lt;CONFIG&gt;"><emphasis><literal>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_COMPILE_FLAGS"><emphasis><literal>COMPILE_FLAGS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_EXTERNAL_OBJECT"><emphasis><literal>EXTERNAL_OBJECT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_Fortran_FORMAT"><emphasis><literal>Fortran_FORMAT</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_GENERATED"><emphasis><literal>GENERATED</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_HEADER_FILE_ONLY"><emphasis><literal>HEADER_FILE_ONLY</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_KEEP_EXTENSION"><emphasis><literal>KEEP_EXTENSION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_LABELS"><emphasis><literal>LABELS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_LANGUAGE"><emphasis><literal>LANGUAGE</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_LOCATION"><emphasis><literal>LOCATION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_MACOSX_PACKAGE_LOCATION"><emphasis><literal>MACOSX_PACKAGE_LOCATION</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_OBJECT_DEPENDS"><emphasis><literal>OBJECT_DEPENDS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_OBJECT_OUTPUTS"><emphasis><literal>OBJECT_OUTPUTS</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_SYMBOLIC"><emphasis><literal>SYMBOLIC</literal></emphasis></link></listitem>
    <listitem><link linkend="prop_sf_WRAP_EXCLUDE"><emphasis><literal>WRAP_EXCLUDE</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="prop_sf_ABSTRACT"><sect2><title>ABSTRACT</title></sect2> Is this source file an abstract class.</para>

    <para>A property on a source file that indicates if the source file represents a class that is abstract. This only makes sense for languages that have a notion of an abstract class and it is only used by some tools that wrap classes into other languages.</para>
    <para id="prop_sf_COMPILE_DEFINITIONS"><sect2><title>COMPILE_DEFINITIONS</title></sect2> Preprocessor definitions for compiling a source file.</para>

    <para>The COMPILE_DEFINITIONS property may be set to a semicolon-separated list of preprocessor definitions using the syntax VAR or VAR=value.  Function-style definitions are not supported.  CMake will automatically escape the value correctly for the native build system (note that CMake language syntax may require escapes to specify some values).  This property may be set on a per-configuration basis using the name COMPILE_DEFINITIONS_&lt;CONFIG&gt; where &lt;CONFIG&gt; is an upper-case name (ex. "COMPILE_DEFINITIONS_DEBUG").
</para><para>CMake will automatically drop some definitions that are not supported by the native build tool.  The VS6 IDE does not support definition values with spaces (but NMake does).  Xcode does not support per-configuration definitions on source files.
</para><para>Disclaimer: Most native build tools have poor support for escaping certain values.  CMake has work-arounds for many cases but some values may just not be possible to pass correctly.  If a value does not seem to be escaped correctly, do not attempt to work-around the problem by adding escape sequences to the value.  Your work-around may break in a future version of CMake that has improved escape support.  Instead consider defining the macro in a (configured) header file.  Then report the limitation.  Known limitations include:
</para><literallayout>  #          - broken almost everywhere
  ;          - broken in VS IDE and Borland Makefiles
  ,          - broken in VS IDE
  %          - broken in some cases in NMake
  &amp; |        - broken in some cases on MinGW
  ^ &lt; &gt; \"   - broken in most Make tools on Windows
</literallayout>
    <para>CMake does not reject these values outright because they do work in some cases.  Use with caution.  </para>
    <para id="prop_sf_COMPILE_DEFINITIONS_&lt;CONFIG&gt;"><sect2><title>COMPILE_DEFINITIONS_&lt;CONFIG&gt;</title></sect2> Per-configuration preprocessor definitions on a source file.</para>

    <para>This is the configuration-specific version of COMPILE_DEFINITIONS.  Note that Xcode does not support per-configuration source file flags so this property will be ignored by the Xcode generator.</para>
    <para id="prop_sf_COMPILE_FLAGS"><sect2><title>COMPILE_FLAGS</title></sect2> Additional flags to be added when compiling this source file.</para>

    <para>These flags will be added to the list of compile flags when this source file builds.  Use COMPILE_DEFINITIONS to pass additional preprocessor definitions.</para>
    <para id="prop_sf_EXTERNAL_OBJECT"><sect2><title>EXTERNAL_OBJECT</title></sect2> If set to true then this is an object file.</para>

    <para>If this property is set to true then the source file is really an object file and should not be compiled.  It will still be linked into the target though.</para>
    <para id="prop_sf_Fortran_FORMAT"><sect2><title>Fortran_FORMAT</title></sect2> Set to FIXED or FREE to indicate the Fortran source layout.</para>

    <para>This property tells CMake whether a given Fortran source file uses fixed-format or free-format.  CMake will pass the corresponding format flag to the compiler.  Consider using the target-wide Fortran_FORMAT property if all source files in a target share the same format.</para>
    <para id="prop_sf_GENERATED"><sect2><title>GENERATED</title></sect2> Is this source file generated as part of the build process.</para>

    <para>If a source file is generated by the build process CMake will handle it differently in terms of dependency checking etc. Otherwise having a non-existent source file could create problems.</para>
    <para id="prop_sf_HEADER_FILE_ONLY"><sect2><title>HEADER_FILE_ONLY</title></sect2> Is this source file only a header file.</para>

    <para>A property on a source file that indicates if the source file is a header file with no associated implementation. This is set automatically based on the file extension and is used by CMake to determine is certain dependency information should be computed.</para>
    <para id="prop_sf_KEEP_EXTENSION"><sect2><title>KEEP_EXTENSION</title></sect2> Make the output file have the same extension as the source file.</para>

    <para>If this property is set then the file extension of the output file will be the same as that of the source file. Normally the output file extension is computed based on the language of the source file, for example .cxx will go to a .o extension.</para>
    <para id="prop_sf_LABELS"><sect2><title>LABELS</title></sect2> Specify a list of text labels associated with a source file.</para>

    <para>This property has meaning only when the source file is listed in a target whose LABELS property is also set.  No other semantics are currently specified.</para>
    <para id="prop_sf_LANGUAGE"><sect2><title>LANGUAGE</title></sect2> What programming language is the file.</para>

    <para>A property that can be set to indicate what programming language the source file is. If it is not set the language is determined based on the file extension. Typical values are CXX C etc. Setting this property for a file means this file will be compiled. Do not set this for header or files that should not be compiled.</para>
    <para id="prop_sf_LOCATION"><sect2><title>LOCATION</title></sect2> The full path to a source file.</para>

    <para>A read only property on a SOURCE FILE that contains the full path to the source file.</para>
    <para id="prop_sf_MACOSX_PACKAGE_LOCATION"><sect2><title>MACOSX_PACKAGE_LOCATION</title></sect2> Place a source file inside a Mac OS X bundle, CFBundle, or framework.</para>

    <para>Executable targets with the MACOSX_BUNDLE property set are built as Mac OS X application bundles on Apple platforms.  Shared library targets with the FRAMEWORK property set are built as Mac OS X frameworks on Apple platforms.  Module library targets with the BUNDLE property set are built as Mac OS X CFBundle bundles on Apple platforms.  Source files listed in the target with this property set will be copied to a directory inside the bundle or framework content folder specified by the property value.  For bundles the content folder is "&lt;name&gt;.app/Contents".  For frameworks the content folder is "&lt;name&gt;.framework/Versions/&lt;version&gt;".  For cfbundles the content folder is "&lt;name&gt;.bundle/Contents" (unless the extension is changed).  See the PUBLIC_HEADER, PRIVATE_HEADER, and RESOURCE target properties for specifying files meant for Headers, PrivateHeaders, or Resources directories.</para>
    <para id="prop_sf_OBJECT_DEPENDS"><sect2><title>OBJECT_DEPENDS</title></sect2> Additional files on which a compiled object file depends.</para>

    <para>Specifies a semicolon-separated list of full-paths to files on which any object files compiled from this source file depend.  An object file will be recompiled if any of the named files is newer than it.
</para><para>This property need not be used to specify the dependency of a source file on a generated header file that it includes.  Although the property was originally introduced for this purpose, it is no longer necessary.  If the generated header file is created by a custom command in the same target as the source file, the automatic dependency scanning process will recognize the dependency.  If the generated header file is created by another target, an inter-target dependency should be created with the add_dependencies command (if one does not already exist due to linking relationships).</para>
    <para id="prop_sf_OBJECT_OUTPUTS"><sect2><title>OBJECT_OUTPUTS</title></sect2> Additional outputs for a Makefile rule.</para>

    <para>Additional outputs created by compilation of this source file. If any of these outputs is missing the object will be recompiled. This is supported only on Makefile generators and will be ignored on other generators.</para>
    <para id="prop_sf_SYMBOLIC"><sect2><title>SYMBOLIC</title></sect2> Is this just a name for a rule.</para>

    <para>If SYMBOLIC (boolean) is set to true the build system will be informed that the source file is not actually created on disk but instead used as a symbolic name for a build rule.</para>
    <para id="prop_sf_WRAP_EXCLUDE"><sect2><title>WRAP_EXCLUDE</title></sect2> Exclude this source file from any code wrapping techniques.</para>

    <para>Some packages can wrap source files into alternate languages to provide additional functionality. For example, C++ code can be wrapped into Java or Python etc using SWIG etc. If WRAP_EXCLUDE is set to true (1 etc) that indicates then this source file should not be wrapped.</para>
</sect1>
<sect1 id="section_Properties on Cache Entries">
<title>
Properties on Cache Entries</title>
<itemizedlist>
    <listitem><link linkend="property_ADVANCED"><emphasis><literal>ADVANCED</literal></emphasis></link></listitem>
    <listitem><link linkend="property_HELPSTRING"><emphasis><literal>HELPSTRING</literal></emphasis></link></listitem>
    <listitem><link linkend="property_MODIFIED"><emphasis><literal>MODIFIED</literal></emphasis></link></listitem>
    <listitem><link linkend="property_STRINGS"><emphasis><literal>STRINGS</literal></emphasis></link></listitem>
    <listitem><link linkend="property_TYPE"><emphasis><literal>TYPE</literal></emphasis></link></listitem>
    <listitem><link linkend="property_VALUE"><emphasis><literal>VALUE</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="property_ADVANCED"><sect2><title>ADVANCED</title></sect2> True if entry should be hidden by default in GUIs.</para>

    <para>This is a boolean value indicating whether the entry is considered interesting only for advanced configuration.  The mark_as_advanced() command modifies this property.</para>
    <para id="property_HELPSTRING"><sect2><title>HELPSTRING</title></sect2> Help associated with entry in GUIs.</para>

    <para>This string summarizes the purpose of an entry to help users set it through a CMake GUI.</para>
    <para id="property_MODIFIED"><sect2><title>MODIFIED</title></sect2> Internal management property.  Do not set or get.</para>

    <para>This is an internal cache entry property managed by CMake to track interactive user modification of entries.  Ignore it.</para>
    <para id="property_STRINGS"><sect2><title>STRINGS</title></sect2> Enumerate possible STRING entry values for GUI selection.</para>

    <para>For cache entries with type STRING, this enumerates a set of values.  CMake GUIs may use this to provide a selection widget instead of a generic string entry field.  This is for convenience only.  CMake does not enforce that the value matches one of those listed.</para>
    <para id="property_TYPE"><sect2><title>TYPE</title></sect2> Widget type for entry in GUIs.</para>

    <para>Cache entry values are always strings, but CMake GUIs present widgets to help users set values.  The GUIs use this property as a hint to determine the widget type.  Valid TYPE values are:
</para><literallayout>  BOOL          = Boolean ON/OFF value.
  PATH          = Path to a directory.
  FILEPATH      = Path to a file.
  STRING        = Generic string value.
  INTERNAL      = Do not present in GUI at all.
  STATIC        = Value managed by CMake, do not change.
  UNINITIALIZED = Type not yet specified.
</literallayout>
    <para>Generally the TYPE of a cache entry should be set by the command which creates it (set, option, find_library, etc.).</para>
    <para id="property_VALUE"><sect2><title>VALUE</title></sect2> Value of a cache entry.</para>

    <para>This property maps to the actual value of a cache entry.  Setting this property always sets the value without checking, so use with care.</para>
</sect1>
<sect1 id="section_Compatibility Commands">
<title>
Compatibility Commands</title>
<itemizedlist>
</itemizedlist>
<literallayout>  CMake Compatibility Listfile Commands - Obsolete commands supported by CMake for compatibility.</literallayout>
    
<para>This is the documentation for now obsolete listfile commands from previous CMake versions, which are still supported for compatibility reasons. You should instead use the newer, faster and shinier new commands. ;-)</para>
</sect1>
<sect1 id="section_Compatilbility Commands">
<title>
Compatilbility Commands</title>
<itemizedlist>
    <listitem><link linkend="command_build_name"><emphasis><literal>build_name</literal></emphasis></link></listitem>
    <listitem><link linkend="command_exec_program"><emphasis><literal>exec_program</literal></emphasis></link></listitem>
    <listitem><link linkend="command_export_library_dependencies"><emphasis><literal>export_library_dependencies</literal></emphasis></link></listitem>
    <listitem><link linkend="command_install_files"><emphasis><literal>install_files</literal></emphasis></link></listitem>
    <listitem><link linkend="command_install_programs"><emphasis><literal>install_programs</literal></emphasis></link></listitem>
    <listitem><link linkend="command_install_targets"><emphasis><literal>install_targets</literal></emphasis></link></listitem>
    <listitem><link linkend="command_link_libraries"><emphasis><literal>link_libraries</literal></emphasis></link></listitem>
    <listitem><link linkend="command_make_directory"><emphasis><literal>make_directory</literal></emphasis></link></listitem>
    <listitem><link linkend="command_output_required_files"><emphasis><literal>output_required_files</literal></emphasis></link></listitem>
    <listitem><link linkend="command_remove"><emphasis><literal>remove</literal></emphasis></link></listitem>
    <listitem><link linkend="command_subdir_depends"><emphasis><literal>subdir_depends</literal></emphasis></link></listitem>
    <listitem><link linkend="command_subdirs"><emphasis><literal>subdirs</literal></emphasis></link></listitem>
    <listitem><link linkend="command_use_mangled_mesa"><emphasis><literal>use_mangled_mesa</literal></emphasis></link></listitem>
    <listitem><link linkend="command_utility_source"><emphasis><literal>utility_source</literal></emphasis></link></listitem>
    <listitem><link linkend="command_variable_requires"><emphasis><literal>variable_requires</literal></emphasis></link></listitem>
    <listitem><link linkend="command_write_file"><emphasis><literal>write_file</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="command_build_name"><sect2><title>build_name</title></sect2> Deprecated.  Use ${CMAKE_SYSTEM} and ${CMAKE_CXX_COMPILER} instead.</para>

    <literallayout>  build_name(variable)
</literallayout>
    <para>Sets the specified variable to a string representing the platform and compiler settings.  These values are now available through the CMAKE_SYSTEM and CMAKE_CXX_COMPILER variables.</para>
    <para id="command_exec_program"><sect2><title>exec_program</title></sect2> Deprecated.  Use the execute_process() command instead.</para>

    <para>Run an executable program during the processing of the CMakeList.txt file.
</para><literallayout>  exec_program(Executable [directory in which to run]
               [ARGS &lt;arguments to executable&gt;]
               [OUTPUT_VARIABLE &lt;var&gt;]
               [RETURN_VALUE &lt;var&gt;])
</literallayout>
    <para>The executable is run in the optionally specified directory.  The executable can include arguments if it is double quoted, but it is better to use the optional ARGS argument to specify arguments to the program.   This is because cmake will then be able to escape spaces in the executable path.  An optional argument OUTPUT_VARIABLE specifies a variable in which to store the output. To capture the return value of the execution, provide a RETURN_VALUE. If OUTPUT_VARIABLE is specified, then no output will go to the stdout/stderr of the console running cmake.
</para>
    <para id="command_export_library_dependencies"><sect2><title>export_library_dependencies</title></sect2> Deprecated.  Use INSTALL(EXPORT) or EXPORT command.</para>

    <para>This command generates an old-style library dependencies file.  Projects requiring CMake 2.6 or later should not use the command.  Use instead the install(EXPORT) command to help export targets from an installation tree and the export() command to export targets from a build tree.
</para><para>The old-style library dependencies file does not take into account per-configuration names of libraries or the LINK_INTERFACE_LIBRARIES target property.
</para><literallayout>  export_library_dependencies(&lt;file&gt; [APPEND])
</literallayout>
    <para>Create a file named &lt;file&gt; that can be included into a CMake listfile with the INCLUDE command.  The file will contain a number of SET commands that will set all the variables needed for library dependency information.  This should be the last command in the top level CMakeLists.txt file of the project.  If the APPEND option is specified, the SET commands will be appended to the given file instead of replacing it.</para>
    <para id="command_install_files"><sect2><title>install_files</title></sect2> Deprecated.  Use the install(FILES ) command instead.</para>

    <para>This command has been superceded by the install command.  It is provided for compatibility with older CMake code.  The FILES form is directly replaced by the FILES form of the install command.  The regexp form can be expressed more clearly using the GLOB form of the file command.
</para><literallayout>  install_files(&lt;dir&gt; extension file file ...)
</literallayout>
    <para>Create rules to install the listed files with the given extension into the given directory.  Only files existing in the current source tree or its corresponding location in the binary tree may be listed.  If a file specified already has an extension, that extension will be removed first.  This is useful for providing lists of source files such as foo.cxx when you want the corresponding foo.h to be installed. A typical extension is '.h'.
</para><literallayout>  install_files(&lt;dir&gt; regexp)
</literallayout>
    <para>Any files in the current source directory that match the regular expression will be installed.
</para><literallayout>  install_files(&lt;dir&gt; FILES file file ...)
</literallayout>
    <para>Any files listed after the FILES keyword will be installed explicitly from the names given.  Full paths are allowed in this form.
</para><para>The directory &lt;dir&gt; is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.</para>
    <para id="command_install_programs"><sect2><title>install_programs</title></sect2> Deprecated. Use the install(PROGRAMS ) command instead.</para>

    <para>This command has been superceded by the install command.  It is provided for compatibility with older CMake code.  The FILES form is directly replaced by the PROGRAMS form of the INSTALL command.  The regexp form can be expressed more clearly using the GLOB form of the FILE command.
</para><literallayout>  install_programs(&lt;dir&gt; file1 file2 [file3 ...])
  install_programs(&lt;dir&gt; FILES file1 [file2 ...])
</literallayout>
    <para>Create rules to install the listed programs into the given directory. Use the FILES argument to guarantee that the file list version of the command will be used even when there is only one argument.
</para><literallayout>  install_programs(&lt;dir&gt; regexp)
</literallayout>
    <para>In the second form any program in the current source directory that matches the regular expression will be installed.
</para><para>This command is intended to install programs that are not built by cmake, such as shell scripts.  See the TARGETS form of the INSTALL command to create installation rules for targets built by cmake.
</para><para>The directory &lt;dir&gt; is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX.</para>
    <para id="command_install_targets"><sect2><title>install_targets</title></sect2> Deprecated. Use the install(TARGETS )  command instead.</para>

    <para>This command has been superceded by the install command.  It is provided for compatibility with older CMake code.
</para><literallayout>  install_targets(&lt;dir&gt; [RUNTIME_DIRECTORY dir] target target)
</literallayout>
    <para>Create rules to install the listed targets into the given directory.  The directory &lt;dir&gt; is relative to the installation prefix, which is stored in the variable CMAKE_INSTALL_PREFIX. If RUNTIME_DIRECTORY is specified, then on systems with special runtime files (Windows DLL), the files will be copied to that directory.</para>
    <para id="command_link_libraries"><sect2><title>link_libraries</title></sect2> Deprecated. Use the target_link_libraries() command instead.</para>

    <para>Link libraries to all targets added later.
</para><literallayout>  link_libraries(library1 &lt;debug | optimized&gt; library2 ...)
</literallayout>
    <para>Specify a list of libraries to be linked into any following targets (typically added with the add_executable or add_library calls).  This command is passed down to all subdirectories.  The debug and optimized strings may be used to indicate that the next library listed is to be used only for that specific type of build.</para>
    <para id="command_make_directory"><sect2><title>make_directory</title></sect2> Deprecated. Use the file(MAKE_DIRECTORY ) command instead.</para>

    <literallayout>  make_directory(directory)
</literallayout>
    <para>Creates the specified directory.  Full paths should be given.  Any parent directories that do not exist will also be created.  Use with care.</para>
    <para id="command_output_required_files"><sect2><title>output_required_files</title></sect2> Deprecated.  Approximate C preprocessor dependency scanning.</para>

    <para>This command exists only because ancient CMake versions provided it.  CMake handles preprocessor dependency scanning automatically using a more advanced scanner.
</para><literallayout>  output_required_files(srcfile outputfile)
</literallayout>
    <para>Outputs a list of all the source files that are required by the specified srcfile. This list is written into outputfile. This is similar to writing out the dependencies for srcfile except that it jumps from .h files into .cxx, .c and .cpp files if possible.</para>
    <para id="command_remove"><sect2><title>remove</title></sect2> Deprecated. Use the list(REMOVE_ITEM ) command instead.</para>

    <literallayout>  remove(VAR VALUE VALUE ...)
</literallayout>
    <para>Removes VALUE from the variable VAR.  This is typically used to remove entries from a vector (e.g. semicolon separated list).  VALUE is expanded.</para>
    <para id="command_subdir_depends"><sect2><title>subdir_depends</title></sect2> Deprecated.  Does nothing.</para>

    <literallayout>  subdir_depends(subdir dep1 dep2 ...)
</literallayout>
    <para>Does not do anything.  This command used to help projects order parallel builds correctly.  This functionality is now automatic.</para>
    <para id="command_subdirs"><sect2><title>subdirs</title></sect2> Deprecated. Use the add_subdirectory() command instead.</para>

    <para>Add a list of subdirectories to the build.
</para><literallayout>  subdirs(dir1 dir2 ...[EXCLUDE_FROM_ALL exclude_dir1 exclude_dir2 ...]
          [PREORDER] )
</literallayout>
    <para>Add a list of subdirectories to the build. The add_subdirectory command should be used instead of subdirs although subdirs will still work. This will cause any CMakeLists.txt files in the sub directories to be processed by CMake.  Any directories after the PREORDER flag are traversed first by makefile builds, the PREORDER flag has no effect on IDE projects.  Any directories after the EXCLUDE_FROM_ALL marker will not be included in the top level makefile or project file. This is useful for having CMake create makefiles or projects for a set of examples in a project. You would want CMake to generate makefiles or project files for all the examples at the same time, but you would not want them to show up in the top level project or be built each time make is run from the top.</para>
    <para id="command_use_mangled_mesa"><sect2><title>use_mangled_mesa</title></sect2> Copy mesa headers for use in combination with system GL.</para>

    <literallayout>  use_mangled_mesa(PATH_TO_MESA OUTPUT_DIRECTORY)
</literallayout>
    <para>The path to mesa includes, should contain gl_mangle.h.  The mesa headers are copied to the specified output directory.  This allows mangled mesa headers to override other GL headers by being added to the include directory path earlier.</para>
    <para id="command_utility_source"><sect2><title>utility_source</title></sect2> Specify the source tree of a third-party utility.</para>

    <literallayout>  utility_source(cache_entry executable_name
                 path_to_source [file1 file2 ...])
</literallayout>
    <para>When a third-party utility's source is included in the distribution, this command specifies its location and name.  The cache entry will not be set unless the path_to_source and all listed files exist.  It is assumed that the source tree of the utility will have been built before it is needed.
</para><para>When cross compiling CMake will print a warning if a utility_source() command is executed, because in many cases it is used to build an executable which is executed later on. This doesn't work when cross compiling, since the executable can run only on their target platform. So in this case the cache entry has to be adjusted manually so it points to an executable which is runnable on the build host.</para>
    <para id="command_variable_requires"><sect2><title>variable_requires</title></sect2> Deprecated. Use the if() command instead.</para>

    <para>Assert satisfaction of an option's required variables.
</para><literallayout>  variable_requires(TEST_VARIABLE RESULT_VARIABLE
                    REQUIRED_VARIABLE1
                    REQUIRED_VARIABLE2 ...)
</literallayout>
    <para>The first argument (TEST_VARIABLE) is the name of the variable to be tested, if that variable is false nothing else is done. If TEST_VARIABLE is true, then the next argument (RESULT_VARIABLE) is a variable that is set to true if all the required variables are set. The rest of the arguments are variables that must be true or not set to NOTFOUND to avoid an error.  If any are not true, an error is reported.</para>
    <para id="command_write_file"><sect2><title>write_file</title></sect2> Deprecated. Use the file(WRITE ) command instead.</para>

    <literallayout>  write_file(filename "message to write"... [APPEND])
</literallayout>
    <para>The first argument is the file name, the rest of the arguments are messages to write. If the argument APPEND is specified, then the message will be appended.
</para><para>NOTE 1: file(WRITE ... and file(APPEND ... do exactly the same as this one but add some more functionality.
</para><para>NOTE 2: When using write_file the produced file cannot be used as an input to CMake (CONFIGURE_FILE, source file ...) because it will lead to an infinite loop. Use configure_file if you want to generate input files to CMake.</para>
</sect1>
<sect1 id="section_Standard CMake Modules">
<title>
Standard CMake Modules</title>
<itemizedlist>
    <listitem><link linkend="module_AddFileDependencies"><emphasis><literal>AddFileDependencies</literal></emphasis></link></listitem>
    <listitem><link linkend="module_BundleUtilities"><emphasis><literal>BundleUtilities</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeAddFortranSubdirectory"><emphasis><literal>CMakeAddFortranSubdirectory</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeBackwardCompatibilityCXX"><emphasis><literal>CMakeBackwardCompatibilityCXX</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeDependentOption"><emphasis><literal>CMakeDependentOption</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeDetermineVSServicePack"><emphasis><literal>CMakeDetermineVSServicePack</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeExpandImportedTargets"><emphasis><literal>CMakeExpandImportedTargets</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeFindFrameworks"><emphasis><literal>CMakeFindFrameworks</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeFindPackageMode"><emphasis><literal>CMakeFindPackageMode</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeForceCompiler"><emphasis><literal>CMakeForceCompiler</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakePackageConfigHelpers"><emphasis><literal>CMakePackageConfigHelpers</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeParseArguments"><emphasis><literal>CMakeParseArguments</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakePrintSystemInformation"><emphasis><literal>CMakePrintSystemInformation</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakePushCheckState"><emphasis><literal>CMakePushCheckState</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CMakeVerifyManifest"><emphasis><literal>CMakeVerifyManifest</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPack"><emphasis><literal>CPack</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackBundle"><emphasis><literal>CPackBundle</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackComponent"><emphasis><literal>CPackComponent</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackCygwin"><emphasis><literal>CPackCygwin</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackDMG"><emphasis><literal>CPackDMG</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackDeb"><emphasis><literal>CPackDeb</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackNSIS"><emphasis><literal>CPackNSIS</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackPackageMaker"><emphasis><literal>CPackPackageMaker</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CPackRPM"><emphasis><literal>CPackRPM</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CTest"><emphasis><literal>CTest</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CTestScriptMode"><emphasis><literal>CTestScriptMode</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckCCompilerFlag"><emphasis><literal>CheckCCompilerFlag</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckCSourceCompiles"><emphasis><literal>CheckCSourceCompiles</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckCSourceRuns"><emphasis><literal>CheckCSourceRuns</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckCXXCompilerFlag"><emphasis><literal>CheckCXXCompilerFlag</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckCXXSourceCompiles"><emphasis><literal>CheckCXXSourceCompiles</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckCXXSourceRuns"><emphasis><literal>CheckCXXSourceRuns</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckCXXSymbolExists"><emphasis><literal>CheckCXXSymbolExists</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckFortranFunctionExists"><emphasis><literal>CheckFortranFunctionExists</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckFunctionExists"><emphasis><literal>CheckFunctionExists</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckIncludeFile"><emphasis><literal>CheckIncludeFile</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckIncludeFileCXX"><emphasis><literal>CheckIncludeFileCXX</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckIncludeFiles"><emphasis><literal>CheckIncludeFiles</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckLanguage"><emphasis><literal>CheckLanguage</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckLibraryExists"><emphasis><literal>CheckLibraryExists</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckPrototypeDefinition"><emphasis><literal>CheckPrototypeDefinition</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckStructHasMember"><emphasis><literal>CheckStructHasMember</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckSymbolExists"><emphasis><literal>CheckSymbolExists</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckTypeSize"><emphasis><literal>CheckTypeSize</literal></emphasis></link></listitem>
    <listitem><link linkend="module_CheckVariableExists"><emphasis><literal>CheckVariableExists</literal></emphasis></link></listitem>
    <listitem><link linkend="module_Dart"><emphasis><literal>Dart</literal></emphasis></link></listitem>
    <listitem><link linkend="module_DeployQt4"><emphasis><literal>DeployQt4</literal></emphasis></link></listitem>
    <listitem><link linkend="module_Documentation"><emphasis><literal>Documentation</literal></emphasis></link></listitem>
    <listitem><link linkend="module_ExternalProject"><emphasis><literal>ExternalProject</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FeatureSummary"><emphasis><literal>FeatureSummary</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindALSA"><emphasis><literal>FindALSA</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindASPELL"><emphasis><literal>FindASPELL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindAVIFile"><emphasis><literal>FindAVIFile</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindArmadillo"><emphasis><literal>FindArmadillo</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindBISON"><emphasis><literal>FindBISON</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindBLAS"><emphasis><literal>FindBLAS</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindBZip2"><emphasis><literal>FindBZip2</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindBoost"><emphasis><literal>FindBoost</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindBullet"><emphasis><literal>FindBullet</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCABLE"><emphasis><literal>FindCABLE</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCUDA"><emphasis><literal>FindCUDA</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCURL"><emphasis><literal>FindCURL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCVS"><emphasis><literal>FindCVS</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCoin3D"><emphasis><literal>FindCoin3D</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCups"><emphasis><literal>FindCups</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCurses"><emphasis><literal>FindCurses</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCxxTest"><emphasis><literal>FindCxxTest</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindCygwin"><emphasis><literal>FindCygwin</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindDCMTK"><emphasis><literal>FindDCMTK</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindDart"><emphasis><literal>FindDart</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindDevIL"><emphasis><literal>FindDevIL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindDoxygen"><emphasis><literal>FindDoxygen</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindEXPAT"><emphasis><literal>FindEXPAT</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindFLEX"><emphasis><literal>FindFLEX</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindFLTK"><emphasis><literal>FindFLTK</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindFLTK2"><emphasis><literal>FindFLTK2</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindFreetype"><emphasis><literal>FindFreetype</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGCCXML"><emphasis><literal>FindGCCXML</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGDAL"><emphasis><literal>FindGDAL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGIF"><emphasis><literal>FindGIF</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGLUT"><emphasis><literal>FindGLUT</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGTK"><emphasis><literal>FindGTK</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGTK2"><emphasis><literal>FindGTK2</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGTest"><emphasis><literal>FindGTest</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGettext"><emphasis><literal>FindGettext</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGit"><emphasis><literal>FindGit</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGnuTLS"><emphasis><literal>FindGnuTLS</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindGnuplot"><emphasis><literal>FindGnuplot</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindHDF5"><emphasis><literal>FindHDF5</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindHSPELL"><emphasis><literal>FindHSPELL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindHTMLHelp"><emphasis><literal>FindHTMLHelp</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindITK"><emphasis><literal>FindITK</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindImageMagick"><emphasis><literal>FindImageMagick</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindJNI"><emphasis><literal>FindJNI</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindJPEG"><emphasis><literal>FindJPEG</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindJasper"><emphasis><literal>FindJasper</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindJava"><emphasis><literal>FindJava</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindKDE3"><emphasis><literal>FindKDE3</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindKDE4"><emphasis><literal>FindKDE4</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindLAPACK"><emphasis><literal>FindLAPACK</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindLATEX"><emphasis><literal>FindLATEX</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindLibArchive"><emphasis><literal>FindLibArchive</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindLibXml2"><emphasis><literal>FindLibXml2</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindLibXslt"><emphasis><literal>FindLibXslt</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindLua50"><emphasis><literal>FindLua50</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindLua51"><emphasis><literal>FindLua51</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindMFC"><emphasis><literal>FindMFC</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindMPEG"><emphasis><literal>FindMPEG</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindMPEG2"><emphasis><literal>FindMPEG2</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindMPI"><emphasis><literal>FindMPI</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindMatlab"><emphasis><literal>FindMatlab</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindMotif"><emphasis><literal>FindMotif</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindOpenAL"><emphasis><literal>FindOpenAL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindOpenGL"><emphasis><literal>FindOpenGL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindOpenMP"><emphasis><literal>FindOpenMP</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindOpenSSL"><emphasis><literal>FindOpenSSL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindOpenSceneGraph"><emphasis><literal>FindOpenSceneGraph</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindOpenThreads"><emphasis><literal>FindOpenThreads</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPHP4"><emphasis><literal>FindPHP4</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPNG"><emphasis><literal>FindPNG</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPackageHandleStandardArgs"><emphasis><literal>FindPackageHandleStandardArgs</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPackageMessage"><emphasis><literal>FindPackageMessage</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPerl"><emphasis><literal>FindPerl</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPerlLibs"><emphasis><literal>FindPerlLibs</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPhysFS"><emphasis><literal>FindPhysFS</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPike"><emphasis><literal>FindPike</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPkgConfig"><emphasis><literal>FindPkgConfig</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPostgreSQL"><emphasis><literal>FindPostgreSQL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindProducer"><emphasis><literal>FindProducer</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindProtobuf"><emphasis><literal>FindProtobuf</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPythonInterp"><emphasis><literal>FindPythonInterp</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindPythonLibs"><emphasis><literal>FindPythonLibs</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindQt"><emphasis><literal>FindQt</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindQt3"><emphasis><literal>FindQt3</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindQt4"><emphasis><literal>FindQt4</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindQuickTime"><emphasis><literal>FindQuickTime</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindRTI"><emphasis><literal>FindRTI</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindRuby"><emphasis><literal>FindRuby</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSDL"><emphasis><literal>FindSDL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSDL_image"><emphasis><literal>FindSDL_image</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSDL_mixer"><emphasis><literal>FindSDL_mixer</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSDL_net"><emphasis><literal>FindSDL_net</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSDL_sound"><emphasis><literal>FindSDL_sound</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSDL_ttf"><emphasis><literal>FindSDL_ttf</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSWIG"><emphasis><literal>FindSWIG</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSelfPackers"><emphasis><literal>FindSelfPackers</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSquish"><emphasis><literal>FindSquish</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindSubversion"><emphasis><literal>FindSubversion</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindTCL"><emphasis><literal>FindTCL</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindTIFF"><emphasis><literal>FindTIFF</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindTclStub"><emphasis><literal>FindTclStub</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindTclsh"><emphasis><literal>FindTclsh</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindThreads"><emphasis><literal>FindThreads</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindUnixCommands"><emphasis><literal>FindUnixCommands</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindVTK"><emphasis><literal>FindVTK</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindWget"><emphasis><literal>FindWget</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindWish"><emphasis><literal>FindWish</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindX11"><emphasis><literal>FindX11</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindXMLRPC"><emphasis><literal>FindXMLRPC</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindZLIB"><emphasis><literal>FindZLIB</literal></emphasis></link></listitem>
    <listitem><link linkend="module_Findosg"><emphasis><literal>Findosg</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgAnimation"><emphasis><literal>FindosgAnimation</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgDB"><emphasis><literal>FindosgDB</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgFX"><emphasis><literal>FindosgFX</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgGA"><emphasis><literal>FindosgGA</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgIntrospection"><emphasis><literal>FindosgIntrospection</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgManipulator"><emphasis><literal>FindosgManipulator</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgParticle"><emphasis><literal>FindosgParticle</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgPresentation"><emphasis><literal>FindosgPresentation</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgProducer"><emphasis><literal>FindosgProducer</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgQt"><emphasis><literal>FindosgQt</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgShadow"><emphasis><literal>FindosgShadow</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgSim"><emphasis><literal>FindosgSim</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgTerrain"><emphasis><literal>FindosgTerrain</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgText"><emphasis><literal>FindosgText</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgUtil"><emphasis><literal>FindosgUtil</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgViewer"><emphasis><literal>FindosgViewer</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgVolume"><emphasis><literal>FindosgVolume</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindosgWidget"><emphasis><literal>FindosgWidget</literal></emphasis></link></listitem>
    <listitem><link linkend="module_Findosg_functions"><emphasis><literal>Findosg_functions</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindwxWidgets"><emphasis><literal>FindwxWidgets</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FindwxWindows"><emphasis><literal>FindwxWindows</literal></emphasis></link></listitem>
    <listitem><link linkend="module_FortranCInterface"><emphasis><literal>FortranCInterface</literal></emphasis></link></listitem>
    <listitem><link linkend="module_GNUInstallDirs"><emphasis><literal>GNUInstallDirs</literal></emphasis></link></listitem>
    <listitem><link linkend="module_GenerateExportHeader"><emphasis><literal>GenerateExportHeader</literal></emphasis></link></listitem>
    <listitem><link linkend="module_GetPrerequisites"><emphasis><literal>GetPrerequisites</literal></emphasis></link></listitem>
    <listitem><link linkend="module_InstallRequiredSystemLibraries"><emphasis><literal>InstallRequiredSystemLibraries</literal></emphasis></link></listitem>
    <listitem><link linkend="module_MacroAddFileDependencies"><emphasis><literal>MacroAddFileDependencies</literal></emphasis></link></listitem>
    <listitem><link linkend="module_ProcessorCount"><emphasis><literal>ProcessorCount</literal></emphasis></link></listitem>
    <listitem><link linkend="module_Qt4ConfigDependentSettings"><emphasis><literal>Qt4ConfigDependentSettings</literal></emphasis></link></listitem>
    <listitem><link linkend="module_Qt4Macros"><emphasis><literal>Qt4Macros</literal></emphasis></link></listitem>
    <listitem><link linkend="module_SelectLibraryConfigurations"><emphasis><literal>SelectLibraryConfigurations</literal></emphasis></link></listitem>
    <listitem><link linkend="module_SquishTestScript"><emphasis><literal>SquishTestScript</literal></emphasis></link></listitem>
    <listitem><link linkend="module_TestBigEndian"><emphasis><literal>TestBigEndian</literal></emphasis></link></listitem>
    <listitem><link linkend="module_TestCXXAcceptsFlag"><emphasis><literal>TestCXXAcceptsFlag</literal></emphasis></link></listitem>
    <listitem><link linkend="module_TestForANSIForScope"><emphasis><literal>TestForANSIForScope</literal></emphasis></link></listitem>
    <listitem><link linkend="module_TestForANSIStreamHeaders"><emphasis><literal>TestForANSIStreamHeaders</literal></emphasis></link></listitem>
    <listitem><link linkend="module_TestForSSTREAM"><emphasis><literal>TestForSSTREAM</literal></emphasis></link></listitem>
    <listitem><link linkend="module_TestForSTDNamespace"><emphasis><literal>TestForSTDNamespace</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UseEcos"><emphasis><literal>UseEcos</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UseJava"><emphasis><literal>UseJava</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UseJavaClassFilelist"><emphasis><literal>UseJavaClassFilelist</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UseJavaSymlinks"><emphasis><literal>UseJavaSymlinks</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UsePkgConfig"><emphasis><literal>UsePkgConfig</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UseQt4"><emphasis><literal>UseQt4</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UseSWIG"><emphasis><literal>UseSWIG</literal></emphasis></link></listitem>
    <listitem><link linkend="module_Use_wxWindows"><emphasis><literal>Use_wxWindows</literal></emphasis></link></listitem>
    <listitem><link linkend="module_UsewxWidgets"><emphasis><literal>UsewxWidgets</literal></emphasis></link></listitem>
    <listitem><link linkend="module_WriteBasicConfigVersionFile"><emphasis><literal>WriteBasicConfigVersionFile</literal></emphasis></link></listitem>
</itemizedlist>
<para>The following modules are provided with CMake. They can be used with INCLUDE(ModuleName).</para>
<literallayout>  CMake Modules - Modules coming with CMake, the Cross-Platform Makefile Generator.</literallayout>
    
<para>This is the documentation for the modules and scripts coming with CMake. Using these modules you can check the computer system for installed software packages, features of the compiler and the existance of headers to name just a few.</para>
    <para id="module_AddFileDependencies"><sect2><title>AddFileDependencies</title></sect2> ADD_FILE_DEPENDENCIES(source_file depend_files...)</para>

    <para>Adds the given files as dependencies to source_file
</para>
    <para id="module_BundleUtilities"><sect2><title>BundleUtilities</title></sect2> Functions to help assemble a standalone bundle application.</para>

    <para>A collection of CMake utility functions useful for dealing with .app bundles on the Mac and bundle-like directories on any OS.
</para><para>The following functions are provided by this module:
</para><literallayout>   fixup_bundle
   copy_and_fixup_bundle
   verify_app
   get_bundle_main_executable
   get_dotapp_dir
   get_bundle_and_executable
   get_bundle_all_executables
   get_item_key
   clear_bundle_keys
   set_bundle_key_values
   get_bundle_keys
   copy_resolved_item_into_bundle
   copy_resolved_framework_into_bundle
   fixup_bundle_item
   verify_bundle_prerequisites
   verify_bundle_symlinks
</literallayout>
    <para>Requires CMake 2.6 or greater because it uses function, break and PARENT_SCOPE. Also depends on GetPrerequisites.cmake.
</para><literallayout>  FIXUP_BUNDLE(&lt;app&gt; &lt;libs&gt; &lt;dirs&gt;)
</literallayout>
    <para>Fix up a bundle in-place and make it standalone, such that it can be drag-n-drop copied to another machine and run on that machine as long as all of the system libraries are compatible.
</para><para>If you pass plugins to fixup_bundle as the libs parameter, you should install them or copy them into the bundle before calling fixup_bundle. The "libs" parameter is a list of libraries that must be fixed up, but that cannot be determined by otool output analysis. (i.e., plugins)
</para><para>Gather all the keys for all the executables and libraries in a bundle, and then, for each key, copy each prerequisite into the bundle. Then fix each one up according to its own list of prerequisites.
</para><para>Then clear all the keys and call verify_app on the final bundle to ensure that it is truly standalone.
</para><literallayout>  COPY_AND_FIXUP_BUNDLE(&lt;src&gt; &lt;dst&gt; &lt;libs&gt; &lt;dirs&gt;)
</literallayout>
    <para>Makes a copy of the bundle &lt;src&gt; at location &lt;dst&gt; and then fixes up the new copied bundle in-place at &lt;dst&gt;...
</para><literallayout>  VERIFY_APP(&lt;app&gt;)
</literallayout>
    <para>Verifies that an application &lt;app&gt; appears valid based on running analysis tools on it. Calls "message(FATAL_ERROR" if the application is not verified.
</para><literallayout>  GET_BUNDLE_MAIN_EXECUTABLE(&lt;bundle&gt; &lt;result_var&gt;)
</literallayout>
    <para>The result will be the full path name of the bundle's main executable file or an "error:" prefixed string if it could not be determined.
</para><literallayout>  GET_DOTAPP_DIR(&lt;exe&gt; &lt;dotapp_dir_var&gt;)
</literallayout>
    <para>Returns the nearest parent dir whose name ends with ".app" given the full path to an executable. If there is no such parent dir, then simply return the dir containing the executable.
</para><para>The returned directory may or may not exist.
</para><literallayout>  GET_BUNDLE_AND_EXECUTABLE(&lt;app&gt; &lt;bundle_var&gt; &lt;executable_var&gt; &lt;valid_var&gt;)
</literallayout>
    <para>Takes either a ".app" directory name or the name of an executable nested inside a ".app" directory and returns the path to the ".app" directory in &lt;bundle_var&gt; and the path to its main executable in &lt;executable_var&gt;
</para><literallayout>  GET_BUNDLE_ALL_EXECUTABLES(&lt;bundle&gt; &lt;exes_var&gt;)
</literallayout>
    <para>Scans the given bundle recursively for all executable files and accumulates them into a variable.
</para><literallayout>  GET_ITEM_KEY(&lt;item&gt; &lt;key_var&gt;)
</literallayout>
    <para>Given a file (item) name, generate a key that should be unique considering the set of libraries that need copying or fixing up to make a bundle standalone. This is essentially the file name including extension with "." replaced by "_"
</para><para>This key is used as a prefix for CMake variables so that we can associate a set of variables with a given item based on its key.
</para><literallayout>  CLEAR_BUNDLE_KEYS(&lt;keys_var&gt;)
</literallayout>
    <para>Loop over the list of keys, clearing all the variables associated with each key. After the loop, clear the list of keys itself.
</para><para>Caller of get_bundle_keys should call clear_bundle_keys when done with list of keys.
</para><literallayout>  SET_BUNDLE_KEY_VALUES(&lt;keys_var&gt; &lt;context&gt; &lt;item&gt; &lt;exepath&gt; &lt;dirs&gt;
                        &lt;copyflag&gt;)
</literallayout>
    <para>Add a key to the list (if necessary) for the given item. If added, also set all the variables associated with that key.
</para><literallayout>  GET_BUNDLE_KEYS(&lt;app&gt; &lt;libs&gt; &lt;dirs&gt; &lt;keys_var&gt;)
</literallayout>
    <para>Loop over all the executable and library files within the bundle (and given as extra &lt;libs&gt;) and accumulate a list of keys representing them. Set values associated with each key such that we can loop over all of them and copy prerequisite libs into the bundle and then do appropriate install_name_tool fixups.
</para><literallayout>  COPY_RESOLVED_ITEM_INTO_BUNDLE(&lt;resolved_item&gt; &lt;resolved_embedded_item&gt;)
</literallayout>
    <para>Copy a resolved item into the bundle if necessary. Copy is not necessary if the resolved_item is "the same as" the resolved_embedded_item.
</para><literallayout>  COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE(&lt;resolved_item&gt; &lt;resolved_embedded_item&gt;)
</literallayout>
    <para>Copy a resolved framework into the bundle if necessary. Copy is not necessary if the resolved_item is "the same as" the resolved_embedded_item.
</para><para>By default, BU_COPY_FULL_FRAMEWORK_CONTENTS is not set. If you want full frameworks embedded in your bundles, set BU_COPY_FULL_FRAMEWORK_CONTENTS to ON before calling fixup_bundle. By default, COPY_RESOLVED_FRAMEWORK_INTO_BUNDLE copies the framework dylib itself plus the framework Resources directory.
</para><literallayout>  FIXUP_BUNDLE_ITEM(&lt;resolved_embedded_item&gt; &lt;exepath&gt; &lt;dirs&gt;)
</literallayout>
    <para>Get the direct/non-system prerequisites of the resolved embedded item. For each prerequisite, change the way it is referenced to the value of the _EMBEDDED_ITEM keyed variable for that prerequisite. (Most likely changing to an "@executable_path" style reference.)
</para><para>This function requires that the resolved_embedded_item be "inside" the bundle already. In other words, if you pass plugins to fixup_bundle as the libs parameter, you should install them or copy them into the bundle before calling fixup_bundle. The "libs" parameter is a list of libraries that must be fixed up, but that cannot be determined by otool output analysis. (i.e., plugins)
</para><para>Also, change the id of the item being fixed up to its own _EMBEDDED_ITEM value.
</para><para>Accumulate changes in a local variable and make *one* call to install_name_tool at the end of the function with all the changes at once.
</para><para>If the BU_CHMOD_BUNDLE_ITEMS variable is set then bundle items will be marked writable before install_name_tool tries to change them.
</para><literallayout>  VERIFY_BUNDLE_PREREQUISITES(&lt;bundle&gt; &lt;result_var&gt; &lt;info_var&gt;)
</literallayout>
    <para>Verifies that the sum of all prerequisites of all files inside the bundle are contained within the bundle or are "system" libraries, presumed to exist everywhere.
</para><literallayout>  VERIFY_BUNDLE_SYMLINKS(&lt;bundle&gt; &lt;result_var&gt; &lt;info_var&gt;)
</literallayout>
    <para>Verifies that any symlinks found in the bundle point to other files that are already also in the bundle... Anything that points to an external file causes this function to fail the verification.</para>
    <para id="module_CMakeAddFortranSubdirectory"><sect2><title>CMakeAddFortranSubdirectory</title></sect2> Use MinGW gfortran from VS if a fortran compiler is not found.</para>

    <para>The 'add_fortran_subdirectory' function adds a subdirectory to a project that contains a fortran only sub-project. The module will check the current compiler and see if it can support fortran. If no fortran compiler is found and the compiler is MSVC, then this module will find the MinGW gfortran.  It will then use an external project to build with the MinGW tools.  It will also create imported targets for the libraries created.  This will only work if the fortran code is built into a dll, so BUILD_SHARED_LIBS is turned on in the project.  In addition the CMAKE_GNUtoMS option is set to on, so that the MS .lib files are created. Usage is as follows:
</para><literallayout>  cmake_add_fortran_subdirectory(
   &lt;subdir&gt;                # name of subdirectory
   PROJECT &lt;project_name&gt;  # project name in subdir top CMakeLists.txt
   ARCHIVE_DIR &lt;dir&gt;       # dir where project places .lib files
   RUNTIME_DIR &lt;dir&gt;       # dir where project places .dll files
   LIBRARIES &lt;lib&gt;...      # names of library targets to import
   LINK_LIBRARIES          # link interface libraries for LIBRARIES
    [LINK_LIBS &lt;lib&gt; &lt;dep&gt;...]...
   CMAKE_COMMAND_LINE ...  # extra command line flags to pass to cmake
   NO_EXTERNAL_INSTALL     # skip installation of external project
   )
</literallayout>
    <para>Relative paths in ARCHIVE_DIR and RUNTIME_DIR are interpreted with respect to the build directory corresponding to the source directory in which the function is invoked.
</para><para>Limitations:
</para><para>NO_EXTERNAL_INSTALL is required for forward compatibility with a future version that supports installation of the external project binaries during "make install".</para>
    <para id="module_CMakeBackwardCompatibilityCXX"><sect2><title>CMakeBackwardCompatibilityCXX</title></sect2> define a bunch of backwards compatibility variables</para>

    <literallayout>  CMAKE_ANSI_CXXFLAGS - flag for ansi c++ 
  CMAKE_HAS_ANSI_STRING_STREAM - has &lt;strstream&gt;
  INCLUDE(TestForANSIStreamHeaders)
  INCLUDE(CheckIncludeFileCXX)
  INCLUDE(TestForSTDNamespace)
  INCLUDE(TestForANSIForScope)
</literallayout>
    
    <para id="module_CMakeDependentOption"><sect2><title>CMakeDependentOption</title></sect2> Macro to provide an option dependent on other options.</para>

    <para>This macro presents an option to the user only if a set of other conditions are true.  When the option is not presented a default value is used, but any value set by the user is preserved for when the option is presented again. Example invocation:
</para><literallayout>  CMAKE_DEPENDENT_OPTION(USE_FOO "Use Foo" ON
                         "USE_BAR;NOT USE_ZOT" OFF)
</literallayout>
    <para>If USE_BAR is true and USE_ZOT is false, this provides an option called USE_FOO that defaults to ON.  Otherwise, it sets USE_FOO to OFF.  If the status of USE_BAR or USE_ZOT ever changes, any value for the USE_FOO option is saved so that when the option is re-enabled it retains its old value.</para>
    <para id="module_CMakeDetermineVSServicePack"><sect2><title>CMakeDetermineVSServicePack</title></sect2> Includes a public function for assisting users in trying to determine the</para>

    <para>Visual Studio service pack in use.
</para><para>Sets the passed in variable to one of the following values or an empty string if unknown.
</para><literallayout>    vc80
    vc80sp1
    vc90
    vc90sp1
    vc100
    vc100sp1
</literallayout>
    <para>
</para><para>Usage: ===========================
</para><literallayout>    if(MSVC)
       include(CMakeDetermineVSServicePack)
       DetermineVSServicePack( my_service_pack )
</literallayout>
    <para>
</para><literallayout>       if( my_service_pack )
           message(STATUS "Detected: ${my_service_pack}")
       endif()
    endif()
</literallayout>
    <para>
</para><para>===========================</para>
    <para id="module_CMakeExpandImportedTargets"><sect2><title>CMakeExpandImportedTargets</title></sect2>  </para>

    <para>CMAKE_EXPAND_IMPORTED_TARGETS(&lt;var&gt; LIBRARIES lib1 lib2...libN
</para><literallayout>                                     [CONFIGURATION &lt;config&gt;] )
</literallayout>
    <para>
</para><para>CMAKE_EXPAND_IMPORTED_TARGETS() takes a list of libraries and replaces all imported targets contained in this list with their actual file paths of the referenced libraries on disk, including the libraries from their link interfaces. If a CONFIGURATION is given, it uses the respective configuration of the imported targets if it exists. If no CONFIGURATION is given, it uses the first configuration from ${CMAKE_CONFIGURATION_TYPES} if set, otherwise ${CMAKE_BUILD_TYPE}. This macro is used by all Check*.cmake files which use TRY_COMPILE() or TRY_RUN() and support CMAKE_REQUIRED_LIBRARIES , so that these checks support imported targets in CMAKE_REQUIRED_LIBRARIES:
</para><literallayout>    cmake_expand_imported_targets(expandedLibs LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}
                                               CONFIGURATION "${CMAKE_TRY_COMPILE_CONFIGURATION}" )
</literallayout>
    
    <para id="module_CMakeFindFrameworks"><sect2><title>CMakeFindFrameworks</title></sect2> helper module to find OSX frameworks</para>

    <para id="module_CMakeFindPackageMode"><sect2><title>CMakeFindPackageMode</title></sect2>  </para>

    <para>This file is executed by cmake when invoked with --find-package. It expects that the following variables are set using -D:
</para><literallayout>   NAME = name of the package
   COMPILER_ID = the CMake compiler ID for which the result is, i.e. GNU/Intel/Clang/MSVC, etc.
   LANGUAGE = language for which the result will be used, i.e. C/CXX/Fortan/ASM
   MODE = EXIST : only check for existance of the given package
          COMPILE : print the flags needed for compiling an object file which uses the given package
          LINK : print the flags needed for linking when using the given package
   QUIET = if TRUE, don't print anything
</literallayout>
    
    <para id="module_CMakeForceCompiler"><sect2><title>CMakeForceCompiler</title></sect2>  </para>

    <para>This module defines macros intended for use by cross-compiling toolchain files when CMake is not able to automatically detect the compiler identification.
</para><para>Macro CMAKE_FORCE_C_COMPILER has the following signature:
</para><literallayout>   CMAKE_FORCE_C_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)
</literallayout>
    <para>It sets CMAKE_C_COMPILER to the given compiler and the cmake internal variable CMAKE_C_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.
</para><para>Macro CMAKE_FORCE_CXX_COMPILER has the following signature:
</para><literallayout>   CMAKE_FORCE_CXX_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)
</literallayout>
    <para>It sets CMAKE_CXX_COMPILER to the given compiler and the cmake internal variable CMAKE_CXX_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.
</para><para>Macro CMAKE_FORCE_Fortran_COMPILER has the following signature:
</para><literallayout>   CMAKE_FORCE_Fortran_COMPILER(&lt;compiler&gt; &lt;compiler-id&gt;)
</literallayout>
    <para>It sets CMAKE_Fortran_COMPILER to the given compiler and the cmake internal variable CMAKE_Fortran_COMPILER_ID to the given compiler-id. It also bypasses the check for working compiler and basic compiler information tests.
</para><para>So a simple toolchain file could look like this:
</para><literallayout>   INCLUDE (CMakeForceCompiler)
   SET(CMAKE_SYSTEM_NAME Generic)
   CMAKE_FORCE_C_COMPILER   (chc12 MetrowerksHicross)
   CMAKE_FORCE_CXX_COMPILER (chc12 MetrowerksHicross)
</literallayout>
    
    <para id="module_CMakePackageConfigHelpers"><sect2><title>CMakePackageConfigHelpers</title></sect2> CONFIGURE_PACKAGE_CONFIG_FILE(), WRITE_BASIC_PACKAGE_VERSION_FILE()</para>

    <para>
</para><literallayout>    CONFIGURE_PACKAGE_CONFIG_FILE(&lt;input&gt; &lt;output&gt; INSTALL_DESTINATION &lt;path&gt;
                                                   [PATH_VARS &lt;var1&gt; &lt;var2&gt; ... &lt;varN&gt;]
                                                   [NO_SET_AND_CHECK_MACRO]
                                                   [NO_CHECK_REQUIRED_COMPONENTS_MACRO])
</literallayout>
    <para>
</para><para>CONFIGURE_PACKAGE_CONFIG_FILE() should be used instead of the plain CONFIGURE_FILE() command when creating the &lt;Name&gt;Config.cmake or &lt;Name&gt;-config.cmake file for installing a project or library. It helps making the resulting package relocatable by avoiding hardcoded paths in the installed Config.cmake file.
</para><para>In a FooConfig.cmake file there may be code like this to make the install destinations know to the using project:
</para><literallayout>   set(FOO_INCLUDE_DIR   "@CMAKE_INSTALL_FULL_INCLUDEDIR@" )
   set(FOO_DATA_DIR   "@CMAKE_INSTALL_PREFIX@/@RELATIVE_DATA_INSTALL_DIR@" )
   set(FOO_ICONS_DIR   "@CMAKE_INSTALL_PREFIX@/share/icons" )
   ...logic to determine installedPrefix from the own location...
   set(FOO_CONFIG_DIR  "${installedPrefix}/@CONFIG_INSTALL_DIR@" )
</literallayout>
    <para>All 4 options shown above are not sufficient, since the first 3 hardcode the absolute directory locations, and the 4th case works only if the logic to determine the installedPrefix is correct, and if CONFIG_INSTALL_DIR contains a relative path, which in general cannot be guaranteed. This has the effect that the resulting FooConfig.cmake file would work poorly under Windows and OSX, where users are used to choose the install location of a binary package at install time, independent from how CMAKE_INSTALL_PREFIX was set at build/cmake time.
</para><para>Using CONFIGURE_PACKAGE_CONFIG_FILE() helps. If used correctly, it makes the resulting FooConfig.cmake file relocatable. Usage:
</para><literallayout>   1. write a FooConfig.cmake.in file as you are used to
   2. insert a line containing only the string "@PACKAGE_INIT@"
   3. instead of SET(FOO_DIR "@SOME_INSTALL_DIR@"), use SET(FOO_DIR "@PACKAGE_SOME_INSTALL_DIR@")
      (this must be after the @PACKAGE_INIT@ line)
   4. instead of using the normal CONFIGURE_FILE(), use CONFIGURE_PACKAGE_CONFIG_FILE()
</literallayout>
    <para>
</para><para>The &lt;input&gt; and &lt;output&gt; arguments are the input and output file, the same way as in CONFIGURE_FILE().
</para><para>The &lt;path&gt; given to INSTALL_DESTINATION must be the destination where the FooConfig.cmake file will be installed to. This can either be a relative or absolute path, both work.
</para><para>The variables &lt;var1&gt; to &lt;varN&gt; given as PATH_VARS are the variables which contain install destinations. For each of them the macro will create a helper variable PACKAGE_&lt;var...&gt;. These helper variables must be used in the FooConfig.cmake.in file for setting the installed location. They are calculated by CONFIGURE_PACKAGE_CONFIG_FILE() so that they are always relative to the installed location of the package. This works both for relative and also for absolute locations. For absolute locations it works only if the absolute location is a subdirectory of CMAKE_INSTALL_PREFIX.
</para><para>By default configure_package_config_file() also generates two helper macros, set_and_check() and check_required_components() into the FooConfig.cmake file.
</para><para>set_and_check() should be used instead of the normal set() command for setting directories and file locations. Additionally to setting the variable it also checks that the referenced file or directory actually exists and fails with a FATAL_ERROR otherwise. This makes sure that the created FooConfig.cmake file does not contain wrong references. When using the NO_SET_AND_CHECK_MACRO, this macro is not generated into the FooConfig.cmake file.
</para><para>check_required_components(&lt;package_name&gt;) should be called at the end of the FooConfig.cmake file if the package supports components. This macro checks whether all requested, non-optional components have been found, and if this is not the case, sets the Foo_FOUND variable to FALSE, so that the package is considered to be not found. It does that by testing the Foo_&lt;Component&gt;_FOUND variables for all requested required components. When using the NO_CHECK_REQUIRED_COMPONENTS option, this macro is not generated into the FooConfig.cmake file.
</para><para>For an example see below the documentation for WRITE_BASIC_PACKAGE_VERSION_FILE().
</para><para>
</para><literallayout>  WRITE_BASIC_PACKAGE_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion|ExactVersion) )
</literallayout>
    <para>
</para><para>Writes a file for use as &lt;package&gt;ConfigVersion.cmake file to &lt;filename&gt;. See the documentation of FIND_PACKAGE() for details on this.
</para><literallayout>    filename is the output filename, it should be in the build tree.
    major.minor.patch is the version number of the project to be installed
</literallayout>
    <para>The COMPATIBILITY mode AnyNewerVersion means that the installed package version will be considered compatible if it is newer or exactly the same as the requested version. This mode should be used for packages which are fully backward compatible, also across major versions. If SameMajorVersion is used instead, then the behaviour differs from AnyNewerVersion in that the major version number must be the same as requested, e.g. version 2.0 will not be considered compatible if 1.0 is requested. This mode should be used for packages which guarantee backward compatibility within the same major version. If ExactVersion is used, then the package is only considered compatible if the requested version matches exactly its own version number (not considering the tweak version). For example, version 1.2.3 of a package is only considered compatible to requested version 1.2.3. This mode is for packages without compatibility guarantees. If your project has more elaborated version matching rules, you will need to write your own custom ConfigVersion.cmake file instead of using this macro.
</para><para>Internally, this macro executes configure_file() to create the resulting version file. Depending on the COMPATIBLITY, either the file BasicConfigVersion-SameMajorVersion.cmake.in or BasicConfigVersion-AnyNewerVersion.cmake.in is used. Please note that these two files are internal to CMake and you should not call configure_file() on them yourself, but they can be used as starting point to create more sophisticted custom ConfigVersion.cmake files.
</para><para>
</para><para>Example using both configure_package_config_file() and write_basic_package_version_file(): CMakeLists.txt:
</para><literallayout>   set(INCLUDE_INSTALL_DIR include/ ... CACHE )
   set(LIB_INSTALL_DIR lib/ ... CACHE )
   set(SYSCONFIG_INSTALL_DIR etc/foo/ ... CACHE )
   ...
   include(CMakePackageConfigHelpers)
   configure_package_config_file(FooConfig.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/FooConfig.cmake
                                 INSTALL_DESTINATION ${LIB_INSTALL_DIR}/Foo/cmake
                                 PATH_VARS INCLUDE_INSTALL_DIR SYSCONFIG_INSTALL_DIR)
   write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake
                                    VERSION 1.2.3
                                    COMPATIBILITY SameMajorVersion )
   install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FooConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FooConfigVersion.cmake
           DESTINATION ${LIB_INSTALL_DIR}/Foo/cmake )
</literallayout>
    <para>
</para><para>With a FooConfig.cmake.in:
</para><literallayout>   set(FOO_VERSION x.y.z)
   ...
   @PACKAGE_INIT@
   ...
   set_and_check(FOO_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
   set_and_check(FOO_SYSCONFIG_DIR "@PACKAGE_SYSCONFIG_INSTALL_DIR@")
</literallayout>
    <para>
</para><literallayout>   check_required_components(Foo)
</literallayout>
    
    <para id="module_CMakeParseArguments"><sect2><title>CMakeParseArguments</title></sect2>  </para>

    <para>CMAKE_PARSE_ARGUMENTS(&lt;prefix&gt; &lt;options&gt; &lt;one_value_keywords&gt; &lt;multi_value_keywords&gt; args...)
</para><para>CMAKE_PARSE_ARGUMENTS() is intended to be used in macros or functions for parsing the arguments given to that macro or function. It processes the arguments and defines a set of variables which hold the values of the respective options.
</para><para>The &lt;options&gt; argument contains all options for the respective macro, i.e. keywords which can be used when calling the macro without any value following, like e.g. the OPTIONAL keyword of the install() command.
</para><para>The &lt;one_value_keywords&gt; argument contains all keywords for this macro which are followed by one value, like e.g. DESTINATION keyword of the install() command.
</para><para>The &lt;multi_value_keywords&gt; argument contains all keywords for this macro which can be followed by more than one value, like e.g. the TARGETS or FILES keywords of the install() command.
</para><para>When done, CMAKE_PARSE_ARGUMENTS() will have defined for each of the keywords listed in &lt;options&gt;, &lt;one_value_keywords&gt; and &lt;multi_value_keywords&gt; a variable composed of the given &lt;prefix&gt; followed by "_" and the name of the respective keyword. These variables will then hold the respective value from the argument list. For the &lt;options&gt; keywords this will be TRUE or FALSE.
</para><para>All remaining arguments are collected in a variable &lt;prefix&gt;_UNPARSED_ARGUMENTS, this can be checked afterwards to see whether your macro was called with unrecognized parameters.
</para><para>As an example here a my_install() macro, which takes similar arguments as the real install() command:
</para><literallayout>   function(MY_INSTALL)
     set(options OPTIONAL FAST)
     set(oneValueArgs DESTINATION RENAME)
     set(multiValueArgs TARGETS CONFIGURATIONS)
     cmake_parse_arguments(MY_INSTALL "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
     ...
</literallayout>
    <para>
</para><para>Assume my_install() has been called like this:
</para><literallayout>   my_install(TARGETS foo bar DESTINATION bin OPTIONAL blub)
</literallayout>
    <para>
</para><para>After the cmake_parse_arguments() call the macro will have set the following variables:
</para><literallayout>   MY_INSTALL_OPTIONAL = TRUE
   MY_INSTALL_FAST = FALSE (this option was not used when calling my_install()
   MY_INSTALL_DESTINATION = "bin"
   MY_INSTALL_RENAME = "" (was not used)
   MY_INSTALL_TARGETS = "foo;bar"
   MY_INSTALL_CONFIGURATIONS = "" (was not used)
   MY_INSTALL_UNPARSED_ARGUMENTS = "blub" (no value expected after "OPTIONAL"
</literallayout>
    <para>
</para><para>You can the continue and process these variables.
</para><para>Keywords terminate lists of values, e.g. if directly after a one_value_keyword another recognized keyword follows, this is interpreted as the beginning of the new option. E.g. my_install(TARGETS foo DESTINATION OPTIONAL) would result in MY_INSTALL_DESTINATION set to "OPTIONAL", but MY_INSTALL_DESTINATION would be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefor.</para>
    <para id="module_CMakePrintSystemInformation"><sect2><title>CMakePrintSystemInformation</title></sect2> print system information</para>

    <para>This file can be used for diagnostic purposes just include it in a project to see various internal CMake variables.</para>
    <para id="module_CMakePushCheckState"><sect2><title>CMakePushCheckState</title></sect2>  </para>

    <para>This module defines two macros: CMAKE_PUSH_CHECK_STATE() and CMAKE_POP_CHECK_STATE() These two macros can be used to save and restore the state of the variables CMAKE_REQUIRED_FLAGS, CMAKE_REQUIRED_DEFINITIONS, CMAKE_REQUIRED_LIBRARIES and CMAKE_REQUIRED_INCLUDES used by the various Check-files coming with CMake, like e.g. check_function_exists() etc. The variable contents are pushed on a stack, pushing multiple times is supported. This is useful e.g. when executing such tests in a Find-module, where they have to be set, but after the Find-module has been executed they should have the same value as they had before.
</para><para>Usage:
</para><literallayout>   cmake_push_check_state()
   set(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -DSOME_MORE_DEF)
   check_function_exists(...)
   cmake_pop_check_state()
</literallayout>
    
    <para id="module_CMakeVerifyManifest"><sect2><title>CMakeVerifyManifest</title></sect2>  </para>

    <para>CMakeVerifyManifest.cmake
</para><para>This script is used to verify that embeded manifests and side by side manifests for a project match.  To run this script, cd to a directory and run the script with cmake -P. On the command line you can pass in versions that are OK even if not found in the .manifest files. For example,  cmake -Dallow_versions=8.0.50608.0 -PCmakeVerifyManifest.cmake could be used to allow an embeded manifest of 8.0.50608.0 to be used in a project even if that version was not found in the .manifest file.</para>
    <para id="module_CPack"><sect2><title>CPack</title></sect2> Build binary and source package installers.</para>

    <para>The CPack module generates binary and source installers in a variety of formats using the cpack program. Inclusion of the CPack module adds two new targets to the resulting makefiles, package and package_source, which build the binary and source installers, respectively. The generated binary installers contain everything installed via CMake's INSTALL command (and the deprecated INSTALL_FILES, INSTALL_PROGRAMS, and INSTALL_TARGETS commands).
</para><para>For certain kinds of binary installers (including the graphical installers on Mac OS X and Windows), CPack generates installers that allow users to select individual application components to install. See CPackComponent module for that.
</para><para>The CPACK_GENERATOR variable has different meanings in different contexts. In your CMakeLists.txt file, CPACK_GENERATOR is a *list of generators*: when run with no other arguments, CPack will iterate over that list and produce one package for each generator. In a CPACK_PROJECT_CONFIG_FILE, though, CPACK_GENERATOR is a *string naming a single generator*. If you need per-cpack- generator logic to control *other* cpack settings, then you need a CPACK_PROJECT_CONFIG_FILE.
</para><para>The CMake source tree itself contains a CPACK_PROJECT_CONFIG_FILE. See the top level file CMakeCPackOptions.cmake.in for an example.
</para><para>If set, the CPACK_PROJECT_CONFIG_FILE is included automatically on a per-generator basis. It only need contain overrides.
</para><para>Here's how it works:
</para><literallayout>  - cpack runs
  - it includes CPackConfig.cmake
  - it iterates over the generators listed in that file's
    CPACK_GENERATOR list variable (unless told to use just a
    specific one via -G on the command line...)
</literallayout>
    <para>
</para><literallayout>  - foreach generator, it then
    - sets CPACK_GENERATOR to the one currently being iterated
    - includes the CPACK_PROJECT_CONFIG_FILE
    - produces the package for that generator
</literallayout>
    <para>
</para><para>This is the key: For each generator listed in CPACK_GENERATOR in CPackConfig.cmake, cpack will *reset* CPACK_GENERATOR internally to *the one currently being used* and then include the CPACK_PROJECT_CONFIG_FILE.
</para><para>Before including this CPack module in your CMakeLists.txt file, there are a variety of variables that can be set to customize the resulting installers. The most commonly-used variables are:
</para><literallayout>  CPACK_PACKAGE_NAME - The name of the package (or application). If
  not specified, defaults to the project name.
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_VENDOR - The name of the package vendor. (e.g.,
  "Kitware").
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_VERSION_MAJOR - Package major Version
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_VERSION_MINOR - Package minor Version
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_VERSION_PATCH - Package patch Version
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_DESCRIPTION_FILE - A text file used to describe the
  project. Used, for example, the introduction screen of a
  CPack-generated Windows installer to describe the project.
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_DESCRIPTION_SUMMARY - Short description of the
  project (only a few words).
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_FILE_NAME - The name of the package file to generate,
  not including the extension. For example, cmake-2.6.1-Linux-i686.
  The default value is
  ${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}.
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_INSTALL_DIRECTORY - Installation directory on the
  target system. This may be used by some CPack generators
  like NSIS to create an installation directory e.g., "CMake 2.5"
  below the installation prefix. All installed element will be
  put inside this directory.
</literallayout>
    <para>
</para><literallayout>   CPACK_PACKAGE_ICON - A branding image that will be displayed inside
   the installer (used by GUI installers).
</literallayout>
    <para>
</para><literallayout>  CPACK_PROJECT_CONFIG_FILE - CPack-time project CPack configuration
  file. This file included at cpack time, once per
  generator after CPack has set CPACK_GENERATOR to the actual generator
  being used. It allows per-generator setting of CPACK_* variables at
  cpack time.
</literallayout>
    <para>
</para><literallayout>  CPACK_RESOURCE_FILE_LICENSE - License to be embedded in the installer. It
  will typically be displayed to the user by the produced installer
  (often with an explicit "Accept" button, for graphical installers)
  prior to installation. This license file is NOT added to installed
  file but is used by some CPack generators like NSIS. If you want
  to install a license file (may be the same as this one)
  along with your project you must add an appropriate CMake INSTALL
  command in your CMakeLists.txt.
</literallayout>
    <para>
</para><literallayout>  CPACK_RESOURCE_FILE_README - ReadMe file to be embedded in the installer. It
  typically describes in some detail the purpose of the project
  during the installation. Not all CPack generators uses
  this file.
</literallayout>
    <para>
</para><literallayout>  CPACK_RESOURCE_FILE_WELCOME - Welcome file to be embedded in the
  installer. It welcomes users to this installer.
  Typically used in the graphical installers on Windows and Mac OS X.
</literallayout>
    <para>
</para><literallayout>  CPACK_MONOLITHIC_INSTALL - Disables the component-based
  installation mechanism. When set the component specification is ignored
  and all installed items are put in a single "MONOLITHIC" package.
  Some CPack generators do monolithic packaging by default and
  may be asked to do component packaging by setting
  CPACK_&lt;GENNAME&gt;_COMPONENT_INSTALL to 1/TRUE.
</literallayout>
    <para>
</para><literallayout>  CPACK_GENERATOR - List of CPack generators to use. If not
  specified, CPack will create a set of options CPACK_BINARY_&lt;GENNAME&gt; (e.g.,
  CPACK_BINARY_NSIS) allowing the user to enable/disable individual
  generators. This variable may be used on the command line
  as well as in:
</literallayout>
    <para>
</para><literallayout>    cpack -D CPACK_GENERATOR="ZIP;TGZ" /path/to/build/tree
</literallayout>
    <para>
</para><literallayout>  CPACK_OUTPUT_CONFIG_FILE - The name of the CPack binary configuration
  file. This file is the CPack configuration generated by the CPack module
  for binary installers. Defaults to CPackConfig.cmake.
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_EXECUTABLES - Lists each of the executables and associated
  text label to be used to create Start Menu shortcuts. For example,
  setting this to the list ccmake;CMake will
  create a shortcut named "CMake" that will execute the installed
  executable ccmake. Not all CPack generators use it (at least NSIS and
  OSXX11 do).
</literallayout>
    <para>
</para><literallayout>  CPACK_STRIP_FILES - List of files to be stripped. Starting with
  CMake 2.6.0 CPACK_STRIP_FILES will be a boolean variable which
  enables stripping of all files (a list of files evaluates to TRUE
  in CMake, so this change is compatible).
</literallayout>
    <para>
</para><para>The following CPack variables are specific to source packages, and  will not affect binary packages:
</para><literallayout>  CPACK_SOURCE_PACKAGE_FILE_NAME - The name of the source package. For
  example cmake-2.6.1.
</literallayout>
    <para>
</para><literallayout>  CPACK_SOURCE_STRIP_FILES - List of files in the source tree that
  will be stripped. Starting with CMake 2.6.0
  CPACK_SOURCE_STRIP_FILES will be a boolean variable which enables
  stripping of all files (a list of files evaluates to TRUE in CMake,
  so this change is compatible).
</literallayout>
    <para>
</para><literallayout>  CPACK_SOURCE_GENERATOR - List of generators used for the source
  packages. As with CPACK_GENERATOR, if this is not specified then
  CPack will create a set of options (e.g., CPACK_SOURCE_ZIP)
  allowing users to select which packages will be generated.
</literallayout>
    <para>
</para><literallayout>  CPACK_SOURCE_OUTPUT_CONFIG_FILE - The name of the CPack source
  configuration file. This file is the CPack configuration generated by the
  CPack module for source installers. Defaults to CPackSourceConfig.cmake.
</literallayout>
    <para>
</para><literallayout>  CPACK_SOURCE_IGNORE_FILES - Pattern of files in the source tree
  that won't be packaged when building a source package. This is a
  list of regular expression patterns (that must be properly escaped),
  e.g., /CVS/;/\\.svn/;\\.swp$;\\.#;/#;.*~;cscope.*
</literallayout>
    <para>
</para><para>The following variables are for advanced uses of CPack:
</para><literallayout>  CPACK_CMAKE_GENERATOR - What CMake generator should be used if the
  project is CMake project. Defaults to the value of CMAKE_GENERATOR
  few users will want to change this setting.
</literallayout>
    <para>
</para><literallayout>  CPACK_INSTALL_CMAKE_PROJECTS - List of four values that specify
  what project to install. The four values are: Build directory,
  Project Name, Project Component, Directory. If omitted, CPack will
  build an installer that installers everything.
</literallayout>
    <para>
</para><literallayout>  CPACK_SYSTEM_NAME - System name, defaults to the value of
  ${CMAKE_SYSTEM_NAME}.
</literallayout>
    <para>
</para><literallayout>  CPACK_PACKAGE_VERSION - Package full version, used internally. By
  default, this is built from CPACK_PACKAGE_VERSION_MAJOR,
  CPACK_PACKAGE_VERSION_MINOR, and CPACK_PACKAGE_VERSION_PATCH.
</literallayout>
    <para>
</para><literallayout>  CPACK_TOPLEVEL_TAG - Directory for the installed files.
</literallayout>
    <para>
</para><literallayout>  CPACK_INSTALL_COMMANDS - Extra commands to install components.
</literallayout>
    <para>
</para><literallayout>  CPACK_INSTALLED_DIRECTORIES - Extra directories to install.
</literallayout>
    <para>
</para><literallayout>   CPACK_PACKAGE_INSTALL_REGISTRY_KEY - Registry key used when
   installing this project. This is only used
   by installer for Windows.
   CPACK_CREATE_DESKTOP_LINKS - List of desktop links to create.
</literallayout>
    <para>
</para>
    <para id="module_CPackBundle"><sect2><title>CPackBundle</title></sect2> CPack Bundle generator (Mac OS X) specific options</para>

    <para>
</para><para>Installers built on Mac OS X using the Bundle generator use the aforementioned DragNDrop (CPACK_DMG_xxx) variables, plus the following Bundle-specific parameters (CPACK_BUNDLE_xxx).
</para><literallayout>  CPACK_BUNDLE_NAME - The name of the generated bundle. This
  appears in the OSX finder as the bundle name. Required.
</literallayout>
    <para>
</para><literallayout>  CPACK_BUNDLE_PLIST - Path to an OSX plist file that will be used
  for the generated bundle. This assumes that the caller has generated
  or specified their own Info.plist file. Required.
</literallayout>
    <para>
</para><literallayout>  CPACK_BUNDLE_ICON - Path to an OSX icon file that will be used as
  the icon for the generated bundle. This is the icon that appears in the
  OSX finder for the bundle, and in the OSX dock when the bundle is opened.
  Required.
</literallayout>
    <para>
</para><literallayout>  CPACK_BUNDLE_STARTUP_COMMAND - Path to a startup script. This is a path to
  an executable or script that will be run whenever an end-user double-clicks
  the generated bundle in the OSX Finder. Optional.
</literallayout>
    
    <para id="module_CPackComponent"><sect2><title>CPackComponent</title></sect2> Build binary and source package installers</para>

    <para>
</para><para>The CPackComponent module is the module which handles the component part of CPack. See CPack module for general information about CPack.
</para><para>For certain kinds of binary installers (including the graphical installers on Mac OS X and Windows), CPack generates installers that allow users to select individual application components to install. The contents of each of the components are identified by the COMPONENT argument of CMake's INSTALL command. These components can be annotated with user-friendly names and descriptions, inter-component dependencies, etc., and grouped in various ways to customize the resulting installer. See the cpack_add_* commands, described below, for more information about component-specific installations.
</para><para>Component-specific installation allows users to select specific sets of components to install during the install process. Installation components are identified by the COMPONENT argument of CMake's INSTALL commands, and should be further described by the following CPack commands:
</para><literallayout>  CPACK_COMPONENTS_ALL - The list of component to install.
</literallayout>
    <para>
</para><literallayout>  The default value of this variable is computed by CPack
  and contains all components defined by the project. The
  user may set it to only include the specified components.
</literallayout>
    <para>
</para><literallayout>  CPACK_&lt;GENNAME&gt;_COMPONENT_INSTALL - Enable/Disable component install for
  CPack generator &lt;GENNAME&gt;.
</literallayout>
    <para>
</para><literallayout>  Each CPack Generator (RPM, DEB, ARCHIVE, NSIS, DMG, etc...) has a legacy
  default behavior. e.g. RPM builds monolithic whereas NSIS builds component.
  One can change the default behavior by setting this variable to 0/1 or OFF/ON.
  CPACK_COMPONENTS_GROUPING - Specify how components are grouped for multi-package
  component-aware CPack generators.
</literallayout>
    <para>
</para><literallayout>  Some generators like RPM or ARCHIVE family (TGZ, ZIP, ...) generates several
  packages files when asked for component packaging. They group the component
  differently depending on the value of this variable:
     - ONE_PER_GROUP (default): creates one package file per component group
     - ALL_COMPONENTS_IN_ONE : creates a single package with all (requested) component
     - IGNORE : creates one package per component, i.e. IGNORE component group
  One can specify different grouping for different CPack generator by using
  a CPACK_PROJECT_CONFIG_FILE.
  CPACK_COMPONENT_&lt;compName&gt;_DISPLAY_NAME - The name to be displayed for a component.
  CPACK_COMPONENT_&lt;compName&gt;_DESCRIPTION - The description of a component.
  CPACK_COMPONENT_&lt;compName&gt;_GROUP - The group of a component.
  CPACK_COMPONENT_&lt;compName&gt;_DEPENDS - The dependencies (list of components)
  on which this component depends.
  CPACK_COMPONENT_&lt;compName&gt;_REQUIRED - True is this component is required.
   cpack_add_component - Describes a CPack installation component
   named by the COMPONENT argument to a CMake INSTALL command.
</literallayout>
    <para>
</para><literallayout>     cpack_add_component(compname
                         [DISPLAY_NAME name]
                         [DESCRIPTION description]
                         [HIDDEN | REQUIRED | DISABLED ]
                         [GROUP group]
                         [DEPENDS comp1 comp2 ... ]
                         [INSTALL_TYPES type1 type2 ... ]
                         [DOWNLOADED]
                         [ARCHIVE_FILE filename])
</literallayout>
    <para>
</para><literallayout>   The cmake_add_component command describes an installation
   component, which the user can opt to install or remove as part of
   the graphical installation process. compname is the name of the
   component, as provided to the COMPONENT argument of one or more
   CMake INSTALL commands.
</literallayout>
    <para>
</para><literallayout>   DISPLAY_NAME is the displayed name of the component, used in
   graphical installers to display the component name. This value can
   be any string.
</literallayout>
    <para>
</para><literallayout>   DESCRIPTION is an extended description of the component, used in
   graphical installers to give the user additional information about
   the component. Descriptions can span multiple lines using "\n" as
   the line separator. Typically, these descriptions should be no
   more than a few lines long.
</literallayout>
    <para>
</para><literallayout>   HIDDEN indicates that this component will be hidden in the
   graphical installer, so that the user cannot directly change
   whether it is installed or not.
</literallayout>
    <para>
</para><literallayout>   REQUIRED indicates that this component is required, and therefore
   will always be installed. It will be visible in the graphical
   installer, but it cannot be unselected. (Typically, required
   components are shown greyed out).
</literallayout>
    <para>
</para><literallayout>   DISABLED indicates that this component should be disabled
   (unselected) by default. The user is free to select this component
   for installation, unless it is also HIDDEN.
</literallayout>
    <para>
</para><literallayout>   DEPENDS lists the components on which this component depends. If
   this component is selected, then each of the components listed
   must also be selected. The dependency information is encoded
   within the installer itself, so that users cannot install
   inconsitent sets of components.
</literallayout>
    <para>
</para><literallayout>   GROUP names the component group of which this component is a
   part. If not provided, the component will be a standalone
   component, not part of any component group. Component groups are
   described with the cpack_add_component_group command, detailed
   below.
</literallayout>
    <para>
</para><literallayout>   INSTALL_TYPES lists the installation types of which this component
   is a part. When one of these installations types is selected, this
   component will automatically be selected. Installation types are
   described with the cpack_add_install_type command, detailed below.
</literallayout>
    <para>
</para><literallayout>   DOWNLOADED indicates that this component should be downloaded
   on-the-fly by the installer, rather than packaged in with the
   installer itself. For more information, see the cpack_configure_downloads
   command.
</literallayout>
    <para>
</para><literallayout>   ARCHIVE_FILE provides a name for the archive file created by CPack
   to be used for downloaded components. If not supplied, CPack will
   create a file with some name based on CPACK_PACKAGE_FILE_NAME and
   the name of the component. See cpack_configure_downloads for more
   information.
</literallayout>
    <para>
</para><literallayout>   cpack_add_component_group - Describes a group of related CPack
   installation components.
</literallayout>
    <para>
</para><literallayout>     cpack_add_component_group(groupname
                              [DISPLAY_NAME name]
                              [DESCRIPTION description]
                              [PARENT_GROUP parent]
                              [EXPANDED]
                              [BOLD_TITLE])
</literallayout>
    <para>
</para><literallayout>   The cpack_add_component_group describes a group of installation
   components, which will be placed together within the listing of
   options. Typically, component groups allow the user to
   select/deselect all of the components within a single group via a
   single group-level option. Use component groups to reduce the
   complexity of installers with many options. groupname is an
   arbitrary name used to identify the group in the GROUP argument of
   the cpack_add_component command, which is used to place a
   component in a group. The name of the group must not conflict with
   the name of any component.
</literallayout>
    <para>
</para><literallayout>   DISPLAY_NAME is the displayed name of the component group, used in
   graphical installers to display the component group name. This
   value can be any string.
</literallayout>
    <para>
</para><literallayout>   DESCRIPTION is an extended description of the component group,
   used in graphical installers to give the user additional
   information about the components within that group. Descriptions
   can span multiple lines using "\n" as the line
   separator. Typically, these descriptions should be no more than a
   few lines long.
</literallayout>
    <para>
</para><literallayout>   PARENT_GROUP, if supplied, names the parent group of this group.
   Parent groups are used to establish a hierarchy of groups,
   providing an arbitrary hierarchy of groups.
</literallayout>
    <para>
</para><literallayout>   EXPANDED indicates that, by default, the group should show up as
   "expanded", so that the user immediately sees all of the
   components within the group. Otherwise, the group will initially
   show up as a single entry.
</literallayout>
    <para>
</para><literallayout>   BOLD_TITLE indicates that the group title should appear in bold,
   to call the user's attention to the group.
</literallayout>
    <para>
</para><literallayout>   cpack_add_install_type - Add a new installation type containing a
   set of predefined component selections to the graphical installer.
</literallayout>
    <para>
</para><literallayout>     cpack_add_install_type(typename
                            [DISPLAY_NAME name])
</literallayout>
    <para>
</para><literallayout>   The cpack_add_install_type command identifies a set of preselected
   components that represents a common use case for an
   application. For example, a "Developer" install type might include
   an application along with its header and library files, while an
   "End user" install type might just include the application's
   executable. Each component identifies itself with one or more
   install types via the INSTALL_TYPES argument to
   cpack_add_component.
</literallayout>
    <para>
</para><literallayout>   DISPLAY_NAME is the displayed name of the install type, which will
   typically show up in a drop-down box within a graphical
   installer. This value can be any string.
</literallayout>
    <para>
</para><literallayout>   cpack_configure_downloads - Configure CPack to download selected
   components on-the-fly as part of the installation process.
</literallayout>
    <para>
</para><literallayout>     cpack_configure_downloads(site
                               [UPLOAD_DIRECTORY dirname]
                               [ALL]
                               [ADD_REMOVE|NO_ADD_REMOVE])
</literallayout>
    <para>
</para><literallayout>   The cpack_configure_downloads command configures installation-time
   downloads of selected components. For each downloadable component,
   CPack will create an archive containing the contents of that
   component, which should be uploaded to the given site. When the
   user selects that component for installation, the installer will
   download and extract the component in place. This feature is
   useful for creating small installers that only download the
   requested components, saving bandwidth. Additionally, the
   installers are small enough that they will be installed as part of
   the normal installation process, and the "Change" button in
   Windows Add/Remove Programs control panel will allow one to add or
   remove parts of the application after the original
   installation. On Windows, the downloaded-components functionality
   requires the ZipDLL plug-in for NSIS, available at:
</literallayout>
    <para>
</para><literallayout>     <ulink url="http://nsis.sourceforge.net/ZipDLL_plug-in" />
</literallayout>
    <para>
</para><literallayout>   On Mac OS X, installers that download components on-the-fly can
   only be built and installed on system using Mac OS X 10.5 or
   later.
</literallayout>
    <para>
</para><literallayout>   The site argument is a URL where the archives for downloadable
   components will reside, e.g., <ulink url="http://www.cmake.org/files/2.6.1/installer/" />
   All of the archives produced by CPack should be uploaded to that location.
</literallayout>
    <para>
</para><literallayout>   UPLOAD_DIRECTORY is the local directory where CPack will create the
   various archives for each of the components. The contents of this
   directory should be uploaded to a location accessible by the URL given
   in the site argument. If omitted, CPack will use the directory
   CPackUploads inside the CMake binary directory to store the generated
   archives.
</literallayout>
    <para>
</para><literallayout>   The ALL flag indicates that all components be downloaded. Otherwise, only
   those components explicitly marked as DOWNLOADED or that have a specified
   ARCHIVE_FILE will be downloaded. Additionally, the ALL option implies
   ADD_REMOVE (unless NO_ADD_REMOVE is specified).
</literallayout>
    <para>
</para><literallayout>   ADD_REMOVE indicates that CPack should install a copy of the installer
   that can be called from Windows' Add/Remove Programs dialog (via the
   "Modify" button) to change the set of installed components. NO_ADD_REMOVE
   turns off this behavior. This option is ignored on Mac OS X.
</literallayout>
    
    <para id="module_CPackCygwin"><sect2><title>CPackCygwin</title></sect2> Cygwin CPack generator (Cygwin).</para>

    <para>The following variable is specific to installers build on and/or for Cygwin:
</para><literallayout>   CPACK_CYGWIN_PATCH_NUMBER - The Cygwin patch number.
   FIXME: This documentation is incomplete.
   CPACK_CYGWIN_PATCH_FILE - The Cygwin patch file.
   FIXME: This documentation is incomplete.
   CPACK_CYGWIN_BUILD_SCRIPT - The Cygwin build script.
   FIXME: This documentation is incomplete.
</literallayout>
    
    <para id="module_CPackDMG"><sect2><title>CPackDMG</title></sect2> DragNDrop CPack generator (Mac OS X).</para>

    <para>The following variables are specific to the DragNDrop installers built on Mac OS X:
</para><literallayout>  CPACK_DMG_VOLUME_NAME - The volume name of the generated disk
  image. Defaults to CPACK_PACKAGE_FILE_NAME.
</literallayout>
    <para>
</para><literallayout>  CPACK_DMG_FORMAT - The disk image format. Common values are UDRO
  (UDIF read-only), UDZO (UDIF zlib-compressed) or UDBZ (UDIF
  bzip2-compressed). Refer to hdiutil(1) for more information on
  other available formats.
</literallayout>
    <para>
</para><literallayout>  CPACK_DMG_DS_STORE - Path to a custom DS_Store file. This .DS_Store
  file e.g. can be used to specify the Finder window
  position/geometry and layout (such as hidden toolbars, placement of the
  icons etc.). This file has to be generated by the Finder (either manually or
  through OSA-script) using a normal folder from which the .DS_Store
  file can then be extracted.
</literallayout>
    <para>
</para><literallayout>  CPACK_DMG_BACKGROUND_IMAGE - Path to a background image file. This
  file will be used as the background for the Finder Window when the disk
  image is opened.  By default no background image is set. The background
  image is applied after applying the custom .DS_Store file.
</literallayout>
    <para>
</para><literallayout>  CPACK_COMMAND_HDIUTIL - Path to the hdiutil(1) command used to
  operate on disk image files on Mac OS X. This variable can be used
  to override the automatically detected command (or specify its
  location if the auto-detection fails to find it.)
</literallayout>
    <para>
</para><literallayout>  CPACK_COMMAND_SETFILE - Path to the SetFile(1) command used to set
  extended attributes on files and directories on Mac OS X. This
  variable can be used to override the automatically detected
  command (or specify its location if the auto-detection fails to
  find it.)
</literallayout>
    <para>
</para><literallayout>  CPACK_COMMAND_REZ - Path to the Rez(1) command used to compile
  resources on Mac OS X. This variable can be used to override the
  automatically detected command (or specify its location if the
  auto-detection fails to find it.)
</literallayout>
    
    <para id="module_CPackDeb"><sect2><title>CPackDeb</title></sect2> The builtin (binary) CPack Deb generator (Unix only)</para>

    <para>CPackDeb may be used to create Deb package using CPack. CPackDeb is a CPack generator thus it uses the CPACK_XXX variables used by CPack : <ulink url="http://www.cmake.org/Wiki/CMake:CPackConfiguration." /> CPackDeb generator should work on any linux host but it will produce better deb package when Debian specific tools 'dpkg-xxx' are usable on the build system.
</para><para>CPackDeb has specific features which are controlled by the specifics CPACK_DEBIAN_XXX variables.You'll find a detailed usage on the wiki:
</para><literallayout>  <ulink url="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators" />#DEB_.28UNIX_only.29
</literallayout>
    <para>However as a handy reminder here comes the list of specific variables:
</para><para>CPACK_DEBIAN_PACKAGE_NAME
</para><literallayout>     Mandatory : YES
     Default   : CPACK_PACKAGE_NAME (lower case)
     The debian package summary
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_VERSION
</para><literallayout>     Mandatory : YES
     Default   : CPACK_PACKAGE_VERSION
     The debian package version
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_ARCHITECTURE
</para><literallayout>     Mandatory : YES
     Default   : Output of dpkg --print-architecture (or i386 if dpkg is not found)
     The debian package architecture
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_DEPENDS
</para><literallayout>     Mandatory : NO
     Default   : -
     May be used to set deb dependencies.
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_MAINTAINER
</para><literallayout>     Mandatory : YES
     Default   : CPACK_PACKAGE_CONTACT
     The debian package maintainer
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_DESCRIPTION
</para><literallayout>     Mandatory : YES
     Default   : CPACK_PACKAGE_DESCRIPTION_SUMMARY
     The debian package description
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_SECTION
</para><literallayout>     Mandatory : YES
     Default   : 'devel'
     The debian package section
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_PRIORITY
</para><literallayout>     Mandatory : YES
     Default   : 'optional'
     The debian package priority
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_HOMEPAGE
</para><literallayout>     Mandatory : NO
     Default   : -
     The URL of the web site for this package
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_SHLIBDEPS
</para><literallayout>     Mandatory : NO
     Default   : OFF
     May be set to ON in order to use dpkg-shlibdeps to generate
     better package dependency list.
     You may need set CMAKE_INSTALL_RPATH toi appropriate value
     if you use this feature, because if you don't dpkg-shlibdeps
     may fail to find your own shared libs.
     See <ulink url="http://www.cmake.org/Wiki/CMake_RPATH_handling." />
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_DEBUG
</para><literallayout>     Mandatory : NO
     Default   : -
     May be set when invoking cpack in order to trace debug information
     during CPackDeb run.
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_PREDEPENDS
</para><literallayout>     Mandatory : NO
     Default   : -
     see <ulink url="http://www.debian.org/doc/debian-policy/ch-relationships.html" />#s-binarydeps
     This field is like Depends, except that it also forces dpkg to complete installation of
     the packages named before even starting the installation of the package which declares
     the pre-dependency.
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_ENHANCES
</para><literallayout>     Mandatory : NO
     Default   : -
     see <ulink url="http://www.debian.org/doc/debian-policy/ch-relationships.html" />#s-binarydeps
     This field is similar to Suggests but works in the opposite direction.
     It is used to declare that a package can enhance the functionality of another package.
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_BREAKS
</para><literallayout>     Mandatory : NO
     Default   : -
     see <ulink url="http://www.debian.org/doc/debian-policy/ch-relationships.html" />#s-binarydeps
     When one binary package declares that it breaks another, dpkg will refuse to allow the
     package which declares Breaks be installed unless the broken package is deconfigured first,
     and it will refuse to allow the broken package to be reconfigured.
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_CONFLICTS
</para><literallayout>     Mandatory : NO
     Default   : -
     see <ulink url="http://www.debian.org/doc/debian-policy/ch-relationships.html" />#s-binarydeps
     When one binary package declares a conflict with another using a Conflicts field,
     dpkg will refuse to allow them to be installed on the system at the same time.
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_PROVIDES
</para><literallayout>     Mandatory : NO
     Default   : -
     see <ulink url="http://www.debian.org/doc/debian-policy/ch-relationships.html" />#s-binarydeps
     A virtual package is one which appears in the Provides control field of another package.
</literallayout>
    <para>CPACK_DEBIAN_PACKAGE_REPLACES
</para><literallayout>     Mandatory : NO
     Default   : -
     see <ulink url="http://www.debian.org/doc/debian-policy/ch-relationships.html" />#s-binarydeps
     Packages can declare in their control file that they should overwrite
     files in certain other packages, or completely replace other packages.
</literallayout>
    
    <para id="module_CPackNSIS"><sect2><title>CPackNSIS</title></sect2> CPack NSIS generator specific options</para>

    <para>
</para><para>The following variables are specific to the graphical installers built on Windows using the Nullsoft Installation System.
</para><literallayout>   CPACK_NSIS_INSTALL_ROOT - The default installation directory presented
   to the end user by the NSIS installer is under this root dir. The full
   directory presented to the end user is:
   ${CPACK_NSIS_INSTALL_ROOT}/${CPACK_PACKAGE_INSTALL_DIRECTORY}
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_MUI_ICON - An icon filename.
   The name of a *.ico file used as the main icon for the generated
   install program.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_MUI_UNIICON - An icon filename.
   The name of a *.ico file used as the main icon for the generated
   uninstall program.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_INSTALLER_MUI_ICON_CODE - undocumented.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra NSIS commands that will
   be added to the install Section.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra NSIS commands that will
   be added to the uninstall Section.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_COMPRESSOR - The arguments that will be passed to the
   NSIS SetCompressor command.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_MODIFY_PATH - Modify PATH toggle.
   If this is set to "ON", then an extra page
   will appear in the installer that will allow the user to choose
   whether the program directory should be added to the system PATH
   variable.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_DISPLAY_NAME - The display name string that appears in
   the Windows Add/Remove Program control panel
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_PACKAGE_NAME - The title displayed at the top of the
   installer.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_INSTALLED_ICON_NAME - A path to the executable that
   contains the installer icon.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_HELP_LINK - URL to a web site providing assistance in
   installing your application.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_URL_INFO_ABOUT - URL to a web site providing more
   information about your application.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_CONTACT - Contact information for questions and comments
   about the installation process.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_CREATE_ICONS_EXTRA - Additional NSIS commands for
   creating start menu shortcuts.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_DELETE_ICONS_EXTRA -Additional NSIS commands to
   uninstall start menu shortcuts.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_EXECUTABLES_DIRECTORY - Creating NSIS start menu links
   assumes that they are in 'bin' unless this variable is set.
   For example, you would set this to 'exec' if your executables are
   in an exec directory.
</literallayout>
    <para>
</para><literallayout>   CPACK_NSIS_MUI_FINISHPAGE_RUN - Specify an executable to add an option
   to run on the finish page of the NSIS installer.
   CPACK_NSIS_MENU_LINKS - Specify links in [application] menu.
   This should contain a list of pair "link" "link name". The link
   may be an URL or a path relative to installation prefix.
   Like:
     set(CPACK_NSIS_MENU_LINKS
         "doc/cmake-@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@/cmake.html" "CMake Help"
         "<ulink url="http://www.cmake.org" />" "CMake Web Site")
</literallayout>
    
    <para id="module_CPackPackageMaker"><sect2><title>CPackPackageMaker</title></sect2> PackageMaker CPack generator (Mac OS X).</para>

    <para>The following variable is specific to installers build on Mac OS X using PackageMaker:
</para><literallayout>  CPACK_OSX_PACKAGE_VERSION - The version of Mac OS X that the
  resulting PackageMaker archive should be compatible with. Different
  versions of Mac OS X support different
  features. For example, CPack can only build component-based
  installers for Mac OS X 10.4 or newer, and can only build
  installers that download component son-the-fly for Mac OS X 10.5
  or newer. If left blank, this value will be set to the minimum
  version of Mac OS X that supports the requested features. Set this
  variable to some value (e.g., 10.4) only if you want to guarantee
  that your installer will work on that version of Mac OS X, and
  don't mind missing extra features available in the installer
  shipping with later versions of Mac OS X.
</literallayout>
    
    <para id="module_CPackRPM"><sect2><title>CPackRPM</title></sect2> The builtin (binary) CPack RPM generator (Unix only)</para>

    <para>CPackRPM may be used to create RPM package using CPack. CPackRPM is a CPack generator thus it uses the CPACK_XXX variables used by CPack : <ulink url="http://www.cmake.org/Wiki/CMake:CPackConfiguration" />
</para><para>However CPackRPM has specific features which are controlled by the specifics CPACK_RPM_XXX variables. CPackRPM is a component aware generator so when CPACK_RPM_COMPONENT_INSTALL is ON some more CPACK_RPM_&lt;ComponentName&gt;_XXXX variables may be used in order to have component specific values. Note however that &lt;componentName&gt; refers to the **grouping name**. This may be either a component name or a component GROUP name. Usually those vars correspond to RPM spec file entities, one may find information about spec files here <ulink url="http://www.rpm.org/wiki/Docs." /> You'll find a detailed usage of CPackRPM on the wiki:
</para><literallayout>  <ulink url="http://www.cmake.org/Wiki/CMake:CPackPackageGenerators" />#RPM_.28Unix_Only.29
</literallayout>
    <para>However as a handy reminder here comes the list of specific variables:
</para><literallayout>  CPACK_RPM_PACKAGE_SUMMARY - The RPM package summary.
     Mandatory : YES
     Default   : CPACK_PACKAGE_DESCRIPTION_SUMMARY
  CPACK_RPM_PACKAGE_NAME - The RPM package name.
     Mandatory : YES
     Default   : CPACK_PACKAGE_NAME
  CPACK_RPM_PACKAGE_VERSION - The RPM package version.
     Mandatory : YES
     Default   : CPACK_PACKAGE_VERSION
  CPACK_RPM_PACKAGE_ARCHITECTURE - The RPM package architecture.
     Mandatory : NO
     Default   : -
     This may be set to "noarch" if you
     know you are building a noarch package.
  CPACK_RPM_PACKAGE_RELEASE - The RPM package release.
     Mandatory : YES
     Default   : 1
     This is the numbering of the RPM package
     itself, i.e. the version of the packaging and not the version of the
     content (see CPACK_RPM_PACKAGE_VERSION). One may change the default
     value if the previous packaging was buggy and/or you want to put here
     a fancy Linux distro specific numbering.
  CPACK_RPM_PACKAGE_LICENSE - The RPM package license policy.
     Mandatory : YES
     Default   : "unknown"
  CPACK_RPM_PACKAGE_GROUP - The RPM package group.
     Mandatory : YES
     Default   : "unknown"
  CPACK_RPM_PACKAGE_VENDOR - The RPM package vendor.
     Mandatory : YES
     Default   : CPACK_PACKAGE_VENDOR if set or "unknown"
  CPACK_RPM_PACKAGE_URL - The projects URL.
     Mandatory : NO
     Default   : -
  CPACK_RPM_PACKAGE_DESCRIPTION - RPM package description.
     Mandatory : YES
     Default   : CPACK_PACKAGE_DESCRIPTION_FILE if set or "no package description available"
  CPACK_RPM_COMPRESSION_TYPE - RPM compression type.
     Mandatory : NO
     Default   : -
     May be used to override RPM compression type to be used
     to build the RPM. For example some Linux distribution now default
     to lzma or xz compression whereas older cannot use such RPM.
     Using this one can enforce compression type to be used.
     Possible value are: lzma, xz, bzip2 and gzip.
  CPACK_RPM_PACKAGE_REQUIRES - RPM spec requires field.
     Mandatory : NO
     Default   : -
     May be used to set RPM dependencies (requires).
     Note that you must enclose the complete requires string between quotes,
     for example:
     set(CPACK_RPM_PACKAGE_REQUIRES "python &gt;= 2.5.0, cmake &gt;= 2.8")
     The required package list of an RPM file could be printed with
     rpm -qp --requires file.rpm
  CPACK_RPM_PACKAGE_SUGGESTS - RPM spec suggest field.
     Mandatory : NO
     Default   : -
     May be used to set weak RPM dependencies (suggests).
     Note that you must enclose the complete requires string between quotes.
  CPACK_RPM_PACKAGE_PROVIDES - RPM spec provides field.
     Mandatory : NO
     Default   : -
     May be used to set RPM dependencies (provides).
     The provided package list of an RPM file could be printed with
     rpm -qp --provides file.rpm
  CPACK_RPM_PACKAGE_OBSOLETES - RPM spec obsoletes field.
     Mandatory : NO
     Default   : -
     May be used to set RPM packages that are obsoleted by this one.
  CPACK_RPM_PACKAGE_RELOCATABLE - build a relocatable RPM.
     Mandatory : NO
     Default   : CPACK_PACKAGE_RELOCATABLE
     If this variable is set to TRUE or ON CPackRPM will try
     to build a relocatable RPM package. A relocatable RPM may
     be installed using rpm --prefix or --relocate in order to
     install it at an alternate place see rpm(8).
     Note that currently this may fail if CPACK_SET_DESTDIR is set to ON.
     If CPACK_SET_DESTDIR is set then you will get a warning message
     but if there is file installed with absolute path you'll get
     unexpected behavior.
  CPACK_RPM_SPEC_INSTALL_POST - [deprecated].
     Mandatory : NO
     Default   : -
     This way of specifying post-install script is deprecated use
     CPACK_RPM_POST_INSTALL_SCRIPT_FILE
     May be used to set an RPM post-install command inside the spec file.
     For example setting it to "/bin/true" may be used to prevent
     rpmbuild to strip binaries.
  CPACK_RPM_SPEC_MORE_DEFINE - RPM extended spec definitions lines.
     Mandatory : NO
     Default   : -
     May be used to add any %define lines to the generated spec file.
  CPACK_RPM_PACKAGE_DEBUG - Toggle CPackRPM debug output.
     Mandatory : NO
     Default   : -
     May be set when invoking cpack in order to trace debug information
     during CPack RPM run. For example you may launch CPack like this
     cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM
  CPACK_RPM_USER_BINARY_SPECFILE - A user provided spec file.
     Mandatory : NO
     Default   : -
     May be set by the user in order to specify a USER binary spec file
     to be used by CPackRPM instead of generating the file.
     The specified file will be processed by CONFIGURE_FILE( @ONLY).
  CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE - Spec file template.
     Mandatory : NO
     Default   : -
     If set CPack will generate a template for USER specified binary
     spec file and stop with an error. For example launch CPack like this
     cpack -D CPACK_RPM_GENERATE_USER_BINARY_SPECFILE_TEMPLATE=1 -G RPM
     The user may then use this file in order to hand-craft is own
     binary spec file which may be used with CPACK_RPM_USER_BINARY_SPECFILE.
  CPACK_RPM_PRE_INSTALL_SCRIPT_FILE
  CPACK_RPM_PRE_UNINSTALL_SCRIPT_FILE
     Mandatory : NO
     Default   : -
     May be used to embed a pre (un)installation script in the spec file.
     The refered script file(s) will be read and directly
     put after the %pre or %preun section
     If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for
     each component can be overridden with
     CPACK_RPM_&lt;COMPONENT&gt;_PRE_INSTALL_SCRIPT_FILE and
     CPACK_RPM_&lt;COMPONENT&gt;_PRE_UNINSTALL_SCRIPT_FILE
     One may verify which scriptlet has been included with
      rpm -qp --scripts  package.rpm
  CPACK_RPM_POST_INSTALL_SCRIPT_FILE
  CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE
     Mandatory : NO
     Default   : -
     May be used to embed a post (un)installation script in the spec file.
     The refered script file(s) will be read and directly
     put after the %post or %postun section
     If CPACK_RPM_COMPONENT_INSTALL is set to ON the (un)install script for
     each component can be overridden with
     CPACK_RPM_&lt;COMPONENT&gt;_POST_INSTALL_SCRIPT_FILE and
     CPACK_RPM_&lt;COMPONENT&gt;_POST_UNINSTALL_SCRIPT_FILE
     One may verify which scriptlet has been included with
      rpm -qp --scripts  package.rpm
  CPACK_RPM_USER_FILELIST
  CPACK_RPM_&lt;COMPONENT&gt;_USER_FILELIST
     Mandatory : NO
     Default   : -
     May be used to explicitly specify %(&lt;directive&gt;) file line
     in the spec file. Like %config(noreplace) or any other directive
     that be found in the %files section. Since CPackRPM is generating
     the list of files (and directories) the user specified files of
     the CPACK_RPM_&lt;COMPONENT&gt;_USER_FILELIST list will be removed from the generated list.
  CPACK_RPM_CHANGELOG_FILE - RPM changelog file.
     Mandatory : NO
     Default   : -
     May be used to embed a changelog in the spec file.
     The refered file will be read and directly put after the %changelog
     section.
</literallayout>
    
    <para id="module_CTest"><sect2><title>CTest</title></sect2> Configure a project for testing with CTest/CDash</para>

    <para>Include this module in the top CMakeLists.txt file of a project to enable testing with CTest and dashboard submissions to CDash:
</para><literallayout>   project(MyProject)
   ...
   include(CTest)
</literallayout>
    <para>The module automatically creates a BUILD_TESTING option that selects whether to enable testing support (ON by default).  After including the module, use code like
</para><literallayout>   if(BUILD_TESTING)
     # ... CMake code to create tests ...
   endif()
</literallayout>
    <para>to creating tests when testing is enabled.
</para><para>To enable submissions to a CDash server, create a CTestConfig.cmake file at the top of the project with content such as
</para><literallayout>   set(CTEST_PROJECT_NAME "MyProject")
   set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC")
   set(CTEST_DROP_METHOD "http")
   set(CTEST_DROP_SITE "my.cdash.org")
   set(CTEST_DROP_LOCATION "/submit.php?project=MyProject")
   set(CTEST_DROP_SITE_CDASH TRUE)
</literallayout>
    <para>(the CDash server can provide the file to a project administrator who configures 'MyProject'). Settings in the config file are shared by both this CTest module and the CTest command-line tool's dashboard script mode (ctest -S).
</para><para>While building a project for submission to CDash, CTest scans the build output for errors and warnings and reports them with surrounding context from the build log.  This generic approach works for all build tools, but does not give details about the command invocation that produced a given problem.  One may get more detailed reports by adding
</para><literallayout>   set(CTEST_USE_LAUNCHERS 1)
</literallayout>
    <para>to the CTestConfig.cmake file.  When this option is enabled, the CTest module tells CMake's Makefile generators to invoke every command in the generated build system through a CTest launcher program.  (Currently the CTEST_USE_LAUNCHERS option is ignored on non-Makefile generators.)  During a manual build each launcher transparently runs the command it wraps.  During a CTest-driven build for submission to CDash each launcher reports detailed information when its command fails or warns. (Setting CTEST_USE_LAUNCHERS in CTestConfig.cmake is convenient, but also adds the launcher overhead even for manual builds.  One may instead set it in a CTest dashboard script and add it to the CMake cache for the build tree.)</para>
    <para id="module_CTestScriptMode"><sect2><title>CTestScriptMode</title></sect2>  </para>

    <para>This file is read by ctest in script mode (-S)</para>
    <para id="module_CheckCCompilerFlag"><sect2><title>CheckCCompilerFlag</title></sect2> Check whether the C compiler supports a given flag.</para>

    <para>CHECK_C_COMPILER_FLAG(&lt;flag&gt; &lt;var&gt;)
</para><literallayout>  &lt;flag&gt; - the compiler flag
  &lt;var&gt;  - variable to store the result
</literallayout>
    <para>This internally calls the check_c_source_compiles macro. See help for CheckCSourceCompiles for a listing of variables that can modify the build.</para>
    <para id="module_CheckCSourceCompiles"><sect2><title>CheckCSourceCompiles</title></sect2> Check if given C source compiles and links into an executable</para>

    <para>CHECK_C_SOURCE_COMPILES(&lt;code&gt; &lt;var&gt; [FAIL_REGEX &lt;fail-regex&gt;])
</para><literallayout>  &lt;code&gt;       - source code to try to compile, must define 'main'
  &lt;var&gt;        - variable to store whether the source code compiled
  &lt;fail-regex&gt; - fail if test output matches this regex
</literallayout>
    <para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckCSourceRuns"><sect2><title>CheckCSourceRuns</title></sect2> Check if the given C source code compiles and runs.</para>

    <para>CHECK_C_SOURCE_RUNS(&lt;code&gt; &lt;var&gt;)
</para><literallayout>  &lt;code&gt;   - source code to try to compile
  &lt;var&gt;    - variable to store the result
             (1 for success, empty for failure)
</literallayout>
    <para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckCXXCompilerFlag"><sect2><title>CheckCXXCompilerFlag</title></sect2> Check whether the CXX compiler supports a given flag.</para>

    <para>CHECK_CXX_COMPILER_FLAG(&lt;flag&gt; &lt;var&gt;)
</para><literallayout>  &lt;flag&gt; - the compiler flag
  &lt;var&gt;  - variable to store the result
</literallayout>
    <para>This internally calls the check_cxx_source_compiles macro.  See help for CheckCXXSourceCompiles for a listing of variables that can modify the build.</para>
    <para id="module_CheckCXXSourceCompiles"><sect2><title>CheckCXXSourceCompiles</title></sect2> Check if given C++ source compiles and links into an executable</para>

    <para>CHECK_CXX_SOURCE_COMPILES(&lt;code&gt; &lt;var&gt; [FAIL_REGEX &lt;fail-regex&gt;])
</para><literallayout>  &lt;code&gt;       - source code to try to compile, must define 'main'
  &lt;var&gt;        - variable to store whether the source code compiled
  &lt;fail-regex&gt; - fail if test output matches this regex
</literallayout>
    <para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckCXXSourceRuns"><sect2><title>CheckCXXSourceRuns</title></sect2> Check if the given C++ source code compiles and runs.</para>

    <para>CHECK_CXX_SOURCE_RUNS(&lt;code&gt; &lt;var&gt;)
</para><literallayout>  &lt;code&gt;   - source code to try to compile
  &lt;var&gt;    - variable to store the result
             (1 for success, empty for failure)
</literallayout>
    <para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckCXXSymbolExists"><sect2><title>CheckCXXSymbolExists</title></sect2> Check if a symbol exists as a function, variable, or macro in C++</para>

    <para>CHECK_CXX_SYMBOL_EXISTS(&lt;symbol&gt; &lt;files&gt; &lt;variable&gt;)
</para><para>Check that the &lt;symbol&gt; is available after including given header &lt;files&gt; and store the result in a &lt;variable&gt;.  Specify the list of files in one argument as a semicolon-separated list. CHECK_CXX_SYMBOL_EXISTS() can be used to check in C++ files, as opposed to CHECK_SYMBOL_EXISTS(), which works only for C.
</para><para>If the header files define the symbol as a macro it is considered available and assumed to work.  If the header files declare the symbol as a function or variable then the symbol must also be available for linking.  If the symbol is a type or enum value it will not be recognized (consider using CheckTypeSize or CheckCSourceCompiles).
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckFortranFunctionExists"><sect2><title>CheckFortranFunctionExists</title></sect2> macro which checks if the Fortran function exists</para>

    <para>CHECK_FORTRAN_FUNCTION_EXISTS(FUNCTION VARIABLE)
</para><literallayout>  FUNCTION - the name of the Fortran function
  VARIABLE - variable to store the result
</literallayout>
    <para>
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckFunctionExists"><sect2><title>CheckFunctionExists</title></sect2> Check if a C function can be linked</para>

    <para>CHECK_FUNCTION_EXISTS(&lt;function&gt; &lt;variable&gt;)
</para><para>Check that the &lt;function&gt; is provided by libraries on the system and store the result in a &lt;variable&gt;.  This does not verify that any system header file declares the function, only that it can be found at link time (considure using CheckSymbolExists).
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckIncludeFile"><sect2><title>CheckIncludeFile</title></sect2> macro which checks the include file exists.</para>

    <para>CHECK_INCLUDE_FILE(INCLUDE VARIABLE)
</para><literallayout>  INCLUDE  - name of include file
  VARIABLE - variable to return result
   
</literallayout>
    <para>an optional third argument is the CFlags to add to the compile line  or you can use CMAKE_REQUIRED_FLAGS
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
</literallayout>
    <para>
</para>
    <para id="module_CheckIncludeFileCXX"><sect2><title>CheckIncludeFileCXX</title></sect2> Check if the include file exists.</para>

    <literallayout>  CHECK_INCLUDE_FILE_CXX(INCLUDE VARIABLE)
</literallayout>
    <para>
</para><literallayout>  INCLUDE  - name of include file
  VARIABLE - variable to return result
  
</literallayout>
    <para>An optional third argument is the CFlags to add to the compile line  or you can use CMAKE_REQUIRED_FLAGS.
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
</literallayout>
    <para>
</para>
    <para id="module_CheckIncludeFiles"><sect2><title>CheckIncludeFiles</title></sect2> Check if the files can be included</para>

    <para>
</para><para>CHECK_INCLUDE_FILES(INCLUDE VARIABLE)
</para><literallayout>  INCLUDE  - list of files to include
  VARIABLE - variable to return result
</literallayout>
    <para>
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
</literallayout>
    
    <para id="module_CheckLanguage"><sect2><title>CheckLanguage</title></sect2> Check if a language can be enabled</para>

    <para>Usage:
</para><literallayout>  check_language(&lt;lang&gt;)
</literallayout>
    <para>where &lt;lang&gt; is a language that may be passed to enable_language() such as "Fortran".  If CMAKE_&lt;lang&gt;_COMPILER is already defined the check does nothing.  Otherwise it tries enabling the language in a test project.  The result is cached in CMAKE_&lt;lang&gt;_COMPILER as the compiler that was found, or NOTFOUND if the language cannot be enabled.
</para><para>Example:
</para><literallayout>  check_language(Fortran)
  if(CMAKE_Fortran_COMPILER)
    enable_language(Fortran)
  else()
    message(STATUS "No Fortran support")
  endif()
</literallayout>
    
    <para id="module_CheckLibraryExists"><sect2><title>CheckLibraryExists</title></sect2> Check if the function exists.</para>

    <para>CHECK_LIBRARY_EXISTS (LIBRARY FUNCTION LOCATION VARIABLE)
</para><literallayout>  LIBRARY  - the name of the library you are looking for
  FUNCTION - the name of the function
  LOCATION - location where the library should be found
  VARIABLE - variable to store the result
</literallayout>
    <para>
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckPrototypeDefinition"><sect2><title>CheckPrototypeDefinition</title></sect2> Check if the protoype we expect is correct.</para>

    <para>check_prototype_definition(FUNCTION PROTOTYPE RETURN HEADER VARIABLE)
</para><literallayout>  FUNCTION - The name of the function (used to check if prototype exists)
  PROTOTYPE- The prototype to check.
  RETURN - The return value of the function.
  HEADER - The header files required.
  VARIABLE - The variable to store the result.
</literallayout>
    <para>Example:
</para><literallayout>  check_prototype_definition(getpwent_r
   "struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)"
   "NULL"
   "unistd.h;pwd.h"
   SOLARIS_GETPWENT_R)
</literallayout>
    <para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckStructHasMember"><sect2><title>CheckStructHasMember</title></sect2> Check if the given struct or class has the specified member variable</para>

    <para>CHECK_STRUCT_HAS_MEMBER (STRUCT MEMBER HEADER VARIABLE)
</para><literallayout>  STRUCT - the name of the struct or class you are interested in
  MEMBER - the member which existence you want to check
  HEADER - the header(s) where the prototype should be declared
  VARIABLE - variable to store the result
</literallayout>
    <para>
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
</literallayout>
    <para>
</para><para>Example: CHECK_STRUCT_HAS_MEMBER("struct timeval" tv_sec sys/select.h HAVE_TIMEVAL_TV_SEC)</para>
    <para id="module_CheckSymbolExists"><sect2><title>CheckSymbolExists</title></sect2> Check if a symbol exists as a function, variable, or macro</para>

    <para>CHECK_SYMBOL_EXISTS(&lt;symbol&gt; &lt;files&gt; &lt;variable&gt;)
</para><para>Check that the &lt;symbol&gt; is available after including given header &lt;files&gt; and store the result in a &lt;variable&gt;.  Specify the list of files in one argument as a semicolon-separated list.
</para><para>If the header files define the symbol as a macro it is considered available and assumed to work.  If the header files declare the symbol as a function or variable then the symbol must also be available for linking.  If the symbol is a type or enum value it will not be recognized (consider using CheckTypeSize or CheckCSourceCompiles). If the check needs to be done in C++, consider using CHECK_CXX_SYMBOL_EXISTS(), which does the same as CHECK_SYMBOL_EXISTS(), but in C++.
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_CheckTypeSize"><sect2><title>CheckTypeSize</title></sect2> Check sizeof a type</para>

    <literallayout>  CHECK_TYPE_SIZE(TYPE VARIABLE [BUILTIN_TYPES_ONLY])
</literallayout>
    <para>Check if the type exists and determine its size. On return, "HAVE_${VARIABLE}" holds the existence of the type, and "${VARIABLE}" holds one of the following:
</para><literallayout>   &lt;size&gt; = type has non-zero size &lt;size&gt;
   "0"    = type has arch-dependent size (see below)
   ""     = type does not exist
</literallayout>
    <para>Furthermore, the variable "${VARIABLE}_CODE" holds C preprocessor code to define the macro "${VARIABLE}" to the size of the type, or leave the macro undefined if the type does not exist.
</para><para>The variable "${VARIABLE}" may be "0" when CMAKE_OSX_ARCHITECTURES has multiple architectures for building OS X universal binaries. This indicates that the type size varies across architectures. In this case "${VARIABLE}_CODE" contains C preprocessor tests mapping from each architecture macro to the corresponding type size. The list of architecture macros is stored in "${VARIABLE}_KEYS", and the value for each key is stored in "${VARIABLE}-${KEY}".
</para><para>If the BUILTIN_TYPES_ONLY option is not given, the macro checks for headers &lt;sys/types.h&gt;, &lt;stdint.h&gt;, and &lt;stddef.h&gt;, and saves results in HAVE_SYS_TYPES_H, HAVE_STDINT_H, and HAVE_STDDEF_H.  The type size check automatically includes the available headers, thus supporting checks of types defined in the headers.
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_INCLUDES = list of include directories
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
  CMAKE_EXTRA_INCLUDE_FILES = list of extra headers to include
</literallayout>
    
    <para id="module_CheckVariableExists"><sect2><title>CheckVariableExists</title></sect2> Check if the variable exists.</para>

    <literallayout>  CHECK_VARIABLE_EXISTS(VAR VARIABLE)
</literallayout>
    <para>
</para><literallayout>  VAR      - the name of the variable
  VARIABLE - variable to store the result
</literallayout>
    <para>
</para><para>This macro is only for C variables.
</para><para>The following variables may be set before calling this macro to modify the way the check is run:
</para><literallayout>  CMAKE_REQUIRED_FLAGS = string of compile command line flags
  CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
  CMAKE_REQUIRED_LIBRARIES = list of libraries to link
</literallayout>
    
    <para id="module_Dart"><sect2><title>Dart</title></sect2> Configure a project for testing with CTest or old Dart Tcl Client</para>

    <para>This file is the backwards-compatibility version of the CTest module. It supports using the old Dart 1 Tcl client for driving dashboard submissions as well as testing with CTest.  This module should be included in the CMakeLists.txt file at the top of a project.  Typical usage:
</para><literallayout>  INCLUDE(Dart)
  IF(BUILD_TESTING)
    # ... testing related CMake code ...
  ENDIF(BUILD_TESTING)
</literallayout>
    <para>The BUILD_TESTING option is created by the Dart module to determine whether testing support should be enabled.  The default is ON.</para>
    <para id="module_DeployQt4"><sect2><title>DeployQt4</title></sect2> Functions to help assemble a standalone Qt4 executable.</para>

    <para>A collection of CMake utility functions useful for deploying Qt4 executables.
</para><para>The following functions are provided by this module:
</para><literallayout>   write_qt4_conf
   resolve_qt4_paths
   fixup_qt4_executable
   install_qt4_plugin_path
   install_qt4_plugin
   install_qt4_executable
</literallayout>
    <para>Requires CMake 2.6 or greater because it uses function and PARENT_SCOPE. Also depends on BundleUtilities.cmake.
</para><literallayout>  WRITE_QT4_CONF(&lt;qt_conf_dir&gt; &lt;qt_conf_contents&gt;)
</literallayout>
    <para>Writes a qt.conf file with the &lt;qt_conf_contents&gt; into &lt;qt_conf_dir&gt;.
</para><literallayout>  RESOLVE_QT4_PATHS(&lt;paths_var&gt; [&lt;executable_path&gt;])
</literallayout>
    <para>Loop through &lt;paths_var&gt; list and if any don't exist resolve them relative to the &lt;executable_path&gt; (if supplied) or the CMAKE_INSTALL_PREFIX.
</para><literallayout>  FIXUP_QT4_EXECUTABLE(&lt;executable&gt; [&lt;qtplugins&gt; &lt;libs&gt; &lt;dirs&gt; &lt;plugins_dir&gt; &lt;request_qt_conf&gt;])
</literallayout>
    <para>Copies Qt plugins, writes a Qt configuration file (if needed) and fixes up a Qt4 executable using BundleUtilities so it is standalone and can be drag-and-drop copied to another machine as long as all of the system libraries are compatible.
</para><para>&lt;executable&gt; should point to the executable to be fixed-up.
</para><para>&lt;qtplugins&gt; should contain a list of the names or paths of any Qt plugins to be installed.
</para><para>&lt;libs&gt; will be passed to BundleUtilities and should be a list of any already installed plugins, libraries or executables to also be fixed-up.
</para><para>&lt;dirs&gt; will be passed to BundleUtilities and should contain and directories to be searched to find library dependencies.
</para><para>&lt;plugins_dir&gt; allows an custom plugins directory to be used.
</para><para>&lt;request_qt_conf&gt; will force a qt.conf file to be written even if not needed.
</para><literallayout>  INSTALL_QT4_PLUGIN_PATH(plugin executable copy installed_plugin_path_var &lt;plugins_dir&gt; &lt;component&gt; &lt;configurations&gt;)
</literallayout>
    <para>Install (or copy) a resolved &lt;plugin&gt; to the default plugins directory (or &lt;plugins_dir&gt;) relative to &lt;executable&gt; and store the result in &lt;installed_plugin_path_var&gt;.
</para><para>If &lt;copy&gt; is set to TRUE then the plugins will be copied rather than installed. This is to allow this module to be used at CMake time rather than install time.
</para><para>If &lt;component&gt; is set then anything installed will use this COMPONENT.
</para><literallayout>  INSTALL_QT4_PLUGIN(plugin executable copy installed_plugin_path_var &lt;plugins_dir&gt; &lt;component&gt;)
</literallayout>
    <para>Install (or copy) an unresolved &lt;plugin&gt; to the default plugins directory (or &lt;plugins_dir&gt;) relative to &lt;executable&gt; and store the result in &lt;installed_plugin_path_var&gt;. See documentation of INSTALL_QT4_PLUGIN_PATH.
</para><literallayout>  INSTALL_QT4_EXECUTABLE(&lt;executable&gt; [&lt;qtplugins&gt; &lt;libs&gt; &lt;dirs&gt; &lt;plugins_dir&gt; &lt;request_qt_conf&gt; &lt;component&gt;])
</literallayout>
    <para>Installs Qt plugins, writes a Qt configuration file (if needed) and fixes up a Qt4 executable using BundleUtilities so it is standalone and can be drag-and-drop copied to another machine as long as all of the system libraries are compatible. The executable will be fixed-up at install time. &lt;component&gt; is the COMPONENT used for bundle fixup and plugin installation. See documentation of FIXUP_QT4_BUNDLE.</para>
    <para id="module_Documentation"><sect2><title>Documentation</title></sect2> DocumentationVTK.cmake</para>

    <para>This file provides support for the VTK documentation framework. It relies on several tools (Doxygen, Perl, etc).</para>
    <para id="module_ExternalProject"><sect2><title>ExternalProject</title></sect2> Create custom targets to build projects in external trees</para>

    <para>The 'ExternalProject_Add' function creates a custom target to drive download, update/patch, configure, build, install and test steps of an external project:
</para><literallayout>  ExternalProject_Add(&lt;name&gt;    # Name for custom target
    [DEPENDS projects...]       # Targets on which the project depends
    [PREFIX dir]                # Root dir for entire project
    [LIST_SEPARATOR sep]        # Sep to be replaced by ; in cmd lines
    [TMP_DIR dir]               # Directory to store temporary files
    [STAMP_DIR dir]             # Directory to store step timestamps
   #--Download step--------------
    [DOWNLOAD_DIR dir]          # Directory to store downloaded files
    [DOWNLOAD_COMMAND cmd...]   # Command to download source tree
    [CVS_REPOSITORY cvsroot]    # CVSROOT of CVS repository
    [CVS_MODULE mod]            # Module to checkout from CVS repo
    [CVS_TAG tag]               # Tag to checkout from CVS repo
    [SVN_REPOSITORY url]        # URL of Subversion repo
    [SVN_REVISION rev]          # Revision to checkout from Subversion repo
    [SVN_USERNAME john ]        # Username for Subversion checkout and update
    [SVN_PASSWORD doe ]         # Password for Subversion checkout and update
    [SVN_TRUST_CERT 1 ]         # Trust the Subversion server site certificate
    [GIT_REPOSITORY url]        # URL of git repo
    [GIT_TAG tag]               # Git branch name, commit id or tag
    [URL /.../src.tgz]          # Full path or URL of source
    [URL_MD5 md5]               # MD5 checksum of file at URL
    [TIMEOUT seconds]           # Time allowed for file download operations
   #--Update/Patch step----------
    [UPDATE_COMMAND cmd...]     # Source work-tree update command
    [PATCH_COMMAND cmd...]      # Command to patch downloaded source
   #--Configure step-------------
    [SOURCE_DIR dir]            # Source dir to be used for build
    [CONFIGURE_COMMAND cmd...]  # Build tree configuration command
    [CMAKE_COMMAND /.../cmake]  # Specify alternative cmake executable
    [CMAKE_GENERATOR gen]       # Specify generator for native build
    [CMAKE_ARGS args...]        # Arguments to CMake command line
    [CMAKE_CACHE_ARGS args...]  # Initial cache arguments, of the form -Dvar:string=on
   #--Build step-----------------
    [BINARY_DIR dir]            # Specify build dir location
    [BUILD_COMMAND cmd...]      # Command to drive the native build
    [BUILD_IN_SOURCE 1]         # Use source dir for build dir
   #--Install step---------------
    [INSTALL_DIR dir]           # Installation prefix
    [INSTALL_COMMAND cmd...]    # Command to drive install after build
   #--Test step------------------
    [TEST_BEFORE_INSTALL 1]     # Add test step executed before install step
    [TEST_AFTER_INSTALL 1]      # Add test step executed after install step
    [TEST_COMMAND cmd...]       # Command to drive test
   #--Output logging-------------
    [LOG_DOWNLOAD 1]            # Wrap download in script to log output
    [LOG_UPDATE 1]              # Wrap update in script to log output
    [LOG_CONFIGURE 1]           # Wrap configure in script to log output
    [LOG_BUILD 1]               # Wrap build in script to log output
    [LOG_TEST 1]                # Wrap test in script to log output
    [LOG_INSTALL 1]             # Wrap install in script to log output
   #--Custom targets-------------
    [STEP_TARGETS st1 st2 ...]  # Generate custom targets for these steps
    )
</literallayout>
    <para>The *_DIR options specify directories for the project, with default directories computed as follows. If the PREFIX option is given to ExternalProject_Add() or the EP_PREFIX directory property is set, then an external project is built and installed under the specified prefix:
</para><literallayout>   TMP_DIR      = &lt;prefix&gt;/tmp
   STAMP_DIR    = &lt;prefix&gt;/src/&lt;name&gt;-stamp
   DOWNLOAD_DIR = &lt;prefix&gt;/src
   SOURCE_DIR   = &lt;prefix&gt;/src/&lt;name&gt;
   BINARY_DIR   = &lt;prefix&gt;/src/&lt;name&gt;-build
   INSTALL_DIR  = &lt;prefix&gt;
</literallayout>
    <para>Otherwise, if the EP_BASE directory property is set then components of an external project are stored under the specified base:
</para><literallayout>   TMP_DIR      = &lt;base&gt;/tmp/&lt;name&gt;
   STAMP_DIR    = &lt;base&gt;/Stamp/&lt;name&gt;
   DOWNLOAD_DIR = &lt;base&gt;/Download/&lt;name&gt;
   SOURCE_DIR   = &lt;base&gt;/Source/&lt;name&gt;
   BINARY_DIR   = &lt;base&gt;/Build/&lt;name&gt;
   INSTALL_DIR  = &lt;base&gt;/Install/&lt;name&gt;
</literallayout>
    <para>If no PREFIX, EP_PREFIX, or EP_BASE is specified then the default is to set PREFIX to "&lt;name&gt;-prefix". Relative paths are interpreted with respect to the build directory corresponding to the source directory in which ExternalProject_Add is invoked.
</para><para>If SOURCE_DIR is explicitly set to an existing directory the project will be built from it. Otherwise a download step must be specified using one of the DOWNLOAD_COMMAND, CVS_*, SVN_*, or URL options. The URL option may refer locally to a directory or source tarball, or refer to a remote tarball (e.g. <ulink url="http://.../src.tgz" />).
</para><para>The 'ExternalProject_Add_Step' function adds a custom step to an external project:
</para><literallayout>  ExternalProject_Add_Step(&lt;name&gt; &lt;step&gt; # Names of project and custom step
    [COMMAND cmd...]        # Command line invoked by this step
    [COMMENT "text..."]     # Text printed when step executes
    [DEPENDEES steps...]    # Steps on which this step depends
    [DEPENDERS steps...]    # Steps that depend on this step
    [DEPENDS files...]      # Files on which this step depends
    [ALWAYS 1]              # No stamp file, step always runs
    [WORKING_DIRECTORY dir] # Working directory for command
    [LOG 1]                 # Wrap step in script to log output
    )
</literallayout>
    <para>The command line, comment, and working directory of every standard and custom step is processed to replace tokens &lt;SOURCE_DIR&gt;, &lt;BINARY_DIR&gt;, &lt;INSTALL_DIR&gt;, and &lt;TMP_DIR&gt; with corresponding property values.
</para><para>The 'ExternalProject_Get_Property' function retrieves external project target properties:
</para><literallayout>  ExternalProject_Get_Property(&lt;name&gt; [prop1 [prop2 [...]]])
</literallayout>
    <para>It stores property values in variables of the same name. Property names correspond to the keyword argument names of 'ExternalProject_Add'.
</para><para>The 'ExternalProject_Add_StepTargets' function generates custom targets for the steps listed:
</para><literallayout>  ExternalProject_Add_StepTargets(&lt;name&gt; [step1 [step2 [...]]])
</literallayout>
    <para>
</para><para>If STEP_TARGETS is set then ExternalProject_Add_StepTargets is automatically called at the end of matching calls to ExternalProject_Add_Step. Pass STEP_TARGETS explicitly to individual ExternalProject_Add calls, or implicitly to all ExternalProject_Add calls by setting the directory property EP_STEP_TARGETS.
</para><para>If STEP_TARGETS is not set, clients may still manually call ExternalProject_Add_StepTargets after calling ExternalProject_Add or ExternalProject_Add_Step.
</para><para>This functionality is provided to make it easy to drive the steps independently of each other by specifying targets on build command lines. For example, you may be submitting to a sub-project based dashboard, where you want to drive the configure portion of the build, then submit to the dashboard, followed by the build portion, followed by tests. If you invoke a custom target that depends on a step halfway through the step dependency chain, then all the previous steps will also run to ensure everything is up to date.
</para><para>For example, to drive configure, build and test steps independently for each ExternalProject_Add call in your project, write the following line prior to any ExternalProject_Add calls in your CMakeLists file:
</para><literallayout>   set_property(DIRECTORY PROPERTY EP_STEP_TARGETS configure build test)
</literallayout>
    
    <para id="module_FeatureSummary"><sect2><title>FeatureSummary</title></sect2> Macros for generating a summary of enabled/disabled features</para>

    <para>
</para><para>This module provides the macros feature_summary(), set_package_properties() and add_feature_info(). For compatibility it also still provides set_package_info(), set_feature_info(), print_enabled_features() and print_disabled_features().
</para><para>These macros can be used to generate a summary of enabled and disabled packages and/or feature for a build tree:
</para><literallayout>    -- The following OPTIONAL packages have been found:
    LibXml2 (required version &gt;= 2.4) , XML processing library. , &lt;<ulink url="http://xmlsoft.org" />&gt;
       * Enables HTML-import in MyWordProcessor
       * Enables odt-export in MyWordProcessor
    PNG , A PNG image library. , &lt;<ulink url="http://www.libpng.org/pub/png/" />&gt;
       * Enables saving screenshots
    -- The following OPTIONAL packages have not been found:
    Lua51 , The Lua scripting language. , &lt;<ulink url="http://www.lua.org" />&gt;
       * Enables macros in MyWordProcessor
    Foo , Foo provides cool stuff.
</literallayout>
    <para>
</para><para>
</para><literallayout>    FEATURE_SUMMARY( [FILENAME &lt;file&gt;]
                     [APPEND]
                     [VAR &lt;variable_name&gt;]
                     [INCLUDE_QUIET_PACKAGES]
                     [FATAL_ON_MISSING_REQUIRED_PACKAGES]
                     [DESCRIPTION "Found packages:"]
                     WHAT (ALL | PACKAGES_FOUND | PACKAGES_NOT_FOUND
                          | ENABLED_FEATURES | DISABLED_FEATURES]
                   )
</literallayout>
    <para>
</para><para>The FEATURE_SUMMARY() macro can be used to print information about enabled or disabled packages or features of a project. By default, only the names of the features/packages will be printed and their required version when one was specified. Use SET_PACKAGE_PROPERTIES() to add more useful information, like e.g. a download URL for the respective package or their purpose in the project.
</para><para>The WHAT option is the only mandatory option. Here you specify what information will be printed:
</para><literallayout>    ALL: print everything
    ENABLED_FEATURES: the list of all features which are enabled
    DISABLED_FEATURES: the list of all features which are disabled
    PACKAGES_FOUND: the list of all packages which have been found
    PACKAGES_NOT_FOUND: the list of all packages which have not been found
    OPTIONAL_PACKAGES_FOUND: only those packages which have been found which have the type OPTIONAL
    OPTIONAL_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type OPTIONAL
    RECOMMENDED_PACKAGES_FOUND: only those packages which have been found which have the type RECOMMENDED
    RECOMMENDED_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type RECOMMENDED
    REQUIRED_PACKAGES_FOUND: only those packages which have been found which have the type REQUIRED
    REQUIRED_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type REQUIRED
    RUNTIME_PACKAGES_FOUND: only those packages which have been found which have the type RUNTIME
    RUNTIME_PACKAGES_NOT_FOUND: only those packages which have not been found which have the type RUNTIME
</literallayout>
    <para>
</para><para>If a FILENAME is given, the information is printed into this file. If APPEND is used, it is appended to this file, otherwise the file is overwritten if it already existed. If the VAR option is used, the information is "printed" into the specified variable. If FILENAME is not used, the information is printed to the terminal. Using the DESCRIPTION option a description or headline can be set which will be printed above the actual content. If INCLUDE_QUIET_PACKAGES is given, packages which have been searched with find_package(... QUIET) will also be listed. By default they are skipped. If FATAL_ON_MISSING_REQUIRED_PACKAGES is given, CMake will abort if a package which is marked as REQUIRED has not been found.
</para><para>Example 1, append everything to a file:
</para><literallayout>   feature_summary(WHAT ALL
                   FILENAME ${CMAKE_BINARY_DIR}/all.log APPEND)
</literallayout>
    <para>
</para><para>Example 2, print the enabled features into the variable enabledFeaturesText, including QUIET packages:
</para><literallayout>   feature_summary(WHAT ENABLED_FEATURES
                   INCLUDE_QUIET_PACKAGES
                   DESCRIPTION "Enabled Features:"
                   VAR enabledFeaturesText)
   message(STATUS "${enabledFeaturesText}")
</literallayout>
    <para>
</para><para>
</para><literallayout>    SET_PACKAGE_PROPERTIES(&lt;name&gt; PROPERTIES [ URL &lt;url&gt; ]
                                             [ DESCRIPTION &lt;description&gt; ]
                                             [ TYPE (RUNTIME|OPTIONAL|RECOMMENDED|REQUIRED) ]
                                             [ PURPOSE &lt;purpose&gt; ]
                          )
</literallayout>
    <para>
</para><para>Use this macro to set up information about the named package, which can then be displayed via FEATURE_SUMMARY(). This can be done either directly in the Find-module or in the project which uses the module after the FIND_PACKAGE() call. The features for which information can be set are added automatically by the find_package() command.
</para><para>URL: this should be the homepage of the package, or something similar. Ideally this is set already directly in the Find-module.
</para><para>DESCRIPTION: A short description what that package is, at most one sentence. Ideally this is set already directly in the Find-module.
</para><para>TYPE: What type of dependency has the using project on that package. Default is OPTIONAL. In this case it is a package which can be used by the project when available at buildtime, but it also work without. RECOMMENDED is similar to OPTIONAL, i.e. the project will build if the package is not present, but the functionality of the resulting binaries will be severly limited. If a REQUIRED package is not available at buildtime, the project may not even build. This can be combined with the FATAL_ON_MISSING_REQUIRED_PACKAGES argument for feature_summary(). Last, a RUNTIME package is a package which is actually not used at all during the build, but which is required for actually running the resulting binaries. So if such a package is missing, the project can still be built, but it may not work later on. If set_package_properties() is called multiple times for the same package with different TYPEs, the TYPE is only changed to higher TYPEs ( RUNTIME &lt; OPTIONAL &lt; RECOMMENDED &lt; REQUIRED ), lower TYPEs are ignored. The TYPE property is project-specific, so it cannot be set by the Find-module, but must be set in the project.
</para><para>PURPOSE: This describes which features this package enables in the project, i.e. it tells the user what functionality he gets in the resulting binaries. If set_package_properties() is called multiple times for a package, all PURPOSE properties are appended to a list of purposes of the package in the project. As the TYPE property, also the PURPOSE property is project-specific, so it cannot be set by the Find-module, but must be set in the project.
</para><para>
</para><para>Example for setting the info for a package:
</para><literallayout>   find_package(LibXml2)
   set_package_properties(LibXml2 PROPERTIES DESCRIPTION "A XML processing library."
                                             URL "<ulink url="http://xmlsoft.org/" />")
</literallayout>
    <para>
</para><literallayout>   set_package_properties(LibXml2 PROPERTIES TYPE RECOMMENDED
                                             PURPOSE "Enables HTML-import in MyWordProcessor")
   ...
   set_package_properties(LibXml2 PROPERTIES TYPE OPTIONAL
                                             PURPOSE "Enables odt-export in MyWordProcessor")
</literallayout>
    <para>
</para><literallayout>   find_package(DBUS)
   set_package_properties(DBUS PROPERTIES TYPE RUNTIME
                                             PURPOSE "Necessary to disable the screensaver during a presentation" )
</literallayout>
    <para>
</para><literallayout>    ADD_FEATURE_INFO(&lt;name&gt; &lt;enabled&gt; &lt;description&gt;)
</literallayout>
    <para>Use this macro to add information about a feature with the given &lt;name&gt;. &lt;enabled&gt; contains whether this feature is enabled or not, &lt;description&gt; is a text describing the feature. The information can be displayed using feature_summary() for ENABLED_FEATURES and DISABLED_FEATURES respectively.
</para><para>Example for setting the info for a feature:
</para><literallayout>   option(WITH_FOO "Help for foo" ON)
   add_feature_info(Foo WITH_FOO "The Foo feature provides very cool stuff.")
</literallayout>
    <para>
</para><para>
</para><para>The following macros are provided for compatibility with previous CMake versions:
</para><literallayout>    SET_PACKAGE_INFO(&lt;name&gt; &lt;description&gt; [&lt;url&gt; [&lt;purpose&gt;] ] )
</literallayout>
    <para>Use this macro to set up information about the named package, which can then be displayed via FEATURE_SUMMARY(). This can be done either directly in the Find-module or in the project which uses the module after the FIND_PACKAGE() call. The features for which information can be set are added automatically by the find_package() command.
</para><literallayout>    PRINT_ENABLED_FEATURES()
</literallayout>
    <para>Does the same as FEATURE_SUMMARY(WHAT ENABLED_FEATURES  DESCRIPTION "Enabled features:")
</para><literallayout>    PRINT_DISABLED_FEATURES()
</literallayout>
    <para>Does the same as FEATURE_SUMMARY(WHAT DISABLED_FEATURES  DESCRIPTION "Disabled features:")
</para><literallayout>    SET_FEATURE_INFO(&lt;name&gt; &lt;description&gt; [&lt;url&gt;] )
</literallayout>
    <para>Does the same as SET_PACKAGE_INFO(&lt;name&gt; &lt;description&gt; &lt;url&gt; )</para>
    <para id="module_FindALSA"><sect2><title>FindALSA</title></sect2> Find alsa</para>

    <para>Find the alsa libraries (asound)
</para><literallayout>  This module defines the following variables:
     ALSA_FOUND       - True if ALSA_INCLUDE_DIR &amp; ALSA_LIBRARY are found
     ALSA_LIBRARIES   - Set when ALSA_LIBRARY is found
     ALSA_INCLUDE_DIRS - Set when ALSA_INCLUDE_DIR is found
</literallayout>
    <para>
</para><literallayout>     ALSA_INCLUDE_DIR - where to find asoundlib.h, etc.
     ALSA_LIBRARY     - the asound library
     ALSA_VERSION_STRING - the version of alsa found (since CMake 2.8.8)
</literallayout>
    <para>
</para>
    <para id="module_FindASPELL"><sect2><title>FindASPELL</title></sect2> Try to find ASPELL</para>

    <para>Once done this will define
</para><literallayout>  ASPELL_FOUND - system has ASPELL
  ASPELL_EXECUTABLE - the ASPELL executable
  ASPELL_INCLUDE_DIR - the ASPELL include directory
  ASPELL_LIBRARIES - The libraries needed to use ASPELL
  ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
</literallayout>
    
    <para id="module_FindAVIFile"><sect2><title>FindAVIFile</title></sect2> Locate AVIFILE library and include paths</para>

    <para>AVIFILE (<ulink url="http://avifile.sourceforge.net/" />)is a set of libraries for  i386 machines to use various AVI codecs. Support is limited beyond Linux. Windows provides native AVI support, and so doesn't need this library. This module defines
</para><literallayout>  AVIFILE_INCLUDE_DIR, where to find avifile.h , etc.
  AVIFILE_LIBRARIES, the libraries to link against
  AVIFILE_DEFINITIONS, definitions to use when compiling
  AVIFILE_FOUND, If false, don't try to use AVIFILE
</literallayout>
    
    <para id="module_FindArmadillo"><sect2><title>FindArmadillo</title></sect2> Find Armadillo</para>

    <para>Find the Armadillo C++ library
</para><para>Using Armadillo:
</para><literallayout>  find_package(Armadillo REQUIRED)
  include_directories(${ARMADILLO_INCLUDE_DIRS})
  add_executable(foo foo.cc)
  target_link_libraries(foo ${ARMADILLO_LIBRARIES})
</literallayout>
    <para>This module sets the following variables:
</para><literallayout>  ARMADILLO_FOUND - set to true if the library is found
  ARMADILLO_INCLUDE_DIRS - list of required include directories
  ARMADILLO_LIBRARIES - list of libraries to be linked
  ARMADILLO_VERSION_MAJOR - major version number
  ARMADILLO_VERSION_MINOR - minor version number
  ARMADILLO_VERSION_PATCH - patch version number
  ARMADILLO_VERSION_STRING - version number as a string (ex: "1.0.4")
  ARMADILLO_VERSION_NAME - name of the version (ex: "Antipodean Antileech")
</literallayout>
    
    <para id="module_FindBISON"><sect2><title>FindBISON</title></sect2> Find bison executable and provides macros to generate custom build rules</para>

    <para>The module defines the following variables:
</para><literallayout>  BISON_EXECUTABLE - path to the bison program
  BISON_VERSION - version of bison
  BISON_FOUND - true if the program was found
</literallayout>
    <para>
</para><para>The minimum required version of bison can be specified using the standard CMake syntax, e.g. find_package(BISON 2.1.3)
</para><para>If bison is found, the module defines the macros:
</para><literallayout>  BISON_TARGET(&lt;Name&gt; &lt;YaccInput&gt; &lt;CodeOutput&gt; [VERBOSE &lt;file&gt;]
              [COMPILE_FLAGS &lt;string&gt;])
</literallayout>
    <para>which will create  a custom rule to generate  a parser. &lt;YaccInput&gt; is the path to  a yacc file. &lt;CodeOutput&gt; is the name  of the source file generated by bison.  A header file is also  be generated, and contains the  token  list.  If  COMPILE_FLAGS  option is  specified,  the  next parameter is  added in the bison  command line.  if  VERBOSE option is specified, &lt;file&gt; is created  and contains verbose descriptions of the grammar and parser. The macro defines a set of variables:
</para><literallayout>  BISON_${Name}_DEFINED - true is the macro ran successfully
  BISON_${Name}_INPUT - The input source file, an alias for &lt;YaccInput&gt;
  BISON_${Name}_OUTPUT_SOURCE - The source file generated by bison
  BISON_${Name}_OUTPUT_HEADER - The header file generated by bison
  BISON_${Name}_OUTPUTS - The sources files generated by bison
  BISON_${Name}_COMPILE_FLAGS - Options used in the bison command line
</literallayout>
    <para>
</para><literallayout>  ====================================================================
  Example:
</literallayout>
    <para>
</para><literallayout>   find_package(BISON)
   BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)
   add_executable(Foo main.cpp ${BISON_MyParser_OUTPUTS})
  ====================================================================
</literallayout>
    
    <para id="module_FindBLAS"><sect2><title>FindBLAS</title></sect2> Find BLAS library</para>

    <para>This module finds an installed fortran library that implements the BLAS linear-algebra interface (see <ulink url="http://www.netlib.org/blas/" />). The list of libraries searched for is taken from the autoconf macro file, acx_blas.m4 (distributed at <ulink url="http://ac-archive.sourceforge.net/ac-archive/acx_blas.html" />).
</para><para>This module sets the following variables:
</para><literallayout>  BLAS_FOUND - set to true if a library implementing the BLAS interface
    is found
  BLAS_LINKER_FLAGS - uncached list of required linker flags (excluding -l
    and -L).
  BLAS_LIBRARIES - uncached list of libraries (using full path name) to
    link against to use BLAS
  BLAS95_LIBRARIES - uncached list of libraries (using full path name)
    to link against to use BLAS95 interface
  BLAS95_FOUND - set to true if a library implementing the BLAS f95 interface
    is found
  BLA_STATIC  if set on this determines what kind of linkage we do (static)
  BLA_VENDOR  if set checks only the specified vendor, if not set checks
     all the possibilities
  BLA_F95     if set on tries to find the f95 interfaces for BLAS/LAPACK
</literallayout>
    <para>C/CXX should be enabled to use Intel mkl</para>
    <para id="module_FindBZip2"><sect2><title>FindBZip2</title></sect2> Try to find BZip2</para>

    <para>Once done this will define
</para><literallayout>  BZIP2_FOUND - system has BZip2
  BZIP2_INCLUDE_DIR - the BZip2 include directory
  BZIP2_LIBRARIES - Link these to use BZip2
  BZIP2_NEED_PREFIX - this is set if the functions are prefixed with BZ2_
  BZIP2_VERSION_STRING - the version of BZip2 found (since CMake 2.8.8)
</literallayout>
    
    <para id="module_FindBoost"><sect2><title>FindBoost</title></sect2> Try to find Boost include dirs and libraries</para>

    <para>Usage of this module as follows:
</para><para>NOTE: Take note of the Boost_ADDITIONAL_VERSIONS variable below. Due to Boost naming conventions and limitations in CMake this find module is NOT future safe with respect to Boost version numbers, and may break.
</para><para>== Using Header-Only libraries from within Boost: ==
</para><literallayout>   find_package( Boost 1.36.0 )
   if(Boost_FOUND)
      include_directories(${Boost_INCLUDE_DIRS})
      add_executable(foo foo.cc)
   endif()
</literallayout>
    <para>
</para><para>
</para><para>== Using actual libraries from within Boost: ==
</para><literallayout>   set(Boost_USE_STATIC_LIBS        ON)
   set(Boost_USE_MULTITHREADED      ON)
   set(Boost_USE_STATIC_RUNTIME    OFF)
   find_package( Boost 1.36.0 COMPONENTS date_time filesystem system ... )
</literallayout>
    <para>
</para><literallayout>   if(Boost_FOUND)
      include_directories(${Boost_INCLUDE_DIRS})
      add_executable(foo foo.cc)
      target_link_libraries(foo ${Boost_LIBRARIES})
   endif()
</literallayout>
    <para>
</para><para>
</para><para>The components list needs to contain actual names of boost libraries only, such as "date_time" for "libboost_date_time".  If you're using parts of Boost that contain header files only (e.g. foreach) you do not need to specify COMPONENTS.
</para><para>You should provide a minimum version number that should be used. If you provide this version number and specify the REQUIRED attribute, this module will fail if it can't find the specified or a later version. If you specify a version number this is automatically put into the considered list of version numbers and thus doesn't need to be specified in the Boost_ADDITIONAL_VERSIONS variable (see below).
</para><para>NOTE for Visual Studio Users:
</para><literallayout>     Automatic linking is used on MSVC &amp; Borland compilers by default when
     #including things in Boost.  It's important to note that setting
     Boost_USE_STATIC_LIBS to OFF is NOT enough to get you dynamic linking,
     should you need this feature.  Automatic linking typically uses static
     libraries with a few exceptions (Boost.Python is one).
</literallayout>
    <para>
</para><literallayout>     Please see the section below near Boost_LIB_DIAGNOSTIC_DEFINITIONS for
     more details.  Adding a TARGET_LINK_LIBRARIES() as shown in the example
     above appears to cause VS to link dynamically if Boost_USE_STATIC_LIBS
     gets set to OFF.  It is suggested you avoid automatic linking since it
     will make your application less portable.
</literallayout>
    <para>
</para><para>=========== The mess that is Boost_ADDITIONAL_VERSIONS (sorry?) ============
</para><para>OK, so the Boost_ADDITIONAL_VERSIONS variable can be used to specify a list of boost version numbers that should be taken into account when searching for Boost. Unfortunately boost puts the version number into the actual filename for the libraries, so this variable will certainly be needed in the future when new Boost versions are released.
</para><para>Currently this module searches for the following version numbers: 1.33, 1.33.0, 1.33.1, 1.34, 1.34.0, 1.34.1, 1.35, 1.35.0, 1.35.1, 1.36, 1.36.0, 1.36.1, 1.37, 1.37.0, 1.38, 1.38.0, 1.39, 1.39.0, 1.40, 1.40.0, 1.41, 1.41.0, 1.42, 1.42.0, 1.43, 1.43.0, 1.44, 1.44.0, 1.45, 1.45.0, 1.46, 1.46.0, 1.46.1, 1.47, 1.47.0, 1.48, 1.48.0, 1.49, 1.49.0, 1.50, 1.50.0
</para><para>NOTE: If you add a new major 1.x version in Boost_ADDITIONAL_VERSIONS you should add both 1.x and 1.x.0 as shown above.  Official Boost include directories omit the 3rd version number from include paths if it is 0 although not all binary Boost releases do so.
</para><para>set(Boost_ADDITIONAL_VERSIONS "1.78" "1.78.0" "1.79" "1.79.0")
</para><para>===================================== ============= ========================
</para><para>Variables used by this module, they can change the default behaviour and need to be set before calling find_package:
</para><literallayout>   Boost_USE_MULTITHREADED      Can be set to OFF to use the non-multithreaded
                                boost libraries.  If not specified, defaults
                                to ON.
</literallayout>
    <para>
</para><literallayout>   Boost_USE_STATIC_LIBS        Can be set to ON to force the use of the static
                                boost libraries. Defaults to OFF.
</literallayout>
    <para>
</para><literallayout>   Boost_NO_SYSTEM_PATHS        Set to TRUE to suppress searching in system
                                paths (or other locations outside of BOOST_ROOT
                                or BOOST_INCLUDEDIR).  Useful when specifying
                                BOOST_ROOT. Defaults to OFF.
                                  [Since CMake 2.8.3]
</literallayout>
    <para>
</para><literallayout>   Boost_NO_BOOST_CMAKE         Do not do a find_package call in config mode
                                before searching for a regular boost install.
                                This will avoid finding boost-cmake installs.
                                Defaults to OFF.
                                  [Since CMake 2.8.6]
</literallayout>
    <para>
</para><literallayout>   Boost_USE_STATIC_RUNTIME     If enabled, searches for boost libraries
                                linked against a static C++ standard library
                                ('s' ABI tag). This option should be set to
                                ON or OFF because the default behavior
                                if not specified is platform dependent
                                for backwards compatibility.
                                  [Since CMake 2.8.3]
</literallayout>
    <para>
</para><literallayout>   Boost_USE_DEBUG_PYTHON       If enabled, searches for boost libraries
                                compiled against a special debug build of
                                Python ('y' ABI tag). Defaults to OFF.
                                  [Since CMake 2.8.3]
</literallayout>
    <para>
</para><literallayout>   Boost_USE_STLPORT            If enabled, searches for boost libraries
                                compiled against the STLPort standard
                                library ('p' ABI tag). Defaults to OFF.
                                  [Since CMake 2.8.3]
</literallayout>
    <para>
</para><literallayout>   Boost_USE_STLPORT_DEPRECATED_NATIVE_IOSTREAMS
                                If enabled, searches for boost libraries
                                compiled against the deprecated STLPort
                                "native iostreams" feature ('n' ABI tag).
                                Defaults to OFF.
                                  [Since CMake 2.8.3]
</literallayout>
    <para>
</para><para>Other Variables used by this module which you may want to set.
</para><literallayout>   Boost_ADDITIONAL_VERSIONS    A list of version numbers to use for searching
                                the boost include directory.  Please see
                                the documentation above regarding this
                                annoying, but necessary variable :(
</literallayout>
    <para>
</para><literallayout>   Boost_DEBUG                  Set this to TRUE to enable debugging output
                                of FindBoost.cmake if you are having problems.
                                Please enable this before filing any bug
                                reports.
</literallayout>
    <para>
</para><literallayout>   Boost_DETAILED_FAILURE_MSG   FindBoost doesn't output detailed information
                                about why it failed or how to fix the problem
                                unless this is set to TRUE or the REQUIRED
                                keyword is specified in find_package().
                                  [Since CMake 2.8.0]
</literallayout>
    <para>
</para><literallayout>   Boost_COMPILER               Set this to the compiler suffix used by Boost
                                (e.g. "-gcc43") if FindBoost has problems finding
                                the proper Boost installation
</literallayout>
    <para>
</para><literallayout>   Boost_THREADAPI                When building boost.thread, sometimes the name of the
                                library contains an additional "pthread" or "win32"
                                string known as the threadapi.  This can happen when
                                compiling against pthreads on Windows or win32 threads
                                on Cygwin.  You may specify this variable and if set
                                when FindBoost searches for the Boost threading library
                                it will first try to match the threadapi you specify.
                                  For Example: libboost_thread_win32-mgw45-mt-1_43.a
                                might be found if you specified "win32" here before
                                falling back on libboost_thread-mgw45-mt-1_43.a.
                                  [Since CMake 2.8.3]
</literallayout>
    <para>
</para><literallayout>   Boost_REALPATH               Resolves symbolic links for discovered boost libraries
                                to assist with packaging.  For example, instead of
                                Boost_SYSTEM_LIBRARY_RELEASE being resolved to
                                "/usr/lib/libboost_system.so" it would be
                                "/usr/lib/libboost_system.so.1.42.0" instead.
                                This does not affect linking and should not be
                                enabled unless the user needs this information.
                                  [Since CMake 2.8.3]
</literallayout>
    <para>
</para>
    <para id="module_FindBullet"><sect2><title>FindBullet</title></sect2> Try to find the Bullet physics engine</para>

    <para>
</para><literallayout>  This module defines the following variables
</literallayout>
    <para>
</para><literallayout>  BULLET_FOUND - Was bullet found
  BULLET_INCLUDE_DIRS - the Bullet include directories
  BULLET_LIBRARIES - Link to this, by default it includes
                     all bullet components (Dynamics,
                     Collision, LinearMath, &amp; SoftBody)
</literallayout>
    <para>
</para><literallayout>  This module accepts the following variables
</literallayout>
    <para>
</para><literallayout>  BULLET_ROOT - Can be set to bullet install path or Windows build path
</literallayout>
    <para>
</para>
    <para id="module_FindCABLE"><sect2><title>FindCABLE</title></sect2> Find CABLE</para>

    <para>This module finds if CABLE is installed and determines where the include files and libraries are.  This code sets the following variables:
</para><literallayout>  CABLE             the path to the cable executable
  CABLE_TCL_LIBRARY the path to the Tcl wrapper library
  CABLE_INCLUDE_DIR the path to the include directory
</literallayout>
    <para>
</para><para>To build Tcl wrappers, you should add shared library and link it to ${CABLE_TCL_LIBRARY}.  You should also add ${CABLE_INCLUDE_DIR} as an include directory.</para>
    <para id="module_FindCUDA"><sect2><title>FindCUDA</title></sect2> Tools for building CUDA C files: libraries and build dependencies.</para>

    <para>This script locates the NVIDIA CUDA C tools. It should work on linux, windows, and mac and should be reasonably up to date with CUDA C releases.
</para><para>This script makes use of the standard find_package arguments of &lt;VERSION&gt;, REQUIRED and QUIET.  CUDA_FOUND will report if an acceptable version of CUDA was found.
</para><para>The script will prompt the user to specify CUDA_TOOLKIT_ROOT_DIR if the prefix cannot be determined by the location of nvcc in the system path and REQUIRED is specified to find_package(). To use a different installed version of the toolkit set the environment variable CUDA_BIN_PATH before running cmake (e.g. CUDA_BIN_PATH=/usr/local/cuda1.0 instead of the default /usr/local/cuda) or set CUDA_TOOLKIT_ROOT_DIR after configuring.  If you change the value of CUDA_TOOLKIT_ROOT_DIR, various components that depend on the path will be relocated.
</para><para>It might be necessary to set CUDA_TOOLKIT_ROOT_DIR manually on certain platforms, or to use a cuda runtime not installed in the default location. In newer versions of the toolkit the cuda library is included with the graphics driver- be sure that the driver version matches what is needed by the cuda runtime version.
</para><para>The following variables affect the behavior of the macros in the script (in alphebetical order).  Note that any of these flags can be changed multiple times in the same directory before calling CUDA_ADD_EXECUTABLE, CUDA_ADD_LIBRARY, CUDA_COMPILE, CUDA_COMPILE_PTX or CUDA_WRAP_SRCS.
</para><literallayout>  CUDA_64_BIT_DEVICE_CODE (Default matches host bit size)
  -- Set to ON to compile for 64 bit device code, OFF for 32 bit device code.
     Note that making this different from the host code when generating object
     or C files from CUDA code just won't work, because size_t gets defined by
     nvcc in the generated source.  If you compile to PTX and then load the
     file yourself, you can mix bit sizes between device and host.
</literallayout>
    <para>
</para><literallayout>  CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE (Default ON)
  -- Set to ON if you want the custom build rule to be attached to the source
     file in Visual Studio.  Turn OFF if you add the same cuda file to multiple
     targets.
</literallayout>
    <para>
</para><literallayout>     This allows the user to build the target from the CUDA file; however, bad
     things can happen if the CUDA source file is added to multiple targets.
     When performing parallel builds it is possible for the custom build
     command to be run more than once and in parallel causing cryptic build
     errors.  VS runs the rules for every source file in the target, and a
     source can have only one rule no matter how many projects it is added to.
     When the rule is run from multiple targets race conditions can occur on
     the generated file.  Eventually everything will get built, but if the user
     is unaware of this behavior, there may be confusion.  It would be nice if
     this script could detect the reuse of source files across multiple targets
     and turn the option off for the user, but no good solution could be found.
</literallayout>
    <para>
</para><literallayout>  CUDA_BUILD_CUBIN (Default OFF)
  -- Set to ON to enable and extra compilation pass with the -cubin option in
     Device mode. The output is parsed and register, shared memory usage is
     printed during build.
</literallayout>
    <para>
</para><literallayout>  CUDA_BUILD_EMULATION (Default OFF for device mode)
  -- Set to ON for Emulation mode. -D_DEVICEEMU is defined for CUDA C files
     when CUDA_BUILD_EMULATION is TRUE.
</literallayout>
    <para>
</para><literallayout>  CUDA_GENERATED_OUTPUT_DIR (Default CMAKE_CURRENT_BINARY_DIR)
  -- Set to the path you wish to have the generated files placed.  If it is
     blank output files will be placed in CMAKE_CURRENT_BINARY_DIR.
     Intermediate files will always be placed in
     CMAKE_CURRENT_BINARY_DIR/CMakeFiles.
</literallayout>
    <para>
</para><literallayout>  CUDA_HOST_COMPILATION_CPP (Default ON)
  -- Set to OFF for C compilation of host code.
</literallayout>
    <para>
</para><literallayout>  CUDA_NVCC_FLAGS
  CUDA_NVCC_FLAGS_&lt;CONFIG&gt;
  -- Additional NVCC command line arguments.  NOTE: multiple arguments must be
     semi-colon delimited (e.g. --compiler-options;-Wall)
</literallayout>
    <para>
</para><literallayout>  CUDA_PROPAGATE_HOST_FLAGS (Default ON)
  -- Set to ON to propagate CMAKE_{C,CXX}_FLAGS and their configuration
     dependent counterparts (e.g. CMAKE_C_FLAGS_DEBUG) automatically to the
     host compiler through nvcc's -Xcompiler flag.  This helps make the
     generated host code match the rest of the system better.  Sometimes
     certain flags give nvcc problems, and this will help you turn the flag
     propagation off.  This does not affect the flags supplied directly to nvcc
     via CUDA_NVCC_FLAGS or through the OPTION flags specified through
     CUDA_ADD_LIBRARY, CUDA_ADD_EXECUTABLE, or CUDA_WRAP_SRCS.  Flags used for
     shared library compilation are not affected by this flag.
</literallayout>
    <para>
</para><literallayout>  CUDA_VERBOSE_BUILD (Default OFF)
  -- Set to ON to see all the commands used when building the CUDA file.  When
     using a Makefile generator the value defaults to VERBOSE (run make
     VERBOSE=1 to see output), although setting CUDA_VERBOSE_BUILD to ON will
     always print the output.
</literallayout>
    <para>
</para><para>The script creates the following macros (in alphebetical order):
</para><literallayout>  CUDA_ADD_CUFFT_TO_TARGET( cuda_target )
  -- Adds the cufft library to the target (can be any target).  Handles whether
     you are in emulation mode or not.
</literallayout>
    <para>
</para><literallayout>  CUDA_ADD_CUBLAS_TO_TARGET( cuda_target )
  -- Adds the cublas library to the target (can be any target).  Handles
     whether you are in emulation mode or not.
</literallayout>
    <para>
</para><literallayout>  CUDA_ADD_EXECUTABLE( cuda_target file0 file1 ...
                       [WIN32] [MACOSX_BUNDLE] [EXCLUDE_FROM_ALL] [OPTIONS ...] )
  -- Creates an executable "cuda_target" which is made up of the files
     specified.  All of the non CUDA C files are compiled using the standard
     build rules specified by CMAKE and the cuda files are compiled to object
     files using nvcc and the host compiler.  In addition CUDA_INCLUDE_DIRS is
     added automatically to include_directories().  Some standard CMake target
     calls can be used on the target after calling this macro
     (e.g. set_target_properties and target_link_libraries), but setting
     properties that adjust compilation flags will not affect code compiled by
     nvcc.  Such flags should be modified before calling CUDA_ADD_EXECUTABLE,
     CUDA_ADD_LIBRARY or CUDA_WRAP_SRCS.
</literallayout>
    <para>
</para><literallayout>  CUDA_ADD_LIBRARY( cuda_target file0 file1 ...
                    [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] [OPTIONS ...] )
  -- Same as CUDA_ADD_EXECUTABLE except that a library is created.
</literallayout>
    <para>
</para><literallayout>  CUDA_BUILD_CLEAN_TARGET()
  -- Creates a convience target that deletes all the dependency files
     generated.  You should make clean after running this target to ensure the
     dependency files get regenerated.
</literallayout>
    <para>
</para><literallayout>  CUDA_COMPILE( generated_files file0 file1 ... [STATIC | SHARED | MODULE]
                [OPTIONS ...] )
  -- Returns a list of generated files from the input source files to be used
     with ADD_LIBRARY or ADD_EXECUTABLE.
</literallayout>
    <para>
</para><literallayout>  CUDA_COMPILE_PTX( generated_files file0 file1 ... [OPTIONS ...] )
  -- Returns a list of PTX files generated from the input source files.
</literallayout>
    <para>
</para><literallayout>  CUDA_INCLUDE_DIRECTORIES( path0 path1 ... )
  -- Sets the directories that should be passed to nvcc
     (e.g. nvcc -Ipath0 -Ipath1 ... ). These paths usually contain other .cu
     files.
</literallayout>
    <para>
</para><literallayout>  CUDA_WRAP_SRCS ( cuda_target format generated_files file0 file1 ...
                   [STATIC | SHARED | MODULE] [OPTIONS ...] )
  -- This is where all the magic happens.  CUDA_ADD_EXECUTABLE,
     CUDA_ADD_LIBRARY, CUDA_COMPILE, and CUDA_COMPILE_PTX all call this
     function under the hood.
</literallayout>
    <para>
</para><literallayout>     Given the list of files (file0 file1 ... fileN) this macro generates
     custom commands that generate either PTX or linkable objects (use "PTX" or
     "OBJ" for the format argument to switch).  Files that don't end with .cu
     or have the HEADER_FILE_ONLY property are ignored.
</literallayout>
    <para>
</para><literallayout>     The arguments passed in after OPTIONS are extra command line options to
     give to nvcc.  You can also specify per configuration options by
     specifying the name of the configuration followed by the options.  General
     options must preceed configuration specific options.  Not all
     configurations need to be specified, only the ones provided will be used.
</literallayout>
    <para>
</para><literallayout>        OPTIONS -DFLAG=2 "-DFLAG_OTHER=space in flag"
        DEBUG -g
        RELEASE --use_fast_math
        RELWITHDEBINFO --use_fast_math;-g
        MINSIZEREL --use_fast_math
</literallayout>
    <para>
</para><literallayout>     For certain configurations (namely VS generating object files with
     CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE set to ON), no generated file will
     be produced for the given cuda file.  This is because when you add the
     cuda file to Visual Studio it knows that this file produces an object file
     and will link in the resulting object file automatically.
</literallayout>
    <para>
</para><literallayout>     This script will also generate a separate cmake script that is used at
     build time to invoke nvcc.  This is for several reasons.
</literallayout>
    <para>
</para><literallayout>       1. nvcc can return negative numbers as return values which confuses
       Visual Studio into thinking that the command succeeded.  The script now
       checks the error codes and produces errors when there was a problem.
</literallayout>
    <para>
</para><literallayout>       2. nvcc has been known to not delete incomplete results when it
       encounters problems.  This confuses build systems into thinking the
       target was generated when in fact an unusable file exists.  The script
       now deletes the output files if there was an error.
</literallayout>
    <para>
</para><literallayout>       3. By putting all the options that affect the build into a file and then
       make the build rule dependent on the file, the output files will be
       regenerated when the options change.
</literallayout>
    <para>
</para><literallayout>     This script also looks at optional arguments STATIC, SHARED, or MODULE to
     determine when to target the object compilation for a shared library.
     BUILD_SHARED_LIBS is ignored in CUDA_WRAP_SRCS, but it is respected in
     CUDA_ADD_LIBRARY.  On some systems special flags are added for building
     objects intended for shared libraries.  A preprocessor macro,
     &lt;target_name&gt;_EXPORTS is defined when a shared library compilation is
     detected.
</literallayout>
    <para>
</para><literallayout>     Flags passed into add_definitions with -D or /D are passed along to nvcc.
</literallayout>
    <para>
</para><para>The script defines the following variables:
</para><literallayout>  CUDA_VERSION_MAJOR    -- The major version of cuda as reported by nvcc.
  CUDA_VERSION_MINOR    -- The minor version.
  CUDA_VERSION
  CUDA_VERSION_STRING   -- CUDA_VERSION_MAJOR.CUDA_VERSION_MINOR
</literallayout>
    <para>
</para><literallayout>  CUDA_TOOLKIT_ROOT_DIR -- Path to the CUDA Toolkit (defined if not set).
  CUDA_SDK_ROOT_DIR     -- Path to the CUDA SDK.  Use this to find files in the
                           SDK.  This script will not directly support finding
                           specific libraries or headers, as that isn't
                           supported by NVIDIA.  If you want to change
                           libraries when the path changes see the
                           FindCUDA.cmake script for an example of how to clear
                           these variables.  There are also examples of how to
                           use the CUDA_SDK_ROOT_DIR to locate headers or
                           libraries, if you so choose (at your own risk).
  CUDA_INCLUDE_DIRS     -- Include directory for cuda headers.  Added automatically
                           for CUDA_ADD_EXECUTABLE and CUDA_ADD_LIBRARY.
  CUDA_LIBRARIES        -- Cuda RT library.
  CUDA_CUFFT_LIBRARIES  -- Device or emulation library for the Cuda FFT
                           implementation (alternative to:
                           CUDA_ADD_CUFFT_TO_TARGET macro)
  CUDA_CUBLAS_LIBRARIES -- Device or emulation library for the Cuda BLAS
                           implementation (alterative to:
                           CUDA_ADD_CUBLAS_TO_TARGET macro).
  CUDA_curand_LIBRARY   -- CUDA Random Number Generation library.
                           Only available for CUDA version 3.2+.
  CUDA_cusparse_LIBRARY -- CUDA Sparse Matrix library.
                           Only available for CUDA version 3.2+.
  CUDA_npp_LIBRARY      -- NVIDIA Performance Primitives library.
                           Only available for CUDA version 4.0+.
  CUDA_nvcuvenc_LIBRARY -- CUDA Video Encoder library.
                           Only available for CUDA version 3.2+.
                           Windows only.
  CUDA_nvcuvid_LIBRARY  -- CUDA Video Decoder library.
                           Only available for CUDA version 3.2+.
                           Windows only.
</literallayout>
    <para>
</para><para>
</para><literallayout>  James Bigler, NVIDIA Corp (nvidia.com - jbigler)
  Abe Stephens, SCI Institute -- <ulink url="http://www.sci.utah.edu/~abe/FindCuda.html" />
</literallayout>
    <para>
</para><literallayout>  Copyright (c) 2008 - 2009 NVIDIA Corporation.  All rights reserved.
</literallayout>
    <para>
</para><literallayout>  Copyright (c) 2007-2009
  Scientific Computing and Imaging Institute, University of Utah
</literallayout>
    <para>
</para><literallayout>  This code is licensed under the MIT License.  See the FindCUDA.cmake script
  for the text of the license.
</literallayout>
    
    <para id="module_FindCURL"><sect2><title>FindCURL</title></sect2> Find curl</para>

    <para>Find the native CURL headers and libraries.
</para><literallayout>  CURL_INCLUDE_DIRS   - where to find curl/curl.h, etc.
  CURL_LIBRARIES      - List of libraries when using curl.
  CURL_FOUND          - True if curl found.
  CURL_VERSION_STRING - the version of curl found (since CMake 2.8.8)
</literallayout>
    
    <para id="module_FindCVS"><sect2><title>FindCVS</title></sect2>  </para>

    <para>The module defines the following variables:
</para><literallayout>   CVS_EXECUTABLE - path to cvs command line client
   CVS_FOUND - true if the command line client was found
</literallayout>
    <para>Example usage:
</para><literallayout>   find_package(CVS)
   if(CVS_FOUND)
     message("CVS found: ${CVS_EXECUTABLE}")
   endif(CVS_FOUND)
</literallayout>
    
    <para id="module_FindCoin3D"><sect2><title>FindCoin3D</title></sect2> Find Coin3D (Open Inventor)</para>

    <para>Coin3D is an implementation of the Open Inventor API. It provides data structures and algorithms for 3D visualization <ulink url="http://www.coin3d.org/" />
</para><para>This module defines the following variables
</para><literallayout>  COIN3D_FOUND         - system has Coin3D - Open Inventor
  COIN3D_INCLUDE_DIRS  - where the Inventor include directory can be found
  COIN3D_LIBRARIES     - Link to this to use Coin3D
</literallayout>
    <para>
</para>
    <para id="module_FindCups"><sect2><title>FindCups</title></sect2> Try to find the Cups printing system</para>

    <para>Once done this will define
</para><literallayout>  CUPS_FOUND - system has Cups
  CUPS_INCLUDE_DIR - the Cups include directory
  CUPS_LIBRARIES - Libraries needed to use Cups
  CUPS_VERSION_STRING - version of Cups found (since CMake 2.8.8)
  Set CUPS_REQUIRE_IPP_DELETE_ATTRIBUTE to TRUE if you need a version which 
  features this function (i.e. at least 1.1.19)
</literallayout>
    
    <para id="module_FindCurses"><sect2><title>FindCurses</title></sect2> Find the curses include file and library</para>

    <para>
</para><literallayout>  CURSES_FOUND - system has Curses
  CURSES_INCLUDE_DIR - the Curses include directory
  CURSES_LIBRARIES - The libraries needed to use Curses
  CURSES_HAVE_CURSES_H - true if curses.h is available
  CURSES_HAVE_NCURSES_H - true if ncurses.h is available
  CURSES_HAVE_NCURSES_NCURSES_H - true if ncurses/ncurses.h is available
  CURSES_HAVE_NCURSES_CURSES_H - true if ncurses/curses.h is available
  CURSES_LIBRARY - set for backwards compatibility with 2.4 CMake
</literallayout>
    <para>
</para><para>Set CURSES_NEED_NCURSES to TRUE before the FIND_PACKAGE() command if NCurses  functionality is required.</para>
    <para id="module_FindCxxTest"><sect2><title>FindCxxTest</title></sect2> Find CxxTest</para>

    <para>Find the CxxTest suite and declare a helper macro for creating unit tests and integrating them with CTest. For more details on CxxTest see <ulink url="http://cxxtest.tigris.org" />
</para><para>INPUT Variables
</para><literallayout>   CXXTEST_USE_PYTHON [deprecated since 1.3]
       Only used in the case both Python &amp; Perl
       are detected on the system to control
       which CxxTest code generator is used.
       Valid only for CxxTest version 3.
</literallayout>
    <para>
</para><literallayout>       NOTE: In older versions of this Find Module,
       this variable controlled if the Python test
       generator was used instead of the Perl one,
       regardless of which scripting language the
       user had installed.
</literallayout>
    <para>
</para><literallayout>   CXXTEST_TESTGEN_ARGS (since CMake 2.8.3)
       Specify a list of options to pass to the CxxTest code
       generator.  If not defined, --error-printer is
       passed.
</literallayout>
    <para>
</para><para>OUTPUT Variables
</para><literallayout>   CXXTEST_FOUND
       True if the CxxTest framework was found
   CXXTEST_INCLUDE_DIRS
       Where to find the CxxTest include directory
   CXXTEST_PERL_TESTGEN_EXECUTABLE
       The perl-based test generator
   CXXTEST_PYTHON_TESTGEN_EXECUTABLE
       The python-based test generator
   CXXTEST_TESTGEN_EXECUTABLE (since CMake 2.8.3)
       The test generator that is actually used (chosen using user preferences
       and interpreters found in the system)
   CXXTEST_TESTGEN_INTERPRETER (since CMake 2.8.3)
       The full path to the Perl or Python executable on the system
</literallayout>
    <para>
</para><para>MACROS for optional use by CMake users:
</para><literallayout>    CXXTEST_ADD_TEST(&lt;test_name&gt; &lt;gen_source_file&gt; &lt;input_files_to_testgen...&gt;)
       Creates a CxxTest runner and adds it to the CTest testing suite
       Parameters:
           test_name               The name of the test
           gen_source_file         The generated source filename to be
                                   generated by CxxTest
           input_files_to_testgen  The list of header files containing the
                                   CxxTest::TestSuite's to be included in
                                   this runner
           
       #==============
       Example Usage:
</literallayout>
    <para>
</para><literallayout>           find_package(CxxTest)
           if(CXXTEST_FOUND)
               include_directories(${CXXTEST_INCLUDE_DIR})
               enable_testing()
</literallayout>
    <para>
</para><literallayout>               CXXTEST_ADD_TEST(unittest_foo foo_test.cc
                                 ${CMAKE_CURRENT_SOURCE_DIR}/foo_test.h)
               target_link_libraries(unittest_foo foo) # as needed
           endif()
</literallayout>
    <para>
</para><literallayout>              This will (if CxxTest is found):
              1. Invoke the testgen executable to autogenerate foo_test.cc in the
                 binary tree from "foo_test.h" in the current source directory.
              2. Create an executable and test called unittest_foo.
               
      #=============
      Example foo_test.h:
</literallayout>
    <para>
</para><literallayout>          #include &lt;cxxtest/TestSuite.h&gt;
          
          class MyTestSuite : public CxxTest::TestSuite 
          {
          public:
             void testAddition( void )
             {
                TS_ASSERT( 1 + 1 &gt; 1 );
                TS_ASSERT_EQUALS( 1 + 1, 2 );
             }
          };
</literallayout>
    <para>
</para>
    <para id="module_FindCygwin"><sect2><title>FindCygwin</title></sect2> this module looks for Cygwin</para>

    <para>
</para>
    <para id="module_FindDCMTK"><sect2><title>FindDCMTK</title></sect2> find DCMTK libraries and applications</para>

    <para>
</para>
    <para id="module_FindDart"><sect2><title>FindDart</title></sect2> Find DART</para>

    <para>This module looks for the dart testing software and sets DART_ROOT to point to where it found it.
</para>
    <para id="module_FindDevIL"><sect2><title>FindDevIL</title></sect2>  </para>

    <para>This module locates the developer's image library. <ulink url="http://openil.sourceforge.net/" />
</para><para>This module sets: IL_LIBRARIES the name of the IL library. These include the full path to the core DevIL library. This one has to be linked into the application. ILU_LIBRARIES the name of the ILU library. Again, the full path. This library is for filters and effects, not actual loading. It doesn't have to be linked if the functionality it provides is not used. ILUT_LIBRARIES the name of the ILUT library. Full path. This part of the library interfaces with OpenGL. It is not strictly needed in applications. IL_INCLUDE_DIR where to find the il.h, ilu.h and ilut.h files. IL_FOUND this is set to TRUE if all the above variables were set. This will be set to false if ILU or ILUT are not found, even if they are not needed. In most systems, if one library is found all the others are as well. That's the way the DevIL developers release it.</para>
    <para id="module_FindDoxygen"><sect2><title>FindDoxygen</title></sect2> This module looks for Doxygen and the path to Graphviz's dot</para>

    <para>Doxygen is a documentation generation tool.  Please see <ulink url="http://www.doxygen.org" />
</para><para>This module accepts the following optional variables:
</para><literallayout>   DOXYGEN_SKIP_DOT       = If true this module will skip trying to find Dot
                            (an optional component often used by Doxygen)
</literallayout>
    <para>
</para><para>This modules defines the following variables:
</para><literallayout>   DOXYGEN_EXECUTABLE     = The path to the doxygen command.
   DOXYGEN_FOUND          = Was Doxygen found or not?
   DOXYGEN_VERSION        = The version reported by doxygen --version
</literallayout>
    <para>
</para><literallayout>   DOXYGEN_DOT_EXECUTABLE = The path to the dot program used by doxygen.
   DOXYGEN_DOT_FOUND      = Was Dot found or not?
   DOXYGEN_DOT_PATH       = The path to dot not including the executable
</literallayout>
    <para>
</para><para>
</para>
    <para id="module_FindEXPAT"><sect2><title>FindEXPAT</title></sect2> Find expat</para>

    <para>Find the native EXPAT headers and libraries.
</para><literallayout>  EXPAT_INCLUDE_DIRS - where to find expat.h, etc.
  EXPAT_LIBRARIES    - List of libraries when using expat.
  EXPAT_FOUND        - True if expat found.
</literallayout>
    
    <para id="module_FindFLEX"><sect2><title>FindFLEX</title></sect2> Find flex executable and provides a macro to generate custom build rules</para>

    <para>
</para><para>The module defines the following variables:
</para><literallayout>  FLEX_FOUND - true is flex executable is found
  FLEX_EXECUTABLE - the path to the flex executable
  FLEX_VERSION - the version of flex
  FLEX_LIBRARIES - The flex libraries
  FLEX_INCLUDE_DIRS - The path to the flex headers
</literallayout>
    <para>
</para><para>The minimum required version of flex can be specified using the standard syntax, e.g. FIND_PACKAGE(FLEX 2.5.13)
</para><para>
</para><para>If flex is found on the system, the module provides the macro:
</para><literallayout>  FLEX_TARGET(Name FlexInput FlexOutput [COMPILE_FLAGS &lt;string&gt;])
</literallayout>
    <para>which creates a custom command  to generate the &lt;FlexOutput&gt; file from the &lt;FlexInput&gt; file.  If  COMPILE_FLAGS option is specified, the next parameter is added to the flex  command line. Name is an alias used to get  details of  this custom  command.  Indeed the  macro defines  the following variables:
</para><literallayout>  FLEX_${Name}_DEFINED - true is the macro ran successfully
  FLEX_${Name}_OUTPUTS - the source file generated by the custom rule, an
  alias for FlexOutput
  FLEX_${Name}_INPUT - the flex source file, an alias for ${FlexInput}
</literallayout>
    <para>
</para><para>Flex scanners oftenly use tokens  defined by Bison: the code generated by Flex  depends of the header  generated by Bison.   This module also defines a macro:
</para><literallayout>  ADD_FLEX_BISON_DEPENDENCY(FlexTarget BisonTarget)
</literallayout>
    <para>which  adds the  required dependency  between a  scanner and  a parser where  &lt;FlexTarget&gt;  and &lt;BisonTarget&gt;  are  the  first parameters  of respectively FLEX_TARGET and BISON_TARGET macros.
</para><literallayout>  ====================================================================
  Example:
</literallayout>
    <para>
</para><literallayout>   find_package(BISON)
   find_package(FLEX)
</literallayout>
    <para>
</para><literallayout>   BISON_TARGET(MyParser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.cpp)
   FLEX_TARGET(MyScanner lexer.l  ${CMAKE_CURRENT_BINARY_DIR}/lexer.cpp)
   ADD_FLEX_BISON_DEPENDENCY(MyScanner MyParser)
</literallayout>
    <para>
</para><literallayout>   include_directories(${CMAKE_CURRENT_BINARY_DIR})
   add_executable(Foo
      Foo.cc
      ${BISON_MyParser_OUTPUTS}
      ${FLEX_MyScanner_OUTPUTS}
   )
  ====================================================================
</literallayout>
    
    <para id="module_FindFLTK"><sect2><title>FindFLTK</title></sect2> Find the native FLTK includes and library</para>

    <para>
</para><para>By default FindFLTK.cmake will search for all of the FLTK components and add them to the FLTK_LIBRARIES variable.
</para><literallayout>   You can limit the components which get placed in FLTK_LIBRARIES by
   defining one or more of the following three options:
</literallayout>
    <para>
</para><literallayout>     FLTK_SKIP_OPENGL, set to true to disable searching for opengl and
                       the FLTK GL library
     FLTK_SKIP_FORMS, set to true to disable searching for fltk_forms
     FLTK_SKIP_IMAGES, set to true to disable searching for fltk_images
</literallayout>
    <para>
</para><literallayout>     FLTK_SKIP_FLUID, set to true if the fluid binary need not be present
                      at build time
</literallayout>
    <para>
</para><para>The following variables will be defined:
</para><literallayout>     FLTK_FOUND, True if all components not skipped were found
     FLTK_INCLUDE_DIR, where to find include files
     FLTK_LIBRARIES, list of fltk libraries you should link against
     FLTK_FLUID_EXECUTABLE, where to find the Fluid tool
     FLTK_WRAP_UI, This enables the FLTK_WRAP_UI command
</literallayout>
    <para>
</para><para>The following cache variables are assigned but should not be used. See the FLTK_LIBRARIES variable instead.
</para><literallayout>     FLTK_BASE_LIBRARY   = the full path to fltk.lib
     FLTK_GL_LIBRARY     = the full path to fltk_gl.lib
     FLTK_FORMS_LIBRARY  = the full path to fltk_forms.lib
     FLTK_IMAGES_LIBRARY = the full path to fltk_images.lib
</literallayout>
    
    <para id="module_FindFLTK2"><sect2><title>FindFLTK2</title></sect2> Find the native FLTK2 includes and library</para>

    <para>The following settings are defined
</para><literallayout>  FLTK2_FLUID_EXECUTABLE, where to find the Fluid tool
  FLTK2_WRAP_UI, This enables the FLTK2_WRAP_UI command
  FLTK2_INCLUDE_DIR, where to find include files
  FLTK2_LIBRARIES, list of fltk2 libraries
  FLTK2_FOUND, Don't use FLTK2 if false.
</literallayout>
    <para>The following settings should not be used in general.
</para><literallayout>  FLTK2_BASE_LIBRARY   = the full path to fltk2.lib
  FLTK2_GL_LIBRARY     = the full path to fltk2_gl.lib
  FLTK2_IMAGES_LIBRARY = the full path to fltk2_images.lib
</literallayout>
    
    <para id="module_FindFreetype"><sect2><title>FindFreetype</title></sect2> Locate FreeType library</para>

    <para>This module defines
</para><literallayout>  FREETYPE_LIBRARIES, the library to link against
  FREETYPE_FOUND, if false, do not try to link to FREETYPE
  FREETYPE_INCLUDE_DIRS, where to find headers.
  FREETYPE_VERSION_STRING, the version of freetype found (since CMake 2.8.8)
  This is the concatenation of the paths:
  FREETYPE_INCLUDE_DIR_ft2build
  FREETYPE_INCLUDE_DIR_freetype2
</literallayout>
    <para>
</para><para>$FREETYPE_DIR is an environment variable that would correspond to the ./configure --prefix=$FREETYPE_DIR used in building FREETYPE.</para>
    <para id="module_FindGCCXML"><sect2><title>FindGCCXML</title></sect2> Find the GCC-XML front-end executable.</para>

    <para>
</para><para>This module will define the following variables:
</para><literallayout>  GCCXML - the GCC-XML front-end executable.
</literallayout>
    
    <para id="module_FindGDAL"><sect2><title>FindGDAL</title></sect2>  </para>

    <para>Locate gdal
</para><para>This module accepts the following environment variables:
</para><literallayout>    GDAL_DIR or GDAL_ROOT - Specify the location of GDAL
</literallayout>
    <para>
</para><para>This module defines the following CMake variables:
</para><literallayout>    GDAL_FOUND - True if libgdal is found
    GDAL_LIBRARY - A variable pointing to the GDAL library
    GDAL_INCLUDE_DIR - Where to find the headers
</literallayout>
    
    <para id="module_FindGIF"><sect2><title>FindGIF</title></sect2>  </para>

    <para>This module searches giflib and defines GIF_LIBRARIES - libraries to link to in order to use GIF GIF_FOUND, if false, do not try to link GIF_INCLUDE_DIR, where to find the headers GIF_VERSION, reports either version 4 or 3 (for everything before version 4)
</para><para>The minimum required version of giflib can be specified using the standard syntax, e.g. FIND_PACKAGE(GIF 4)
</para><para>$GIF_DIR is an environment variable that would correspond to the ./configure --prefix=$GIF_DIR</para>
    <para id="module_FindGLUT"><sect2><title>FindGLUT</title></sect2> try to find glut library and include files</para>

    <literallayout>  GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.
  GLUT_LIBRARIES, the libraries to link against
  GLUT_FOUND, If false, do not try to use GLUT.
</literallayout>
    <para>Also defined, but not for general use are:
</para><literallayout>  GLUT_glut_LIBRARY = the full path to the glut library.
  GLUT_Xmu_LIBRARY  = the full path to the Xmu library.
  GLUT_Xi_LIBRARY   = the full path to the Xi Library.
</literallayout>
    
    <para id="module_FindGTK"><sect2><title>FindGTK</title></sect2> try to find GTK (and glib) and GTKGLArea</para>

    <literallayout>  GTK_INCLUDE_DIR   - Directories to include to use GTK
  GTK_LIBRARIES     - Files to link against to use GTK
  GTK_FOUND         - GTK was found
  GTK_GL_FOUND      - GTK's GL features were found
</literallayout>
    
    <para id="module_FindGTK2"><sect2><title>FindGTK2</title></sect2> FindGTK2.cmake</para>

    <para>This module can find the GTK2 widget libraries and several of its other optional components like gtkmm, glade, and glademm.
</para><para>NOTE: If you intend to use version checking, CMake 2.6.2 or later is
</para><literallayout>       required.
</literallayout>
    <para>
</para><para>Specify one or more of the following components as you call this find module. See example below.
</para><literallayout>   gtk
   gtkmm
   glade
   glademm
</literallayout>
    <para>
</para><para>The following variables will be defined for your use
</para><literallayout>   GTK2_FOUND - Were all of your specified components found?
   GTK2_INCLUDE_DIRS - All include directories
   GTK2_LIBRARIES - All libraries
</literallayout>
    <para>
</para><literallayout>   GTK2_VERSION - The version of GTK2 found (x.y.z)
   GTK2_MAJOR_VERSION - The major version of GTK2
   GTK2_MINOR_VERSION - The minor version of GTK2
   GTK2_PATCH_VERSION - The patch version of GTK2
</literallayout>
    <para>
</para><para>Optional variables you can define prior to calling this module:
</para><literallayout>   GTK2_DEBUG - Enables verbose debugging of the module
   GTK2_SKIP_MARK_AS_ADVANCED - Disable marking cache variables as advanced
   GTK2_ADDITIONAL_SUFFIXES - Allows defining additional directories to
                              search for include files
</literallayout>
    <para>
</para><para>================= Example Usage:
</para><literallayout>   Call find_package() once, here are some examples to pick from:
</literallayout>
    <para>
</para><literallayout>   Require GTK 2.6 or later
       find_package(GTK2 2.6 REQUIRED gtk)
</literallayout>
    <para>
</para><literallayout>   Require GTK 2.10 or later and Glade
       find_package(GTK2 2.10 REQUIRED gtk glade)
</literallayout>
    <para>
</para><literallayout>   Search for GTK/GTKMM 2.8 or later
       find_package(GTK2 2.8 COMPONENTS gtk gtkmm)
</literallayout>
    <para>
</para><literallayout>   if(GTK2_FOUND)
      include_directories(${GTK2_INCLUDE_DIRS})
      add_executable(mygui mygui.cc)
      target_link_libraries(mygui ${GTK2_LIBRARIES})
   endif()
</literallayout>
    <para>
</para>
    <para id="module_FindGTest"><sect2><title>FindGTest</title></sect2> --------------------</para>

    <para>Locate the Google C++ Testing Framework.
</para><para>Defines the following variables:
</para><literallayout>   GTEST_FOUND - Found the Google Testing framework
   GTEST_INCLUDE_DIRS - Include directories
</literallayout>
    <para>
</para><para>Also defines the library variables below as normal variables.  These contain debug/optimized keywords when a debugging library is found.
</para><literallayout>   GTEST_BOTH_LIBRARIES - Both libgtest &amp; libgtest-main
   GTEST_LIBRARIES - libgtest
   GTEST_MAIN_LIBRARIES - libgtest-main
</literallayout>
    <para>
</para><para>Accepts the following variables as input:
</para><literallayout>   GTEST_ROOT - (as a CMake or environment variable)
                The root directory of the gtest install prefix
</literallayout>
    <para>
</para><literallayout>   GTEST_MSVC_SEARCH - If compiling with MSVC, this variable can be set to
                       "MD" or "MT" to enable searching a GTest build tree
                       (defaults: "MD")
</literallayout>
    <para>
</para><para>Example Usage:
</para><literallayout>    enable_testing()
    find_package(GTest REQUIRED)
    include_directories(${GTEST_INCLUDE_DIRS})
</literallayout>
    <para>
</para><literallayout>    add_executable(foo foo.cc)
    target_link_libraries(foo ${GTEST_BOTH_LIBRARIES})
</literallayout>
    <para>
</para><literallayout>    add_test(AllTestsInFoo foo)
</literallayout>
    <para>
</para><para>
</para><para>If you would like each Google test to show up in CTest as a test you may use the following macro. NOTE: It will slow down your tests by running an executable for each test and test fixture.  You will also have to rerun CMake after adding or removing tests or test fixtures.
</para><para>GTEST_ADD_TESTS(executable extra_args ARGN)
</para><literallayout>    executable = The path to the test executable
    extra_args = Pass a list of extra arguments to be passed to
                 executable enclosed in quotes (or "" for none)
    ARGN =       A list of source files to search for tests &amp; test
                 fixtures.
</literallayout>
    <para>
</para><literallayout>  Example:
     set(FooTestArgs --foo 1 --bar 2)
     add_executable(FooTest FooUnitTest.cc)
     GTEST_ADD_TESTS(FooTest "${FooTestArgs}" FooUnitTest.cc)
</literallayout>
    
    <para id="module_FindGettext"><sect2><title>FindGettext</title></sect2> Find GNU gettext tools</para>

    <para>This module looks for the GNU gettext tools. This module defines the following values:
</para><literallayout>  GETTEXT_MSGMERGE_EXECUTABLE: the full path to the msgmerge tool.
  GETTEXT_MSGFMT_EXECUTABLE: the full path to the msgfmt tool.
  GETTEXT_FOUND: True if gettext has been found.
  GETTEXT_VERSION_STRING: the version of gettext found (since CMake 2.8.8)
</literallayout>
    <para>
</para><para>Additionally it provides the following macros: GETTEXT_CREATE_TRANSLATIONS ( outputFile [ALL] file1 ... fileN )
</para><literallayout>    This will create a target "translations" which will convert the
    given input po files into the binary output mo file. If the
    ALL option is used, the translations will also be created when
    building the default target.
</literallayout>
    <para>GETTEXT_PROCESS_POT( &lt;potfile&gt; [ALL] [INSTALL_DESTINATION &lt;destdir&gt;] LANGUAGES &lt;lang1&gt; &lt;lang2&gt; ... )
</para><literallayout>     Process the given pot file to mo files.
     If INSTALL_DESTINATION is given then automatically install rules will be created,
     the language subdirectory will be taken into account (by default use share/locale/).
     If ALL is specified, the pot file is processed when building the all traget.
     It creates a custom target "potfile".
</literallayout>
    <para>GETTEXT_PROCESS_PO_FILES( &lt;lang&gt; [ALL] [INSTALL_DESTINATION &lt;dir&gt;] PO_FILES &lt;po1&gt; &lt;po2&gt; ... )
</para><literallayout>     Process the given po files to mo files for the given language.
     If INSTALL_DESTINATION is given then automatically install rules will be created,
     the language subdirectory will be taken into account (by default use share/locale/).
     If ALL is specified, the po files are processed when building the all traget.
     It creates a custom target "pofiles".
</literallayout>
    
    <para id="module_FindGit"><sect2><title>FindGit</title></sect2>  </para>

    <para>The module defines the following variables:
</para><literallayout>   GIT_EXECUTABLE - path to git command line client
   GIT_FOUND - true if the command line client was found
   GIT_VERSION_STRING - the version of git found (since CMake 2.8.8)
</literallayout>
    <para>Example usage:
</para><literallayout>   find_package(Git)
   if(GIT_FOUND)
     message("git found: ${GIT_EXECUTABLE}")
   endif()
</literallayout>
    
    <para id="module_FindGnuTLS"><sect2><title>FindGnuTLS</title></sect2> Try to find the GNU Transport Layer Security library (gnutls)</para>

    <para>
</para><para>Once done this will define
</para><literallayout>  GNUTLS_FOUND - System has gnutls
  GNUTLS_INCLUDE_DIR - The gnutls include directory
  GNUTLS_LIBRARIES - The libraries needed to use gnutls
  GNUTLS_DEFINITIONS - Compiler switches required for using gnutls
</literallayout>
    
    <para id="module_FindGnuplot"><sect2><title>FindGnuplot</title></sect2> this module looks for gnuplot</para>

    <para>
</para><para>Once done this will define
</para><literallayout>  GNUPLOT_FOUND - system has Gnuplot
  GNUPLOT_EXECUTABLE - the Gnuplot executable
  GNUPLOT_VERSION_STRING - the version of Gnuplot found (since CMake 2.8.8)
</literallayout>
    <para>
</para><para>GNUPLOT_VERSION_STRING will not work for old versions like 3.7.1.</para>
    <para id="module_FindHDF5"><sect2><title>FindHDF5</title></sect2> Find HDF5, a library for reading and writing self describing array data.</para>

    <para>
</para><para>This module invokes the HDF5 wrapper compiler that should be installed alongside HDF5.  Depending upon the HDF5 Configuration, the wrapper compiler is called either h5cc or h5pcc.  If this succeeds, the module will then call the compiler with the -show argument to see what flags are used when compiling an HDF5 client application.
</para><para>The module will optionally accept the COMPONENTS argument.  If no COMPONENTS are specified, then the find module will default to finding only the HDF5 C library.  If one or more COMPONENTS are specified, the module will attempt to find the language bindings for the specified components.  The only valid components are C, CXX, Fortran, HL, and Fortran_HL.  If the COMPONENTS argument is not given, the module will attempt to find only the C bindings.
</para><para>On UNIX systems, this module will read the variable HDF5_USE_STATIC_LIBRARIES to determine whether or not to prefer a static link to a dynamic link for HDF5 and all of it's dependencies.  To use this feature, make sure that the HDF5_USE_STATIC_LIBRARIES variable is set before the call to find_package.
</para><para>To provide the module with a hint about where to find your HDF5 installation, you can set the environment variable HDF5_ROOT.  The Find module will then look in this path when searching for HDF5 executables, paths, and libraries.
</para><para>In addition to finding the includes and libraries required to compile an HDF5 client application, this module also makes an effort to find tools that come with the HDF5 distribution that may be useful for regression testing.
</para><para>This module will define the following variables:
</para><literallayout>  HDF5_INCLUDE_DIRS - Location of the hdf5 includes
  HDF5_INCLUDE_DIR - Location of the hdf5 includes (deprecated)
  HDF5_DEFINITIONS - Required compiler definitions for HDF5
  HDF5_C_LIBRARIES - Required libraries for the HDF5 C bindings.
  HDF5_CXX_LIBRARIES - Required libraries for the HDF5 C++ bindings
  HDF5_Fortran_LIBRARIES - Required libraries for the HDF5 Fortran bindings
  HDF5_HL_LIBRARIES - Required libraries for the HDF5 high level API
  HDF5_Fortran_HL_LIBRARIES - Required libraries for the high level Fortran
                              bindings.
  HDF5_LIBRARIES - Required libraries for all requested bindings
  HDF5_FOUND - true if HDF5 was found on the system
  HDF5_LIBRARY_DIRS - the full set of library directories
  HDF5_IS_PARALLEL - Whether or not HDF5 was found with parallel IO support
  HDF5_C_COMPILER_EXECUTABLE - the path to the HDF5 C wrapper compiler
  HDF5_CXX_COMPILER_EXECUTABLE - the path to the HDF5 C++ wrapper compiler
  HDF5_Fortran_COMPILER_EXECUTABLE - the path to the HDF5 Fortran wrapper compiler
  HDF5_DIFF_EXECUTABLE - the path to the HDF5 dataset comparison tool
</literallayout>
    
    <para id="module_FindHSPELL"><sect2><title>FindHSPELL</title></sect2> Try to find Hspell</para>

    <para>Once done this will define
</para><literallayout>  HSPELL_FOUND - system has Hspell
  HSPELL_INCLUDE_DIR - the Hspell include directory
  HSPELL_LIBRARIES - The libraries needed to use Hspell
  HSPELL_DEFINITIONS - Compiler switches required for using Hspell
</literallayout>
    <para>
</para><literallayout>  HSPELL_VERSION_STRING - The version of Hspell found (x.y)
  HSPELL_MAJOR_VERSION  - the major version of Hspell
  HSPELL_MINOR_VERSION  - The minor version of Hspell
</literallayout>
    
    <para id="module_FindHTMLHelp"><sect2><title>FindHTMLHelp</title></sect2> This module looks for Microsoft HTML Help Compiler</para>

    <para>It defines:
</para><literallayout>   HTML_HELP_COMPILER     : full path to the Compiler (hhc.exe)
   HTML_HELP_INCLUDE_PATH : include path to the API (htmlhelp.h)
   HTML_HELP_LIBRARY      : full path to the library (htmlhelp.lib)
</literallayout>
    <para>
</para>
    <para id="module_FindITK"><sect2><title>FindITK</title></sect2> Find an ITK installation or build tree.</para>

    <para id="module_FindImageMagick"><sect2><title>FindImageMagick</title></sect2> Find the ImageMagick binary suite.</para>

    <para>This module will search for a set of ImageMagick tools specified as components in the FIND_PACKAGE call. Typical components include, but are not limited to (future versions of ImageMagick might have additional components not listed here):
</para><literallayout>  animate
  compare
  composite
  conjure
  convert
  display
  identify
  import
  mogrify
  montage
  stream
</literallayout>
    <para>
</para><para>If no component is specified in the FIND_PACKAGE call, then it only searches for the ImageMagick executable directory. This code defines the following variables:
</para><literallayout>  ImageMagick_FOUND                  - TRUE if all components are found.
  ImageMagick_EXECUTABLE_DIR         - Full path to executables directory.
  ImageMagick_&lt;component&gt;_FOUND      - TRUE if &lt;component&gt; is found.
  ImageMagick_&lt;component&gt;_EXECUTABLE - Full path to &lt;component&gt; executable.
  ImageMagick_VERSION_STRING         - the version of ImageMagick found
                                       (since CMake 2.8.8)
</literallayout>
    <para>
</para><para>ImageMagick_VERSION_STRING will not work for old versions like 5.2.3.
</para><para>There are also components for the following ImageMagick APIs:
</para><literallayout>  Magick++
  MagickWand
  MagickCore
</literallayout>
    <para>
</para><para>For these components the following variables are set:
</para><literallayout>  ImageMagick_FOUND                    - TRUE if all components are found.
  ImageMagick_INCLUDE_DIRS             - Full paths to all include dirs.
  ImageMagick_LIBRARIES                - Full paths to all libraries.
  ImageMagick_&lt;component&gt;_FOUND        - TRUE if &lt;component&gt; is found.
  ImageMagick_&lt;component&gt;_INCLUDE_DIRS - Full path to &lt;component&gt; include dirs.
  ImageMagick_&lt;component&gt;_LIBRARIES    - Full path to &lt;component&gt; libraries.
</literallayout>
    <para>
</para><para>Example Usages:
</para><literallayout>  FIND_PACKAGE(ImageMagick)
  FIND_PACKAGE(ImageMagick COMPONENTS convert)
  FIND_PACKAGE(ImageMagick COMPONENTS convert mogrify display)
  FIND_PACKAGE(ImageMagick COMPONENTS Magick++)
  FIND_PACKAGE(ImageMagick COMPONENTS Magick++ convert)
</literallayout>
    <para>
</para><para>Note that the standard FIND_PACKAGE features are supported (i.e., QUIET, REQUIRED, etc.).</para>
    <para id="module_FindJNI"><sect2><title>FindJNI</title></sect2> Find JNI java libraries.</para>

    <para>This module finds if Java is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>   
  JNI_INCLUDE_DIRS      = the include dirs to use
  JNI_LIBRARIES         = the libraries to use
  JNI_FOUND             = TRUE if JNI headers and libraries were found.
  JAVA_AWT_LIBRARY      = the path to the jawt library
  JAVA_JVM_LIBRARY      = the path to the jvm library
  JAVA_INCLUDE_PATH     = the include path to jni.h
  JAVA_INCLUDE_PATH2    = the include path to jni_md.h
  JAVA_AWT_INCLUDE_PATH = the include path to jawt.h
</literallayout>
    <para>
</para>
    <para id="module_FindJPEG"><sect2><title>FindJPEG</title></sect2> Find JPEG</para>

    <para>Find the native JPEG includes and library This module defines
</para><literallayout>  JPEG_INCLUDE_DIR, where to find jpeglib.h, etc.
  JPEG_LIBRARIES, the libraries needed to use JPEG.
  JPEG_FOUND, If false, do not try to use JPEG.
</literallayout>
    <para>also defined, but not for general use are
</para><literallayout>  JPEG_LIBRARY, where to find the JPEG library.
</literallayout>
    
    <para id="module_FindJasper"><sect2><title>FindJasper</title></sect2> Try to find the Jasper JPEG2000 library</para>

    <para>Once done this will define
</para><literallayout>  JASPER_FOUND - system has Jasper
  JASPER_INCLUDE_DIR - the Jasper include directory
  JASPER_LIBRARIES - the libraries needed to use Jasper
  JASPER_VERSION_STRING - the version of Jasper found (since CMake 2.8.8)
</literallayout>
    
    <para id="module_FindJava"><sect2><title>FindJava</title></sect2> Find Java</para>

    <para>This module finds if Java is installed and determines where the include files and libraries are. This code sets the following variables:
</para><literallayout>  Java_JAVA_EXECUTABLE    = the full path to the Java runtime
  Java_JAVAC_EXECUTABLE   = the full path to the Java compiler
  Java_JAVAH_EXECUTABLE   = the full path to the Java header generator
  Java_JAVADOC_EXECUTABLE = the full path to the Java documention generator
  Java_JAR_EXECUTABLE     = the full path to the Java archiver
  Java_VERSION_STRING     = Version of the package found (java version), eg. 1.6.0_12
  Java_VERSION_MAJOR      = The major version of the package found.
  Java_VERSION_MINOR      = The minor version of the package found.
  Java_VERSION_PATCH      = The patch version of the package found.
  Java_VERSION_TWEAK      = The tweak version of the package found (after '_')
  Java_VERSION            = This is set to: $major.$minor.$patch(.$tweak)
</literallayout>
    <para>
</para><para>The minimum required version of Java can be specified using the standard CMake syntax, e.g. FIND_PACKAGE(Java 1.5)
</para><para>NOTE: ${Java_VERSION} and ${Java_VERSION_STRING} are not guaranteed to be identical. For example some java version may return: Java_VERSION_STRING = 1.5.0_17 and Java_VERSION        = 1.5.0.17
</para><para>another example is the Java OEM, with: Java_VERSION_STRING = 1.6.0-oem and Java_VERSION        = 1.6.0
</para><para>For these components the following variables are set:
</para><literallayout>  Java_FOUND                    - TRUE if all components are found.
  Java_INCLUDE_DIRS             - Full paths to all include dirs.
  Java_LIBRARIES                - Full paths to all libraries.
  Java_&lt;component&gt;_FOUND        - TRUE if &lt;component&gt; is found.
</literallayout>
    <para>
</para><para>Example Usages:
</para><literallayout>  FIND_PACKAGE(Java)
  FIND_PACKAGE(Java COMPONENTS Runtime)
  FIND_PACKAGE(Java COMPONENTS Development)
</literallayout>
    <para>
</para>
    <para id="module_FindKDE3"><sect2><title>FindKDE3</title></sect2> Find the KDE3 include and library dirs, KDE preprocessors and define a some macros</para>

    <para>
</para><para>This module defines the following variables:
</para><literallayout>  KDE3_DEFINITIONS         - compiler definitions required for compiling KDE software
  KDE3_INCLUDE_DIR         - the KDE include directory
  KDE3_INCLUDE_DIRS        - the KDE and the Qt include directory, for use with INCLUDE_DIRECTORIES()
  KDE3_LIB_DIR             - the directory where the KDE libraries are installed, for use with LINK_DIRECTORIES()
  QT_AND_KDECORE_LIBS      - this contains both the Qt and the kdecore library
  KDE3_DCOPIDL_EXECUTABLE  - the dcopidl executable
  KDE3_DCOPIDL2CPP_EXECUTABLE - the dcopidl2cpp executable
  KDE3_KCFGC_EXECUTABLE    - the kconfig_compiler executable
  KDE3_FOUND               - set to TRUE if all of the above has been found
</literallayout>
    <para>
</para><para>The following user adjustable options are provided:
</para><literallayout>  KDE3_BUILD_TESTS - enable this to build KDE testcases
</literallayout>
    <para>
</para><para>
</para><para>It also adds the following macros (from KDE3Macros.cmake) SRCS_VAR is always the variable which contains the list of source files for your application or library.
</para><para>KDE3_AUTOMOC(file1 ... fileN)
</para><literallayout>    Call this if you want to have automatic moc file handling.
    This means if you include "foo.moc" in the source file foo.cpp
    a moc file for the header foo.h will be created automatically.
    You can set the property SKIP_AUTOMAKE using SET_SOURCE_FILES_PROPERTIES()
    to exclude some files in the list from being processed.
</literallayout>
    <para>
</para><para>KDE3_ADD_MOC_FILES(SRCS_VAR file1 ... fileN )
</para><literallayout>    If you don't use the KDE3_AUTOMOC() macro, for the files
    listed here moc files will be created (named "foo.moc.cpp")
</literallayout>
    <para>
</para><para>KDE3_ADD_DCOP_SKELS(SRCS_VAR header1.h ... headerN.h )
</para><literallayout>    Use this to generate DCOP skeletions from the listed headers.
</literallayout>
    <para>
</para><para>KDE3_ADD_DCOP_STUBS(SRCS_VAR header1.h ... headerN.h )
</para><literallayout>     Use this to generate DCOP stubs from the listed headers.
</literallayout>
    <para>
</para><para>KDE3_ADD_UI_FILES(SRCS_VAR file1.ui ... fileN.ui )
</para><literallayout>    Use this to add the Qt designer ui files to your application/library.
</literallayout>
    <para>
</para><para>KDE3_ADD_KCFG_FILES(SRCS_VAR file1.kcfgc ... fileN.kcfgc )
</para><literallayout>    Use this to add KDE kconfig compiler files to your application/library.
</literallayout>
    <para>
</para><para>KDE3_INSTALL_LIBTOOL_FILE(target)
</para><literallayout>    This will create and install a simple libtool file for the given target.
</literallayout>
    <para>
</para><para>KDE3_ADD_EXECUTABLE(name file1 ... fileN )
</para><literallayout>    Currently identical to ADD_EXECUTABLE(), may provide some advanced features in the future.
</literallayout>
    <para>
</para><para>KDE3_ADD_KPART(name [WITH_PREFIX] file1 ... fileN )
</para><literallayout>    Create a KDE plugin (KPart, kioslave, etc.) from the given source files.
    If WITH_PREFIX is given, the resulting plugin will have the prefix "lib", otherwise it won't.
    It creates and installs an appropriate libtool la-file.
</literallayout>
    <para>
</para><para>KDE3_ADD_KDEINIT_EXECUTABLE(name file1 ... fileN )
</para><literallayout>    Create a KDE application in the form of a module loadable via kdeinit.
    A library named kdeinit_&lt;name&gt; will be created and a small executable which links to it.
</literallayout>
    <para>
</para><para>The option KDE3_ENABLE_FINAL to enable all-in-one compilation is no longer supported.
</para><para>
</para><para>Author: Alexander Neundorf &lt;neundorf@kde.org&gt;</para>
    <para id="module_FindKDE4"><sect2><title>FindKDE4</title></sect2>  </para>

    <para>Find KDE4 and provide all necessary variables and macros to compile software for it. It looks for KDE 4 in the following directories in the given order:
</para><literallayout>  CMAKE_INSTALL_PREFIX
  KDEDIRS
  /opt/kde4
</literallayout>
    <para>
</para><para>Please look in FindKDE4Internal.cmake and KDE4Macros.cmake for more information. They are installed with the KDE 4 libraries in $KDEDIRS/share/apps/cmake/modules/.
</para><para>Author: Alexander Neundorf &lt;neundorf@kde.org&gt;</para>
    <para id="module_FindLAPACK"><sect2><title>FindLAPACK</title></sect2> Find LAPACK library</para>

    <para>This module finds an installed fortran library that implements the LAPACK linear-algebra interface (see <ulink url="http://www.netlib.org/lapack/" />).
</para><para>The approach follows that taken for the autoconf macro file, acx_lapack.m4 (distributed at <ulink url="http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html" />).
</para><para>This module sets the following variables:
</para><literallayout>  LAPACK_FOUND - set to true if a library implementing the LAPACK interface
    is found
  LAPACK_LINKER_FLAGS - uncached list of required linker flags (excluding -l
    and -L).
  LAPACK_LIBRARIES - uncached list of libraries (using full path name) to
    link against to use LAPACK
  LAPACK95_LIBRARIES - uncached list of libraries (using full path name) to
    link against to use LAPACK95
  LAPACK95_FOUND - set to true if a library implementing the LAPACK f95
    interface is found
  BLA_STATIC  if set on this determines what kind of linkage we do (static)
  BLA_VENDOR  if set checks only the specified vendor, if not set checks
     all the possibilities
  BLA_F95     if set on tries to find the f95 interfaces for BLAS/LAPACK
</literallayout>
    
    <para id="module_FindLATEX"><sect2><title>FindLATEX</title></sect2> Find Latex</para>

    <para>This module finds if Latex is installed and determines where the executables are. This code sets the following variables:
</para><literallayout>  
  LATEX_COMPILER:       path to the LaTeX compiler
  PDFLATEX_COMPILER:    path to the PdfLaTeX compiler
  BIBTEX_COMPILER:      path to the BibTeX compiler
  MAKEINDEX_COMPILER:   path to the MakeIndex compiler
  DVIPS_CONVERTER:      path to the DVIPS converter
  PS2PDF_CONVERTER:     path to the PS2PDF converter
  LATEX2HTML_CONVERTER: path to the LaTeX2Html converter 
</literallayout>
    <para>
</para>
    <para id="module_FindLibArchive"><sect2><title>FindLibArchive</title></sect2> Find libarchive library and headers</para>

    <para>The module defines the following variables:
</para><literallayout>  LibArchive_FOUND        - true if libarchive was found
  LibArchive_INCLUDE_DIRS - include search path
  LibArchive_LIBRARIES    - libraries to link
  LibArchive_VERSION      - libarchive 3-component version number
</literallayout>
    
    <para id="module_FindLibXml2"><sect2><title>FindLibXml2</title></sect2> Try to find the LibXml2 xml processing library</para>

    <para>Once done this will define
</para><literallayout>  LIBXML2_FOUND - System has LibXml2
  LIBXML2_INCLUDE_DIR - The LibXml2 include directory
  LIBXML2_LIBRARIES - The libraries needed to use LibXml2
  LIBXML2_DEFINITIONS - Compiler switches required for using LibXml2
  LIBXML2_XMLLINT_EXECUTABLE - The XML checking tool xmllint coming with LibXml2
  LIBXML2_VERSION_STRING - the version of LibXml2 found (since CMake 2.8.8)
</literallayout>
    
    <para id="module_FindLibXslt"><sect2><title>FindLibXslt</title></sect2> Try to find the LibXslt library</para>

    <para>Once done this will define
</para><literallayout>  LIBXSLT_FOUND - system has LibXslt
  LIBXSLT_INCLUDE_DIR - the LibXslt include directory
  LIBXSLT_LIBRARIES - Link these to LibXslt
  LIBXSLT_DEFINITIONS - Compiler switches required for using LibXslt
  LIBXSLT_VERSION_STRING - version of LibXslt found (since CMake 2.8.8)
</literallayout>
    <para>Additionally, the following two variables are set (but not required for using xslt):
</para><literallayout>  LIBXSLT_EXSLT_LIBRARIES - Link to these if you need to link against the exslt library
  LIBXSLT_XSLTPROC_EXECUTABLE - Contains the full path to the xsltproc executable if found
</literallayout>
    
    <para id="module_FindLua50"><sect2><title>FindLua50</title></sect2>  </para>

    <para>Locate Lua library This module defines
</para><literallayout>  LUA50_FOUND, if false, do not try to link to Lua 
  LUA_LIBRARIES, both lua and lualib
  LUA_INCLUDE_DIR, where to find lua.h and lualib.h (and probably lauxlib.h)
</literallayout>
    <para>
</para><para>Note that the expected include convention is
</para><literallayout>  #include "lua.h"
</literallayout>
    <para>and not
</para><literallayout>  #include &lt;lua/lua.h&gt;
</literallayout>
    <para>This is because, the lua location is not standardized and may exist in locations other than lua/</para>
    <para id="module_FindLua51"><sect2><title>FindLua51</title></sect2>  </para>

    <para>Locate Lua library This module defines
</para><literallayout>  LUA51_FOUND, if false, do not try to link to Lua 
  LUA_LIBRARIES
  LUA_INCLUDE_DIR, where to find lua.h
  LUA_VERSION_STRING, the version of Lua found (since CMake 2.8.8)
</literallayout>
    <para>
</para><para>Note that the expected include convention is
</para><literallayout>  #include "lua.h"
</literallayout>
    <para>and not
</para><literallayout>  #include &lt;lua/lua.h&gt;
</literallayout>
    <para>This is because, the lua location is not standardized and may exist in locations other than lua/</para>
    <para id="module_FindMFC"><sect2><title>FindMFC</title></sect2> Find MFC on Windows</para>

    <para>Find the native MFC - i.e. decide if an application can link to the MFC libraries.
</para><literallayout>  MFC_FOUND - Was MFC support found
</literallayout>
    <para>You don't need to include anything or link anything to use it.</para>
    <para id="module_FindMPEG"><sect2><title>FindMPEG</title></sect2> Find the native MPEG includes and library</para>

    <para>This module defines
</para><literallayout>  MPEG_INCLUDE_DIR, where to find MPEG.h, etc.
  MPEG_LIBRARIES, the libraries required to use MPEG.
  MPEG_FOUND, If false, do not try to use MPEG.
</literallayout>
    <para>also defined, but not for general use are
</para><literallayout>  MPEG_mpeg2_LIBRARY, where to find the MPEG library.
  MPEG_vo_LIBRARY, where to find the vo library.
</literallayout>
    
    <para id="module_FindMPEG2"><sect2><title>FindMPEG2</title></sect2> Find the native MPEG2 includes and library</para>

    <para>This module defines
</para><literallayout>  MPEG2_INCLUDE_DIR, path to mpeg2dec/mpeg2.h, etc.
  MPEG2_LIBRARIES, the libraries required to use MPEG2.
  MPEG2_FOUND, If false, do not try to use MPEG2.
</literallayout>
    <para>also defined, but not for general use are
</para><literallayout>  MPEG2_mpeg2_LIBRARY, where to find the MPEG2 library.
  MPEG2_vo_LIBRARY, where to find the vo library.
</literallayout>
    
    <para id="module_FindMPI"><sect2><title>FindMPI</title></sect2> Find a Message Passing Interface (MPI) implementation</para>

    <para>The Message Passing Interface (MPI) is a library used to write high-performance distributed-memory parallel applications, and is typically deployed on a cluster. MPI is a standard interface (defined by the MPI forum) for which many implementations are available. All of them have somewhat different include paths, libraries to link against, etc., and this module tries to smooth out those differences.
</para><para>=== Variables ===
</para><para>This module will set the following variables per language in your project, where &lt;lang&gt; is one of C, CXX, or Fortran:
</para><literallayout>   MPI_&lt;lang&gt;_FOUND           TRUE if FindMPI found MPI flags for &lt;lang&gt;
   MPI_&lt;lang&gt;_COMPILER        MPI Compiler wrapper for &lt;lang&gt;
   MPI_&lt;lang&gt;_COMPILE_FLAGS   Compilation flags for MPI programs
   MPI_&lt;lang&gt;_INCLUDE_PATH    Include path(s) for MPI header
   MPI_&lt;lang&gt;_LINK_FLAGS      Linking flags for MPI programs
   MPI_&lt;lang&gt;_LIBRARIES       All libraries to link MPI programs against
</literallayout>
    <para>Additionally, FindMPI sets the following variables for running MPI programs from the command line:
</para><literallayout>   MPIEXEC                    Executable for running MPI programs
   MPIEXEC_NUMPROC_FLAG       Flag to pass to MPIEXEC before giving
                              it the number of processors to run on
   MPIEXEC_PREFLAGS           Flags to pass to MPIEXEC directly
                              before the executable to run.
   MPIEXEC_POSTFLAGS          Flags to pass to MPIEXEC after other flags
</literallayout>
    <para>=== Usage ===
</para><para>To use this module, simply call FindMPI from a CMakeLists.txt file, or run find_package(MPI), then run CMake.  If you are happy with the auto- detected configuration for your language, then you're done.  If not, you have two options:
</para><literallayout>   1. Set MPI_&lt;lang&gt;_COMPILER to the MPI wrapper (mpicc, etc.) of your
      choice and reconfigure.  FindMPI will attempt to determine all the
      necessary variables using THAT compiler's compile and link flags.
   2. If this fails, or if your MPI implementation does not come with
      a compiler wrapper, then set both MPI_&lt;lang&gt;_LIBRARIES and
      MPI_&lt;lang&gt;_INCLUDE_PATH.  You may also set any other variables
      listed above, but these two are required.  This will circumvent
      autodetection entirely.
</literallayout>
    <para>When configuration is successful, MPI_&lt;lang&gt;_COMPILER will be set to the compiler wrapper for &lt;lang&gt;, if it was found.  MPI_&lt;lang&gt;_FOUND and other variables above will be set if any MPI implementation was found for &lt;lang&gt;, regardless of whether a compiler was found.
</para><para>When using MPIEXEC to execute MPI applications, you should typically use all of the MPIEXEC flags as follows:
</para><literallayout>   ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} PROCS
     ${MPIEXEC_PREFLAGS} EXECUTABLE ${MPIEXEC_POSTFLAGS} ARGS
</literallayout>
    <para>where PROCS is the number of processors on which to execute the program, EXECUTABLE is the MPI program, and ARGS are the arguments to pass to the MPI program.
</para><para>=== Backward Compatibility ===
</para><para>For backward compatibility with older versions of FindMPI, these variables are set, but deprecated:
</para><literallayout>   MPI_FOUND           MPI_COMPILER        MPI_LIBRARY
   MPI_COMPILE_FLAGS   MPI_INCLUDE_PATH    MPI_EXTRA_LIBRARY
   MPI_LINK_FLAGS      MPI_LIBRARIES
</literallayout>
    <para>In new projects, please use the MPI_&lt;lang&gt;_XXX equivalents.</para>
    <para id="module_FindMatlab"><sect2><title>FindMatlab</title></sect2> this module looks for Matlab</para>

    <para>Defines:
</para><literallayout>  MATLAB_INCLUDE_DIR: include path for mex.h, engine.h
  MATLAB_LIBRARIES:   required libraries: libmex, etc
  MATLAB_MEX_LIBRARY: path to libmex.lib
  MATLAB_MX_LIBRARY:  path to libmx.lib
  MATLAB_ENG_LIBRARY: path to libeng.lib
</literallayout>
    
    <para id="module_FindMotif"><sect2><title>FindMotif</title></sect2> Try to find Motif (or lesstif)</para>

    <para>Once done this will define:
</para><literallayout>  MOTIF_FOUND        - system has MOTIF
  MOTIF_INCLUDE_DIR  - include paths to use Motif
  MOTIF_LIBRARIES    - Link these to use Motif
</literallayout>
    
    <para id="module_FindOpenAL"><sect2><title>FindOpenAL</title></sect2>  </para>

    <para>Locate OpenAL This module defines OPENAL_LIBRARY OPENAL_FOUND, if false, do not try to link to OpenAL  OPENAL_INCLUDE_DIR, where to find the headers
</para><para>$OPENALDIR is an environment variable that would correspond to the ./configure --prefix=$OPENALDIR used in building OpenAL.
</para><para>Created by Eric Wing. This was influenced by the FindSDL.cmake module.</para>
    <para id="module_FindOpenGL"><sect2><title>FindOpenGL</title></sect2> Try to find OpenGL</para>

    <para>Once done this will define
</para><literallayout>  
  OPENGL_FOUND        - system has OpenGL
  OPENGL_XMESA_FOUND  - system has XMESA
  OPENGL_GLU_FOUND    - system has GLU
  OPENGL_INCLUDE_DIR  - the GL include directory
  OPENGL_LIBRARIES    - Link these to use OpenGL and GLU
   
</literallayout>
    <para>If you want to use just GL you can use these values
</para><literallayout>  OPENGL_gl_LIBRARY   - Path to OpenGL Library
  OPENGL_glu_LIBRARY  - Path to GLU Library
  
</literallayout>
    <para>On OSX default to using the framework version of opengl People will have to change the cache values of OPENGL_glu_LIBRARY  and OPENGL_gl_LIBRARY to use OpenGL with X11 on OSX</para>
    <para id="module_FindOpenMP"><sect2><title>FindOpenMP</title></sect2> Finds OpenMP support</para>

    <para>This module can be used to detect OpenMP support in a compiler. If the compiler supports OpenMP, the flags required to compile with openmp support are set.
</para><para>The following variables are set:
</para><literallayout>   OpenMP_C_FLAGS - flags to add to the C compiler for OpenMP support
   OpenMP_CXX_FLAGS - flags to add to the CXX compiler for OpenMP support
   OPENMP_FOUND - true if openmp is detected
</literallayout>
    <para>
</para><para>Supported compilers can be found at <ulink url="http://openmp.org/wp/openmp-compilers/" /></para>
    <para id="module_FindOpenSSL"><sect2><title>FindOpenSSL</title></sect2> Try to find the OpenSSL encryption library</para>

    <para>Once done this will define
</para><literallayout>  OPENSSL_ROOT_DIR - Set this variable to the root installation of OpenSSL
</literallayout>
    <para>
</para><para>Read-Only variables:
</para><literallayout>  OPENSSL_FOUND - system has the OpenSSL library
  OPENSSL_INCLUDE_DIR - the OpenSSL include directory
  OPENSSL_LIBRARIES - The libraries needed to use OpenSSL
  OPENSSL_VERSION - This is set to $major.$minor.$revision$path (eg. 0.9.8s)
</literallayout>
    
    <para id="module_FindOpenSceneGraph"><sect2><title>FindOpenSceneGraph</title></sect2> Find OpenSceneGraph</para>

    <para>This module searches for the OpenSceneGraph core "osg" library as well as OpenThreads, and whatever additional COMPONENTS (nodekits) that you specify.
</para><literallayout>    See <ulink url="http://www.openscenegraph.org" />
</literallayout>
    <para>
</para><para>NOTE: To use this module effectively you must either require CMake &gt;= 2.6.3 with cmake_minimum_required(VERSION 2.6.3) or download and place FindOpenThreads.cmake, Findosg_functions.cmake, Findosg.cmake, and Find&lt;etc&gt;.cmake files into your CMAKE_MODULE_PATH.
</para><para>==================================
</para><para>This module accepts the following variables (note mixed case)
</para><literallayout>    OpenSceneGraph_DEBUG - Enable debugging output
</literallayout>
    <para>
</para><literallayout>    OpenSceneGraph_MARK_AS_ADVANCED - Mark cache variables as advanced 
                                      automatically
</literallayout>
    <para>
</para><para>The following environment variables are also respected for finding the OSG and it's various components.  CMAKE_PREFIX_PATH can also be used for this (see find_library() CMake documentation).
</para><literallayout>    &lt;MODULE&gt;_DIR (where MODULE is of the form "OSGVOLUME" and there is a FindosgVolume.cmake file)
    OSG_DIR
    OSGDIR
    OSG_ROOT
</literallayout>
    <para>
</para><para>This module defines the following output variables:
</para><literallayout>    OPENSCENEGRAPH_FOUND - Was the OSG and all of the specified components found?
</literallayout>
    <para>
</para><literallayout>    OPENSCENEGRAPH_VERSION - The version of the OSG which was found
</literallayout>
    <para>
</para><literallayout>    OPENSCENEGRAPH_INCLUDE_DIRS - Where to find the headers
</literallayout>
    <para>
</para><literallayout>    OPENSCENEGRAPH_LIBRARIES - The OSG libraries
</literallayout>
    <para>
</para><para>================================== Example Usage:
</para><literallayout>  find_package(OpenSceneGraph 2.0.0 REQUIRED osgDB osgUtil)
      # libOpenThreads &amp; libosg automatically searched
  include_directories(${OPENSCENEGRAPH_INCLUDE_DIRS})
</literallayout>
    <para>
</para><literallayout>  add_executable(foo foo.cc)
  target_link_libraries(foo ${OPENSCENEGRAPH_LIBRARIES})
</literallayout>
    <para>
</para>
    <para id="module_FindOpenThreads"><sect2><title>FindOpenThreads</title></sect2>  </para>

    <para>OpenThreads is a C++ based threading library. Its largest userbase  seems to OpenSceneGraph so you might notice I accept OSGDIR as an environment path. I consider this part of the Findosg* suite used to find OpenSceneGraph  components. Each component is separate and you must opt in to each module.
</para><para>Locate OpenThreads This module defines OPENTHREADS_LIBRARY OPENTHREADS_FOUND, if false, do not try to link to OpenThreads OPENTHREADS_INCLUDE_DIR, where to find the headers
</para><para>$OPENTHREADS_DIR is an environment variable that would correspond to the ./configure --prefix=$OPENTHREADS_DIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindPHP4"><sect2><title>FindPHP4</title></sect2> Find PHP4</para>

    <para>This module finds if PHP4 is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  PHP4_INCLUDE_PATH       = path to where php.h can be found
  PHP4_EXECUTABLE         = full path to the php4 binary
</literallayout>
    <para>
</para>
    <para id="module_FindPNG"><sect2><title>FindPNG</title></sect2> Find the native PNG includes and library</para>

    <para>
</para><para>This module searches libpng, the library for working with PNG images.
</para><para>It defines the following variables
</para><literallayout>  PNG_INCLUDE_DIRS, where to find png.h, etc.
  PNG_LIBRARIES, the libraries to link against to use PNG.
  PNG_DEFINITIONS - You should add_definitons(${PNG_DEFINITIONS}) before compiling code that includes png library files.
  PNG_FOUND, If false, do not try to use PNG.
  PNG_VERSION_STRING - the version of the PNG library found (since CMake 2.8.8)
</literallayout>
    <para>Also defined, but not for general use are
</para><literallayout>  PNG_LIBRARY, where to find the PNG library.
</literallayout>
    <para>For backward compatiblity the variable PNG_INCLUDE_DIR is also set. It has the same value as PNG_INCLUDE_DIRS.
</para><para>Since PNG depends on the ZLib compression library, none of the above will be defined unless ZLib can be found.</para>
    <para id="module_FindPackageHandleStandardArgs"><sect2><title>FindPackageHandleStandardArgs</title></sect2>  </para>

    <para>FIND_PACKAGE_HANDLE_STANDARD_ARGS(&lt;name&gt; ... )
</para><para>This function is intended to be used in FindXXX.cmake modules files. It handles the REQUIRED, QUIET and version-related arguments to FIND_PACKAGE(). It also sets the &lt;UPPERCASED_NAME&gt;_FOUND variable. The package is considered found if all variables &lt;var1&gt;... listed contain valid results, e.g. valid filepaths.
</para><para>There are two modes of this function. The first argument in both modes is the name of the Find-module where it is called (in original casing).
</para><para>The first simple mode looks like this:
</para><literallayout>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(&lt;name&gt; (DEFAULT_MSG|"Custom failure message") &lt;var1&gt;...&lt;varN&gt; )
</literallayout>
    <para>If the variables &lt;var1&gt; to &lt;varN&gt; are all valid, then &lt;UPPERCASED_NAME&gt;_FOUND will be set to TRUE. If DEFAULT_MSG is given as second argument, then the function will generate itself useful success and error messages. You can also supply a custom error message for the failure case. This is not recommended.
</para><para>The second mode is more powerful and also supports version checking:
</para><literallayout>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME [REQUIRED_VARS &lt;var1&gt;...&lt;varN&gt;]
                                           [VERSION_VAR   &lt;versionvar&gt;]
                                           [HANDLE_COMPONENTS]
                                           [CONFIG_MODE]
                                           [FAIL_MESSAGE "Custom failure message"] )
</literallayout>
    <para>
</para><para>As above, if &lt;var1&gt; through &lt;varN&gt; are all valid, &lt;UPPERCASED_NAME&gt;_FOUND will be set to TRUE. After REQUIRED_VARS the variables which are required for this package are listed. Following VERSION_VAR the name of the variable can be specified which holds the version of the package which has been found. If this is done, this version will be checked against the (potentially) specified required version used in the find_package() call. The EXACT keyword is also handled. The default messages include information about the required version and the version which has been actually found, both if the version is ok or not. If the package supports components, use the HANDLE_COMPONENTS option to enable handling them. In this case, find_package_handle_standard_args() will report which components have been found and which are missing, and the &lt;NAME&gt;_FOUND variable will be set to FALSE if any of the required components (i.e. not the ones listed after OPTIONAL_COMPONENTS) are missing. Use the option CONFIG_MODE if your FindXXX.cmake module is a wrapper for a find_package(... NO_MODULE) call.  In this case VERSION_VAR will be set to &lt;NAME&gt;_VERSION and the macro will automatically check whether the Config module was found. Via FAIL_MESSAGE a custom failure message can be specified, if this is not used, the default message will be displayed.
</para><para>Example for mode 1:
</para><literallayout>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2  DEFAULT_MSG  LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
</literallayout>
    <para>
</para><para>LibXml2 is considered to be found, if both LIBXML2_LIBRARY and LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE. If it is not found and REQUIRED was used, it fails with FATAL_ERROR, independent whether QUIET was used or not. If it is found, success will be reported, including the content of &lt;var1&gt;. On repeated Cmake runs, the same message won't be printed again.
</para><para>Example for mode 2:
</para><literallayout>    FIND_PACKAGE_HANDLE_STANDARD_ARGS(BISON  REQUIRED_VARS BISON_EXECUTABLE
                                             VERSION_VAR BISON_VERSION)
</literallayout>
    <para>In this case, BISON is considered to be found if the variable(s) listed after REQUIRED_VAR are all valid, i.e. BISON_EXECUTABLE in this case. Also the version of BISON will be checked by using the version contained in BISON_VERSION. Since no FAIL_MESSAGE is given, the default messages will be printed.
</para><para>Another example for mode 2:
</para><literallayout>    FIND_PACKAGE(Automoc4 QUIET NO_MODULE HINTS /opt/automoc4)
    FIND_PACKAGE_HANDLE_STANDARD_ARGS(Automoc4  CONFIG_MODE)
</literallayout>
    <para>In this case, FindAutmoc4.cmake wraps a call to FIND_PACKAGE(Automoc4 NO_MODULE) and adds an additional search directory for automoc4. The following FIND_PACKAGE_HANDLE_STANDARD_ARGS() call produces a proper success/error message.</para>
    <para id="module_FindPackageMessage"><sect2><title>FindPackageMessage</title></sect2>  </para>

    <para>FIND_PACKAGE_MESSAGE(&lt;name&gt; "message for user" "find result details")
</para><para>This macro is intended to be used in FindXXX.cmake modules files. It will print a message once for each unique find result. This is useful for telling the user where a package was found. The first argument specifies the name (XXX) of the package. The second argument specifies the message to display. The third argument lists details about the find result so that if they change the message will be displayed again. The macro also obeys the QUIET argument to the find_package command.
</para><para>Example:
</para><literallayout>  IF(X11_FOUND)
    FIND_PACKAGE_MESSAGE(X11 "Found X11: ${X11_X11_LIB}"
      "[${X11_X11_LIB}][${X11_INCLUDE_DIR}]")
  ELSE(X11_FOUND)
   ...
  ENDIF(X11_FOUND)
</literallayout>
    
    <para id="module_FindPerl"><sect2><title>FindPerl</title></sect2> Find perl</para>

    <para>this module looks for Perl
</para><literallayout>  PERL_EXECUTABLE     - the full path to perl
  PERL_FOUND          - If false, don't attempt to use perl.
  PERL_VERSION_STRING - version of perl found (since CMake 2.8.8)
</literallayout>
    
    <para id="module_FindPerlLibs"><sect2><title>FindPerlLibs</title></sect2> Find Perl libraries</para>

    <para>This module finds if PERL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  PERLLIBS_FOUND    = True if perl.h &amp; libperl were found
  PERL_INCLUDE_PATH = path to where perl.h is found
  PERL_LIBRARY      = path to libperl
  PERL_EXECUTABLE   = full path to the perl binary
</literallayout>
    <para>
</para><para>The minimum required version of Perl can be specified using the standard syntax, e.g. FIND_PACKAGE(PerlLibs 6.0)
</para><literallayout>  The following variables are also available if needed
  (introduced after CMake 2.6.4)
</literallayout>
    <para>
</para><literallayout>  PERL_SITESEARCH    = path to the sitesearch install dir
  PERL_SITELIB       = path to the sitelib install directory
  PERL_VENDORARCH    = path to the vendor arch install directory
  PERL_VENDORLIB     = path to the vendor lib install directory
  PERL_ARCHLIB       = path to the arch lib install directory
  PERL_PRIVLIB       = path to the priv lib install directory
  PERL_EXTRA_C_FLAGS = Compilation flags used to build perl
</literallayout>
    <para>
</para>
    <para id="module_FindPhysFS"><sect2><title>FindPhysFS</title></sect2>  </para>

    <para>Locate PhysFS library This module defines PHYSFS_LIBRARY, the name of the library to link against PHYSFS_FOUND, if false, do not try to link to PHYSFS PHYSFS_INCLUDE_DIR, where to find physfs.h
</para><para>$PHYSFSDIR is an environment variable that would correspond to the ./configure --prefix=$PHYSFSDIR used in building PHYSFS.
</para><para>Created by Eric Wing. </para>
    <para id="module_FindPike"><sect2><title>FindPike</title></sect2> Find Pike</para>

    <para>This module finds if PIKE is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  PIKE_INCLUDE_PATH       = path to where program.h is found
  PIKE_EXECUTABLE         = full path to the pike binary
</literallayout>
    <para>
</para>
    <para id="module_FindPkgConfig"><sect2><title>FindPkgConfig</title></sect2> a pkg-config module for CMake</para>

    <para>
</para><para>Usage:
</para><literallayout>   pkg_check_modules(&lt;PREFIX&gt; [REQUIRED] [QUIET] &lt;MODULE&gt; [&lt;MODULE&gt;]*)
     checks for all the given modules
</literallayout>
    <para>
</para><literallayout>   pkg_search_module(&lt;PREFIX&gt; [REQUIRED] [QUIET] &lt;MODULE&gt; [&lt;MODULE&gt;]*)
     checks for given modules and uses the first working one
</literallayout>
    <para>
</para><para>When the 'REQUIRED' argument was set, macros will fail with an error when module(s) could not be found
</para><para>When the 'QUIET' argument is set, no status messages will be printed.
</para><para>It sets the following variables:
</para><literallayout>   PKG_CONFIG_FOUND          ... true if pkg-config works on the system
   PKG_CONFIG_EXECUTABLE     ... pathname of the pkg-config program
   PKG_CONFIG_VERSION_STRING ... the version of the pkg-config program found
                                 (since CMake 2.8.8)
   PKG_CONFIG_FOUND          ... if pkg-config executable was found
</literallayout>
    <para>
</para><para>For the following variables two sets of values exist; first one is the common one and has the given PREFIX. The second set contains flags which are given out when pkgconfig was called with the '--static' option.
</para><literallayout>   &lt;XPREFIX&gt;_FOUND          ... set to 1 if module(s) exist
   &lt;XPREFIX&gt;_LIBRARIES      ... only the libraries (w/o the '-l')
   &lt;XPREFIX&gt;_LIBRARY_DIRS   ... the paths of the libraries (w/o the '-L')
   &lt;XPREFIX&gt;_LDFLAGS        ... all required linker flags
   &lt;XPREFIX&gt;_LDFLAGS_OTHER  ... all other linker flags
   &lt;XPREFIX&gt;_INCLUDE_DIRS   ... the '-I' preprocessor flags (w/o the '-I')
   &lt;XPREFIX&gt;_CFLAGS         ... all required cflags
   &lt;XPREFIX&gt;_CFLAGS_OTHER   ... the other compiler flags
</literallayout>
    <para>
</para><literallayout>   &lt;XPREFIX&gt; = &lt;PREFIX&gt;        for common case
   &lt;XPREFIX&gt; = &lt;PREFIX&gt;_STATIC for static linking
</literallayout>
    <para>
</para><para>There are some special variables whose prefix depends on the count of given modules. When there is only one module, &lt;PREFIX&gt; stays unchanged. When there are multiple modules, the prefix will be changed to &lt;PREFIX&gt;_&lt;MODNAME&gt;:
</para><literallayout>   &lt;XPREFIX&gt;_VERSION    ... version of the module
   &lt;XPREFIX&gt;_PREFIX     ... prefix-directory of the module
   &lt;XPREFIX&gt;_INCLUDEDIR ... include-dir of the module
   &lt;XPREFIX&gt;_LIBDIR     ... lib-dir of the module
</literallayout>
    <para>
</para><literallayout>   &lt;XPREFIX&gt; = &lt;PREFIX&gt;  when |MODULES| == 1, else
   &lt;XPREFIX&gt; = &lt;PREFIX&gt;_&lt;MODNAME&gt;
</literallayout>
    <para>
</para><para>A &lt;MODULE&gt; parameter can have the following formats:
</para><literallayout>   {MODNAME}            ... matches any version
   {MODNAME}&gt;={VERSION} ... at least version &lt;VERSION&gt; is required
   {MODNAME}={VERSION}  ... exactly version &lt;VERSION&gt; is required
   {MODNAME}&lt;={VERSION} ... modules must not be newer than &lt;VERSION&gt;
</literallayout>
    <para>
</para><para>Examples
</para><literallayout>   pkg_check_modules (GLIB2   glib-2.0)
</literallayout>
    <para>
</para><literallayout>   pkg_check_modules (GLIB2   glib-2.0&gt;=2.10)
     requires at least version 2.10 of glib2 and defines e.g.
       GLIB2_VERSION=2.10.3
</literallayout>
    <para>
</para><literallayout>   pkg_check_modules (FOO     glib-2.0&gt;=2.10 gtk+-2.0)
     requires both glib2 and gtk2, and defines e.g.
       FOO_glib-2.0_VERSION=2.10.3
       FOO_gtk+-2.0_VERSION=2.8.20
</literallayout>
    <para>
</para><literallayout>   pkg_check_modules (XRENDER REQUIRED xrender)
     defines e.g.:
       XRENDER_LIBRARIES=Xrender;X11
       XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp
</literallayout>
    <para>
</para><literallayout>   pkg_search_module (BAR     libxml-2.0 libxml2 libxml&gt;=2)
</literallayout>
    
    <para id="module_FindPostgreSQL"><sect2><title>FindPostgreSQL</title></sect2> Find the PostgreSQL installation.</para>

    <para>In Windows, we make the assumption that, if the PostgreSQL files are installed, the default directory will be C:\Program Files\PostgreSQL.
</para><para>This module defines
</para><literallayout>  PostgreSQL_LIBRARIES - the PostgreSQL libraries needed for linking
  PostgreSQL_INCLUDE_DIRS - the directories of the PostgreSQL headers
  PostgreSQL_VERSION_STRING - the version of PostgreSQL found (since CMake 2.8.8)
</literallayout>
    
    <para id="module_FindProducer"><sect2><title>FindProducer</title></sect2>  </para>

    <para>Though Producer isn't directly part of OpenSceneGraph, its primary user is OSG so I consider this part of the Findosg* suite used to find  OpenSceneGraph components. You'll notice that I accept OSGDIR as an environment path.
</para><para>Each component is separate and you must opt in to each module. You must  also opt into OpenGL (and OpenThreads?) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate Producer This module defines PRODUCER_LIBRARY PRODUCER_FOUND, if false, do not try to link to Producer PRODUCER_INCLUDE_DIR, where to find the headers
</para><para>$PRODUCER_DIR is an environment variable that would correspond to the ./configure --prefix=$PRODUCER_DIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindProtobuf"><sect2><title>FindProtobuf</title></sect2>  </para>

    <para>Locate and configure the Google Protocol Buffers library.
</para><para>The following variables can be set and are optional:
</para><literallayout>   PROTOBUF_SRC_ROOT_FOLDER - When compiling with MSVC, if this cache variable is set
                              the protobuf-default VS project build locations
                              (vsprojects/Debug &amp; vsprojects/Release) will be searched
                              for libraries and binaries.
</literallayout>
    <para>
</para><literallayout>   PROTOBUF_IMPORT_DIRS     - List of additional directories to be searched for
                              imported .proto files. (New in CMake 2.8.8)
</literallayout>
    <para>
</para><para>Defines the following variables:
</para><literallayout>   PROTOBUF_FOUND - Found the Google Protocol Buffers library (libprotobuf &amp; header files)
   PROTOBUF_INCLUDE_DIRS - Include directories for Google Protocol Buffers
   PROTOBUF_LIBRARIES - The protobuf libraries
</literallayout>
    <para>[New in CMake 2.8.5]
</para><literallayout>   PROTOBUF_PROTOC_LIBRARIES - The protoc libraries
   PROTOBUF_LITE_LIBRARIES - The protobuf-lite libraries
</literallayout>
    <para>
</para><para>The following cache variables are also available to set or use:
</para><literallayout>   PROTOBUF_LIBRARY - The protobuf library
   PROTOBUF_PROTOC_LIBRARY   - The protoc library
   PROTOBUF_INCLUDE_DIR - The include directory for protocol buffers
   PROTOBUF_PROTOC_EXECUTABLE - The protoc compiler
</literallayout>
    <para>[New in CMake 2.8.5]
</para><literallayout>   PROTOBUF_LIBRARY_DEBUG - The protobuf library (debug)
   PROTOBUF_PROTOC_LIBRARY_DEBUG   - The protoc library (debug)
   PROTOBUF_LITE_LIBRARY - The protobuf lite library
   PROTOBUF_LITE_LIBRARY_DEBUG - The protobuf lite library (debug)
</literallayout>
    <para>
</para><literallayout>  ====================================================================
  Example:
</literallayout>
    <para>
</para><literallayout>   find_package(Protobuf REQUIRED)
   include_directories(${PROTOBUF_INCLUDE_DIRS})
</literallayout>
    <para>
</para><literallayout>   include_directories(${CMAKE_CURRENT_BINARY_DIR})
   PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS foo.proto)
   add_executable(bar bar.cc ${PROTO_SRCS} ${PROTO_HDRS})
   target_link_libraries(bar ${PROTOBUF_LIBRARIES})
</literallayout>
    <para>
</para><para>NOTE: You may need to link against pthreads, depending
</para><literallayout>       on the platform.
</literallayout>
    <para>
</para><para>NOTE: The PROTOBUF_GENERATE_CPP macro &amp; add_executable() or add_library()
</para><literallayout>       calls only work properly within the same directory.
</literallayout>
    <para>
</para><literallayout>  ====================================================================
</literallayout>
    <para>
</para><para>PROTOBUF_GENERATE_CPP (public function)
</para><literallayout>   SRCS = Variable to define with autogenerated
          source files
   HDRS = Variable to define with autogenerated
          header files
   ARGN = proto files
</literallayout>
    <para>
</para><literallayout>  ====================================================================
</literallayout>
    
    <para id="module_FindPythonInterp"><sect2><title>FindPythonInterp</title></sect2> Find python interpreter</para>

    <para>This module finds if Python interpreter is installed and determines where the executables are. This code sets the following variables:
</para><literallayout>  PYTHONINTERP_FOUND         - Was the Python executable found
  PYTHON_EXECUTABLE          - path to the Python interpreter
</literallayout>
    <para>
</para><literallayout>  PYTHON_VERSION_STRING      - Python version found e.g. 2.5.2
  PYTHON_VERSION_MAJOR       - Python major version found e.g. 2
  PYTHON_VERSION_MINOR       - Python minor version found e.g. 5
  PYTHON_VERSION_PATCH       - Python patch version found e.g. 2
</literallayout>
    <para>
</para><para>The Python_ADDITIONAL_VERSIONS variable can be used to specify a list of version numbers that should be taken into account when searching for Python. You need to set this variable before calling find_package(PythonInterp).</para>
    <para id="module_FindPythonLibs"><sect2><title>FindPythonLibs</title></sect2> Find python libraries</para>

    <para>This module finds if Python is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  PYTHONLIBS_FOUND           - have the Python libs been found
  PYTHON_LIBRARIES           - path to the python library
  PYTHON_INCLUDE_PATH        - path to where Python.h is found (deprecated)
  PYTHON_INCLUDE_DIRS        - path to where Python.h is found
  PYTHON_DEBUG_LIBRARIES     - path to the debug library (deprecated)
  PYTHONLIBS_VERSION_STRING  - version of the Python libs found (since CMake 2.8.8)
</literallayout>
    <para>
</para><para>The Python_ADDITIONAL_VERSIONS variable can be used to specify a list of version numbers that should be taken into account when searching for Python. You need to set this variable before calling find_package(PythonLibs).</para>
    <para id="module_FindQt"><sect2><title>FindQt</title></sect2> Searches for all installed versions of QT.</para>

    <para>This should only be used if your project can work with multiple versions of QT.  If not, you should just directly use FindQt4 or FindQt3. If multiple versions of QT are found on the machine, then The user must set the option DESIRED_QT_VERSION to the version they want to use.  If only one version of qt is found on the machine, then the DESIRED_QT_VERSION is set to that version and the  matching FindQt3 or FindQt4 module is included. Once the user sets DESIRED_QT_VERSION, then the FindQt3 or FindQt4 module is included.
</para><literallayout>  QT_REQUIRED if this is set to TRUE then if CMake can 
              not find QT4 or QT3 an error is raised 
              and a message is sent to the user.
</literallayout>
    <para>
</para><literallayout>  DESIRED_QT_VERSION OPTION is created
  QT4_INSTALLED is set to TRUE if qt4 is found.
  QT3_INSTALLED is set to TRUE if qt3 is found.
</literallayout>
    
    <para id="module_FindQt3"><sect2><title>FindQt3</title></sect2> Locate Qt include paths and libraries</para>

    <para>This module defines:
</para><literallayout>  QT_INCLUDE_DIR    - where to find qt.h, etc.
  QT_LIBRARIES      - the libraries to link against to use Qt.
  QT_DEFINITIONS    - definitions to use when
                      compiling code that uses Qt.
  QT_FOUND          - If false, don't try to use Qt.
  QT_VERSION_STRING - the version of Qt found
</literallayout>
    <para>
</para><para>If you need the multithreaded version of Qt, set QT_MT_REQUIRED to TRUE
</para><para>Also defined, but not for general use are:
</para><literallayout>  QT_MOC_EXECUTABLE, where to find the moc tool.
  QT_UIC_EXECUTABLE, where to find the uic tool.
  QT_QT_LIBRARY, where to find the Qt library.
  QT_QTMAIN_LIBRARY, where to find the qtmain
   library. This is only required by Qt3 on Windows.
</literallayout>
    
    <para id="module_FindQt4"><sect2><title>FindQt4</title></sect2> Find QT 4</para>

    <para>This module can be used to find Qt4. The most important issue is that the Qt4 qmake is available via the system path. This qmake is then used to detect basically everything else. This module defines a number of key variables and macros.  The variable QT_USE_FILE is set which is the path to a CMake file that can be included  to compile Qt 4 applications and libraries.  It sets up the compilation environment for include directories, preprocessor defines and populates a QT_LIBRARIES variable.
</para><para>Typical usage could be something like:
</para><literallayout>   find_package(Qt4 4.4.3 REQUIRED QtCore QtGui QtXml)
   include(${QT_USE_FILE})
   add_executable(myexe main.cpp)
   target_link_libraries(myexe ${QT_LIBRARIES})
</literallayout>
    <para>
</para><para>The minimum required version can be specified using the standard find_package()-syntax (see example above).  For compatibility with older versions of FindQt4.cmake it is also possible to set the variable QT_MIN_VERSION to the minimum required version of Qt4 before the  find_package(Qt4) command.  If both are used, the version used in the find_package() command overrides the one from QT_MIN_VERSION.
</para><para>When using the components argument, QT_USE_QT* variables are automatically set for the QT_USE_FILE to pick up.  If one wishes to manually set them, the available ones to set include:
</para><literallayout>                    QT_DONT_USE_QTCORE
                    QT_DONT_USE_QTGUI
                    QT_USE_QT3SUPPORT
                    QT_USE_QTASSISTANT
                    QT_USE_QAXCONTAINER
                    QT_USE_QAXSERVER
                    QT_USE_QTDESIGNER
                    QT_USE_QTMOTIF
                    QT_USE_QTMAIN
                    QT_USE_QTMULTIMEDIA
                    QT_USE_QTNETWORK
                    QT_USE_QTNSPLUGIN
                    QT_USE_QTOPENGL
                    QT_USE_QTSQL
                    QT_USE_QTXML
                    QT_USE_QTSVG
                    QT_USE_QTTEST
                    QT_USE_QTUITOOLS
                    QT_USE_QTDBUS
                    QT_USE_QTSCRIPT
                    QT_USE_QTASSISTANTCLIENT
                    QT_USE_QTHELP
                    QT_USE_QTWEBKIT
                    QT_USE_QTXMLPATTERNS
                    QT_USE_PHONON
                    QT_USE_QTSCRIPTTOOLS
                    QT_USE_QTDECLARATIVE
</literallayout>
    <para>
</para><literallayout>  QT_USE_IMPORTED_TARGETS 
        If this variable is set to TRUE, FindQt4.cmake will create imported
        library targets for the various Qt libraries and set the 
        library variables like QT_QTCORE_LIBRARY to point at these imported
        targets instead of the library file on disk. This provides much better 
        handling of the release and debug versions of the Qt libraries and is 
       also always backwards compatible, except for the case that dependencies
       of libraries are exported, these will then also list the names of the 
       imported targets as dependency and not the file location on disk. This
       is much more flexible, but requires that FindQt4.cmake is executed before
       such an exported dependency file is processed.
</literallayout>
    <para>
</para><para>There are also some files that need processing by some Qt tools such as moc and uic.  Listed below are macros that may be used to process those files.
</para><literallayout>  
  macro QT4_WRAP_CPP(outfiles inputfile ... OPTIONS ...)
        create moc code from a list of files containing Qt class with
        the Q_OBJECT declaration.  Per-direcotry preprocessor definitions 
        are also added.  Options may be given to moc, such as those found
        when executing "moc -help".  
</literallayout>
    <para>
</para><literallayout>  macro QT4_WRAP_UI(outfiles inputfile ... OPTIONS ...)
        create code from a list of Qt designer ui files.
        Options may be given to uic, such as those found
        when executing "uic -help"
</literallayout>
    <para>
</para><literallayout>  macro QT4_ADD_RESOURCES(outfiles inputfile ... OPTIONS ...)
        create code from a list of Qt resource files.
        Options may be given to rcc, such as those found
        when executing "rcc -help"
</literallayout>
    <para>
</para><literallayout>  macro QT4_GENERATE_MOC(inputfile outputfile )
        creates a rule to run moc on infile and create outfile.
        Use this if for some reason QT4_WRAP_CPP() isn't appropriate, e.g.
        because you need a custom filename for the moc file or something similar.
</literallayout>
    <para>
</para><literallayout>  macro QT4_AUTOMOC(sourcefile1 sourcefile2 ... )
        This macro is still experimental.
        It can be used to have moc automatically handled.
        So if you have the files foo.h and foo.cpp, and in foo.h a 
        a class uses the Q_OBJECT macro, moc has to run on it. If you don't
        want to use QT4_WRAP_CPP() (which is reliable and mature), you can insert
        #include "foo.moc"
        in foo.cpp and then give foo.cpp as argument to QT4_AUTOMOC(). This will the
        scan all listed files at cmake-time for such included moc files and if it finds
        them cause a rule to be generated to run moc at build time on the 
        accompanying header file foo.h.
        If a source file has the SKIP_AUTOMOC property set it will be ignored by this macro.
</literallayout>
    <para>
</para><literallayout>  macro QT4_ADD_DBUS_INTERFACE(outfiles interface basename)
        create a the interface header and implementation files with the 
        given basename from the given interface xml file and add it to 
        the list of sources
</literallayout>
    <para>
</para><literallayout>  macro QT4_ADD_DBUS_INTERFACES(outfiles inputfile ... )
        create the interface header and implementation files 
        for all listed interface xml files
        the name will be automatically determined from the name of the xml file
</literallayout>
    <para>
</para><literallayout>  macro QT4_ADD_DBUS_ADAPTOR(outfiles xmlfile parentheader parentclassname [basename] [classname])
        create a dbus adaptor (header and implementation file) from the xml file
        describing the interface, and add it to the list of sources. The adaptor
        forwards the calls to a parent class, defined in parentheader and named
        parentclassname. The name of the generated files will be
        &lt;basename&gt;adaptor.{cpp,h} where basename defaults to the basename of the xml file.
        If &lt;classname&gt; is provided, then it will be used as the classname of the
        adaptor itself.
</literallayout>
    <para>
</para><literallayout>  macro QT4_GENERATE_DBUS_INTERFACE( header [interfacename] OPTIONS ...)
        generate the xml interface file from the given header.
        If the optional argument interfacename is omitted, the name of the 
        interface file is constructed from the basename of the header with
        the suffix .xml appended.
        Options may be given to qdbuscpp2xml, such as those found when executing "qdbuscpp2xml --help"
</literallayout>
    <para>
</para><literallayout>  macro QT4_CREATE_TRANSLATION( qm_files directories ... sources ... 
                                ts_files ... OPTIONS ...)
        out: qm_files
        in:  directories sources ts_files
        options: flags to pass to lupdate, such as -extensions to specify
        extensions for a directory scan.
        generates commands to create .ts (vie lupdate) and .qm
        (via lrelease) - files from directories and/or sources. The ts files are 
        created and/or updated in the source tree (unless given with full paths).
        The qm files are generated in the build tree.
        Updating the translations can be done by adding the qm_files
        to the source list of your library/executable, so they are
        always updated, or by adding a custom target to control when
        they get updated/generated.
</literallayout>
    <para>
</para><literallayout>  macro QT4_ADD_TRANSLATION( qm_files ts_files ... )
        out: qm_files
        in:  ts_files
        generates commands to create .qm from .ts - files. The generated
        filenames can be found in qm_files. The ts_files
        must exists and are not updated in any way.
</literallayout>
    <para>
</para><para>
</para><literallayout>  Below is a detailed list of variables that FindQt4.cmake sets.
  QT_FOUND         If false, don't try to use Qt.
  QT4_FOUND        If false, don't try to use Qt 4.
</literallayout>
    <para>
</para><literallayout>  QT_VERSION_MAJOR The major version of Qt found.
  QT_VERSION_MINOR The minor version of Qt found.
  QT_VERSION_PATCH The patch version of Qt found.
</literallayout>
    <para>
</para><literallayout>  QT_EDITION               Set to the edition of Qt (i.e. DesktopLight)
  QT_EDITION_DESKTOPLIGHT  True if QT_EDITION == DesktopLight
  QT_QTCORE_FOUND          True if QtCore was found.
  QT_QTGUI_FOUND           True if QtGui was found.
  QT_QT3SUPPORT_FOUND      True if Qt3Support was found.
  QT_QTASSISTANT_FOUND     True if QtAssistant was found.
  QT_QTASSISTANTCLIENT_FOUND  True if QtAssistantClient was found.
  QT_QAXCONTAINER_FOUND    True if QAxContainer was found (Windows only).
  QT_QAXSERVER_FOUND       True if QAxServer was found (Windows only).
  QT_QTDBUS_FOUND          True if QtDBus was found.
  QT_QTDESIGNER_FOUND      True if QtDesigner was found.
  QT_QTDESIGNERCOMPONENTS  True if QtDesignerComponents was found.
  QT_QTHELP_FOUND          True if QtHelp was found.
  QT_QTMOTIF_FOUND         True if QtMotif was found.
  QT_QTMULTIMEDIA_FOUND    True if QtMultimedia was found (since Qt 4.6.0).
  QT_QTNETWORK_FOUND       True if QtNetwork was found.
  QT_QTNSPLUGIN_FOUND      True if QtNsPlugin was found.
  QT_QTOPENGL_FOUND        True if QtOpenGL was found.
  QT_QTSQL_FOUND           True if QtSql was found.
  QT_QTSVG_FOUND           True if QtSvg was found.
  QT_QTSCRIPT_FOUND        True if QtScript was found.
  QT_QTSCRIPTTOOLS_FOUND   True if QtScriptTools was found.
  QT_QTTEST_FOUND          True if QtTest was found.
  QT_QTUITOOLS_FOUND       True if QtUiTools was found.
  QT_QTWEBKIT_FOUND        True if QtWebKit was found.
  QT_QTXML_FOUND           True if QtXml was found.
  QT_QTXMLPATTERNS_FOUND   True if QtXmlPatterns was found.
  QT_PHONON_FOUND          True if phonon was found.
  QT_QTDECLARATIVE_FOUND   True if QtDeclarative was found.
</literallayout>
    <para>
</para><literallayout>  QT_MAC_USE_COCOA    For Mac OS X, its whether Cocoa or Carbon is used.
                      In general, this should not be used, but its useful
                      when having platform specific code.
</literallayout>
    <para>
</para><literallayout>  QT_DEFINITIONS   Definitions to use when compiling code that uses Qt.
                   You do not need to use this if you include QT_USE_FILE.
                   The QT_USE_FILE will also define QT_DEBUG and QT_NO_DEBUG
                   to fit your current build type.  Those are not contained
                   in QT_DEFINITIONS.
                  
  QT_INCLUDES      List of paths to all include directories of 
                   Qt4 QT_INCLUDE_DIR and QT_QTCORE_INCLUDE_DIR are
                   always in this variable even if NOTFOUND,
                   all other INCLUDE_DIRS are
                   only added if they are found.
                   You do not need to use this if you include QT_USE_FILE.
   
</literallayout>
    <para>
</para><literallayout>  Include directories for the Qt modules are listed here.
  You do not need to use these variables if you include QT_USE_FILE.
</literallayout>
    <para>
</para><literallayout>  QT_INCLUDE_DIR              Path to "include" of Qt4
  QT_QT3SUPPORT_INCLUDE_DIR   Path to "include/Qt3Support" 
  QT_QTASSISTANT_INCLUDE_DIR  Path to "include/QtAssistant" 
  QT_QTASSISTANTCLIENT_INCLUDE_DIR       Path to "include/QtAssistant"
  QT_QAXCONTAINER_INCLUDE_DIR Path to "include/ActiveQt" (Windows only)
  QT_QAXSERVER_INCLUDE_DIR    Path to "include/ActiveQt" (Windows only)
  QT_QTCORE_INCLUDE_DIR       Path to "include/QtCore"         
  QT_QTDBUS_INCLUDE_DIR       Path to "include/QtDBus" 
  QT_QTDESIGNER_INCLUDE_DIR   Path to "include/QtDesigner" 
  QT_QTDESIGNERCOMPONENTS_INCLUDE_DIR   Path to "include/QtDesigner"
  QT_QTGUI_INCLUDE_DIR        Path to "include/QtGui" 
  QT_QTHELP_INCLUDE_DIR       Path to "include/QtHelp"
  QT_QTMOTIF_INCLUDE_DIR      Path to "include/QtMotif" 
  QT_QTMULTIMEDIA_INCLUDE_DIR Path to "include/QtMultimedia" 
  QT_QTNETWORK_INCLUDE_DIR    Path to "include/QtNetwork" 
  QT_QTNSPLUGIN_INCLUDE_DIR   Path to "include/QtNsPlugin" 
  QT_QTOPENGL_INCLUDE_DIR     Path to "include/QtOpenGL" 
  QT_QTSCRIPT_INCLUDE_DIR     Path to "include/QtScript"
  QT_QTSQL_INCLUDE_DIR        Path to "include/QtSql" 
  QT_QTSVG_INCLUDE_DIR        Path to "include/QtSvg"
  QT_QTTEST_INCLUDE_DIR       Path to "include/QtTest"
  QT_QTWEBKIT_INCLUDE_DIR     Path to "include/QtWebKit"
  QT_QTXML_INCLUDE_DIR        Path to "include/QtXml" 
  QT_QTXMLPATTERNS_INCLUDE_DIR  Path to "include/QtXmlPatterns"
  QT_PHONON_INCLUDE_DIR       Path to "include/phonon"
  QT_QTSCRIPTTOOLS_INCLUDE_DIR       Path to "include/QtScriptTools"
  QT_QTDECLARATIVE_INCLUDE_DIR       Path to "include/QtDeclarative"
</literallayout>
    <para>
</para><literallayout>  QT_BINARY_DIR               Path to "bin" of Qt4
  QT_LIBRARY_DIR              Path to "lib" of Qt4
  QT_PLUGINS_DIR              Path to "plugins" for Qt4
  QT_TRANSLATIONS_DIR         Path to "translations" of Qt4
  QT_IMPORTS_DIR              Path to "imports" of Qt4
  QT_DOC_DIR                  Path to "doc" of Qt4
  QT_MKSPECS_DIR              Path to "mkspecs" of Qt4
</literallayout>
    <para>
</para><para>
</para><para>The Qt toolkit may contain both debug and release libraries. In that case, the following library variables will contain both. You do not need to use these variables if you include QT_USE_FILE, and use QT_LIBRARIES.
</para><literallayout>  QT_QT3SUPPORT_LIBRARY            The Qt3Support library
  QT_QTASSISTANT_LIBRARY           The QtAssistant library
  QT_QTASSISTANTCLIENT_LIBRARY     The QtAssistantClient library
  QT_QAXCONTAINER_LIBRARY           The QAxContainer library (Windows only)
  QT_QAXSERVER_LIBRARY                The QAxServer library (Windows only)
  QT_QTCORE_LIBRARY                The QtCore library
  QT_QTDBUS_LIBRARY                The QtDBus library
  QT_QTDESIGNER_LIBRARY            The QtDesigner library
  QT_QTDESIGNERCOMPONENTS_LIBRARY  The QtDesignerComponents library
  QT_QTGUI_LIBRARY                 The QtGui library
  QT_QTHELP_LIBRARY                The QtHelp library
  QT_QTMOTIF_LIBRARY               The QtMotif library
  QT_QTMULTIMEDIA_LIBRARY          The QtMultimedia library
  QT_QTNETWORK_LIBRARY             The QtNetwork library
  QT_QTNSPLUGIN_LIBRARY            The QtNsPLugin library
  QT_QTOPENGL_LIBRARY              The QtOpenGL library
  QT_QTSCRIPT_LIBRARY              The QtScript library
  QT_QTSQL_LIBRARY                 The QtSql library
  QT_QTSVG_LIBRARY                 The QtSvg library
  QT_QTTEST_LIBRARY                The QtTest library
  QT_QTUITOOLS_LIBRARY             The QtUiTools library
  QT_QTWEBKIT_LIBRARY              The QtWebKit library
  QT_QTXML_LIBRARY                 The QtXml library
  QT_QTXMLPATTERNS_LIBRARY         The QtXmlPatterns library
  QT_QTMAIN_LIBRARY                The qtmain library for Windows
  QT_PHONON_LIBRARY                The phonon library
  QT_QTSCRIPTTOOLS_LIBRARY         The QtScriptTools library
  
</literallayout>
    <para>The QtDeclarative library:             QT_QTDECLARATIVE_LIBRARY
</para><para>also defined, but NOT for general use are
</para><literallayout>  QT_MOC_EXECUTABLE                   Where to find the moc tool.
  QT_UIC_EXECUTABLE                   Where to find the uic tool.
  QT_UIC3_EXECUTABLE                  Where to find the uic3 tool.
  QT_RCC_EXECUTABLE                   Where to find the rcc tool
  QT_DBUSCPP2XML_EXECUTABLE           Where to find the qdbuscpp2xml tool.
  QT_DBUSXML2CPP_EXECUTABLE           Where to find the qdbusxml2cpp tool.
  QT_LUPDATE_EXECUTABLE               Where to find the lupdate tool.
  QT_LRELEASE_EXECUTABLE              Where to find the lrelease tool.
  QT_QCOLLECTIONGENERATOR_EXECUTABLE  Where to find the qcollectiongenerator tool.
  QT_DESIGNER_EXECUTABLE              Where to find the Qt designer tool.
  QT_LINGUIST_EXECUTABLE              Where to find the Qt linguist tool.
  
</literallayout>
    <para>
</para><para>These are around for backwards compatibility  they will be set
</para><literallayout>  QT_WRAP_CPP  Set true if QT_MOC_EXECUTABLE is found
  QT_WRAP_UI   Set true if QT_UIC_EXECUTABLE is found
  
</literallayout>
    <para>These variables do _NOT_ have any effect anymore (compared to FindQt.cmake)
</para><literallayout>  QT_MT_REQUIRED         Qt4 is now always multithreaded
  
</literallayout>
    <para>These variables are set to "" Because Qt structure changed  (They make no sense in Qt4)
</para><literallayout>  QT_QT_LIBRARY        Qt-Library is now split
</literallayout>
    
    <para id="module_FindQuickTime"><sect2><title>FindQuickTime</title></sect2>  </para>

    <para>Locate QuickTime This module defines QUICKTIME_LIBRARY QUICKTIME_FOUND, if false, do not try to link to gdal  QUICKTIME_INCLUDE_DIR, where to find the headers
</para><para>$QUICKTIME_DIR is an environment variable that would correspond to the ./configure --prefix=$QUICKTIME_DIR
</para><para>Created by Eric Wing. </para>
    <para id="module_FindRTI"><sect2><title>FindRTI</title></sect2> Try to find M&amp;S HLA RTI libraries</para>

    <para>This module finds if any HLA RTI is installed and locates the standard RTI include files and libraries.
</para><para>RTI is a simulation infrastructure standardized by IEEE and SISO. It has a well defined C++ API that assures that simulation applications are independent on a particular RTI implementation.
</para><literallayout>  <ulink url="http://en.wikipedia.org/wiki/Run-Time_Infrastructure_" />(simulation)
</literallayout>
    <para>
</para><para>This code sets the following variables:
</para><literallayout>  RTI_INCLUDE_DIR = the directory where RTI includes file are found
  RTI_LIBRARIES = The libraries to link against to use RTI
  RTI_DEFINITIONS = -DRTI_USES_STD_FSTREAM
  RTI_FOUND = Set to FALSE if any HLA RTI was not found
</literallayout>
    <para>
</para><para>Report problems to &lt;certi-devel@nongnu.org&gt;</para>
    <para id="module_FindRuby"><sect2><title>FindRuby</title></sect2> Find Ruby</para>

    <para>This module finds if Ruby is installed and determines where the include files and libraries are. Ruby 1.8 and 1.9 are supported.
</para><para>The minimum required version of Ruby can be specified using the standard syntax, e.g. FIND_PACKAGE(Ruby 1.8)
</para><para>It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  RUBY_EXECUTABLE   = full path to the ruby binary
  RUBY_INCLUDE_DIRS = include dirs to be used when using the ruby library
  RUBY_LIBRARY      = full path to the ruby library
  RUBY_VERSION      = the version of ruby which was found, e.g. "1.8.7"
  RUBY_FOUND        = set to true if ruby ws found successfully
</literallayout>
    <para>
</para><literallayout>  RUBY_INCLUDE_PATH = same as RUBY_INCLUDE_DIRS, only provided for compatibility reasons, don't use it
</literallayout>
    
    <para id="module_FindSDL"><sect2><title>FindSDL</title></sect2>  </para>

    <para>Locate SDL library This module defines SDL_LIBRARY, the name of the library to link against SDL_FOUND, if false, do not try to link to SDL SDL_INCLUDE_DIR, where to find SDL.h
</para><para>This module responds to the the flag: SDL_BUILDING_LIBRARY If this is defined, then no SDL_main will be linked in because  only applications need main(). Otherwise, it is assumed you are building an application and this module will attempt to locate and set the the proper link flags as part of the returned SDL_LIBRARY variable.
</para><para>Don't forget to include SDLmain.h and SDLmain.m your project for the  OS X framework based version. (Other versions link to -lSDLmain which this module will try to find on your behalf.) Also for OS X, this  module will automatically add the -framework Cocoa on your behalf.
</para><para>
</para><para>Additional Note: If you see an empty SDL_LIBRARY_TEMP in your configuration and no SDL_LIBRARY, it means CMake did not find your SDL library  (SDL.dll, libsdl.so, SDL.framework, etc).  Set SDL_LIBRARY_TEMP to point to your SDL library, and configure again.  Similarly, if you see an empty SDLMAIN_LIBRARY, you should set this value as appropriate. These values are used to generate the final SDL_LIBRARY variable, but when these values are unset, SDL_LIBRARY does not get created.
</para><para>
</para><para>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL. l.e.galup  9-20-02
</para><para>Modified by Eric Wing.  Added code to assist with automated building by using environmental variables and providing a more controlled/consistent search behavior. Added new modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).  Also corrected the header search path to follow "proper" SDL guidelines. Added a search for SDLmain which is needed by some platforms. Added a search for threads which is needed by some platforms. Added needed compile switches for MinGW.
</para><para>On OSX, this will prefer the Framework version (if found) over others. People will have to manually change the cache values of  SDL_LIBRARY to override this selection or set the CMake environment CMAKE_INCLUDE_PATH to modify the search paths.
</para><para>Note that the header path has changed from SDL/SDL.h to just SDL.h This needed to change because "proper" SDL convention is #include "SDL.h", not &lt;SDL/SDL.h&gt;. This is done for portability reasons because not all systems place things in SDL/ (see FreeBSD).</para>
    <para id="module_FindSDL_image"><sect2><title>FindSDL_image</title></sect2>  </para>

    <para>Locate SDL_image library This module defines SDLIMAGE_LIBRARY, the name of the library to link against SDLIMAGE_FOUND, if false, do not try to link to SDL SDLIMAGE_INCLUDE_DIR, where to find SDL/SDL.h
</para><para>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.
</para><para>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</para>
    <para id="module_FindSDL_mixer"><sect2><title>FindSDL_mixer</title></sect2>  </para>

    <para>Locate SDL_mixer library This module defines SDLMIXER_LIBRARY, the name of the library to link against SDLMIXER_FOUND, if false, do not try to link to SDL SDLMIXER_INCLUDE_DIR, where to find SDL/SDL.h
</para><para>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.
</para><para>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</para>
    <para id="module_FindSDL_net"><sect2><title>FindSDL_net</title></sect2>  </para>

    <para>Locate SDL_net library This module defines SDLNET_LIBRARY, the name of the library to link against SDLNET_FOUND, if false, do not try to link against SDLNET_INCLUDE_DIR, where to find the headers
</para><para>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.
</para><para>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</para>
    <para id="module_FindSDL_sound"><sect2><title>FindSDL_sound</title></sect2>  </para>

    <para>Locates the SDL_sound library</para>
    <para id="module_FindSDL_ttf"><sect2><title>FindSDL_ttf</title></sect2>  </para>

    <para>Locate SDL_ttf library This module defines SDLTTF_LIBRARY, the name of the library to link against SDLTTF_FOUND, if false, do not try to link to SDL SDLTTF_INCLUDE_DIR, where to find SDL/SDL.h
</para><para>$SDLDIR is an environment variable that would correspond to the ./configure --prefix=$SDLDIR used in building SDL.
</para><para>Created by Eric Wing. This was influenced by the FindSDL.cmake  module, but with modifications to recognize OS X frameworks and  additional Unix paths (FreeBSD, etc).</para>
    <para id="module_FindSWIG"><sect2><title>FindSWIG</title></sect2> Find SWIG</para>

    <para>This module finds an installed SWIG.  It sets the following variables:
</para><literallayout>  SWIG_FOUND - set to true if SWIG is found
  SWIG_DIR - the directory where swig is installed
  SWIG_EXECUTABLE - the path to the swig executable
  SWIG_VERSION   - the version number of the swig executable
</literallayout>
    <para>
</para><para>The minimum required version of SWIG can be specified using the standard syntax, e.g. FIND_PACKAGE(SWIG 1.1)
</para><para>All information is collected from the SWIG_EXECUTABLE so the version to be found can be changed from the command line by means of setting SWIG_EXECUTABLE
</para>
    <para id="module_FindSelfPackers"><sect2><title>FindSelfPackers</title></sect2> Find upx</para>

    <para>This module looks for some executable packers (i.e. softwares that compress executables or shared libs into on-the-fly self-extracting executables or shared libs. Examples:
</para><literallayout>  UPX: <ulink url="http://wildsau.idv.uni-linz.ac.at/mfx/upx.html" />
</literallayout>
    
    <para id="module_FindSquish"><sect2><title>FindSquish</title></sect2> -- Typical Use</para>

    <para>
</para><para>This module can be used to find Squish (currently support is aimed at version 3).
</para><literallayout>  SQUISH_FOUND                    If false, don't try to use Squish
</literallayout>
    <para>
</para><literallayout>  SQUISH_INSTALL_DIR              The Squish installation directory (containing bin, lib, etc)
  SQUISH_SERVER_EXECUTABLE        The squishserver executable
  SQUISH_CLIENT_EXECUTABLE        The squishrunner executable
</literallayout>
    <para>
</para><literallayout>  SQUISH_INSTALL_DIR_FOUND        Was the install directory found?
  SQUISH_SERVER_EXECUTABLE_FOUND  Was the server executable found?
  SQUISH_CLIENT_EXECUTABLE_FOUND  Was the client executable found?
</literallayout>
    <para>
</para><para>macro SQUISH_ADD_TEST(testName applicationUnderTest testSuite testCase)
</para><literallayout>  ENABLE_TESTING()
  FIND_PACKAGE(Squish)
  IF (SQUISH_FOUND)
    SQUISH_ADD_TEST(myTestName myApplication testSuiteName testCaseName)
  ENDIF (SQUISH_FOUND)
</literallayout>
    <para>
</para>
    <para id="module_FindSubversion"><sect2><title>FindSubversion</title></sect2> Extract information from a subversion working copy</para>

    <para>The module defines the following variables:
</para><literallayout>  Subversion_SVN_EXECUTABLE - path to svn command line client
  Subversion_VERSION_SVN - version of svn command line client
  Subversion_FOUND - true if the command line client was found
  SUBVERSION_FOUND - same as Subversion_FOUND, set for compatiblity reasons
</literallayout>
    <para>
</para><para>The minimum required version of Subversion can be specified using the standard syntax, e.g. FIND_PACKAGE(Subversion 1.4)
</para><para>If the command line client executable is found two macros are defined:
</para><literallayout>  Subversion_WC_INFO(&lt;dir&gt; &lt;var-prefix&gt;)
  Subversion_WC_LOG(&lt;dir&gt; &lt;var-prefix&gt;)
</literallayout>
    <para>Subversion_WC_INFO extracts information of a subversion working copy at a given location. This macro defines the following variables:
</para><literallayout>  &lt;var-prefix&gt;_WC_URL - url of the repository (at &lt;dir&gt;)
  &lt;var-prefix&gt;_WC_ROOT - root url of the repository
  &lt;var-prefix&gt;_WC_REVISION - current revision
  &lt;var-prefix&gt;_WC_LAST_CHANGED_AUTHOR - author of last commit
  &lt;var-prefix&gt;_WC_LAST_CHANGED_DATE - date of last commit
  &lt;var-prefix&gt;_WC_LAST_CHANGED_REV - revision of last commit
  &lt;var-prefix&gt;_WC_INFO - output of command `svn info &lt;dir&gt;'
</literallayout>
    <para>Subversion_WC_LOG retrieves the log message of the base revision of a subversion working copy at a given location. This macro defines the variable:
</para><literallayout>  &lt;var-prefix&gt;_LAST_CHANGED_LOG - last log of base revision
</literallayout>
    <para>Example usage:
</para><literallayout>  FIND_PACKAGE(Subversion)
  IF(SUBVERSION_FOUND)
    Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project)
    MESSAGE("Current revision is ${Project_WC_REVISION}")
    Subversion_WC_LOG(${PROJECT_SOURCE_DIR} Project)
    MESSAGE("Last changed log is ${Project_LAST_CHANGED_LOG}")
  ENDIF(SUBVERSION_FOUND)
</literallayout>
    
    <para id="module_FindTCL"><sect2><title>FindTCL</title></sect2> TK_INTERNAL_PATH was removed.</para>

    <para>This module finds if Tcl is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  TCL_FOUND              = Tcl was found
  TK_FOUND               = Tk was found
  TCLTK_FOUND            = Tcl and Tk were found
  TCL_LIBRARY            = path to Tcl library (tcl tcl80)
  TCL_INCLUDE_PATH       = path to where tcl.h can be found
  TCL_TCLSH              = path to tclsh binary (tcl tcl80)
  TK_LIBRARY             = path to Tk library (tk tk80 etc)
  TK_INCLUDE_PATH        = path to where tk.h can be found
  TK_WISH                = full path to the wish executable
</literallayout>
    <para>
</para><para>In an effort to remove some clutter and clear up some issues for people who are not necessarily Tcl/Tk gurus/developpers, some variables were moved or removed. Changes compared to CMake 2.4 are:
</para><literallayout>   =&gt; they were only useful for people writing Tcl/Tk extensions.
   =&gt; these libs are not packaged by default with Tcl/Tk distributions. 
      Even when Tcl/Tk is built from source, several flavors of debug libs
      are created and there is no real reason to pick a single one
      specifically (say, amongst tcl84g, tcl84gs, or tcl84sgx). 
      Let's leave that choice to the user by allowing him to assign 
      TCL_LIBRARY to any Tcl library, debug or not.
   =&gt; this ended up being only a Win32 variable, and there is a lot of
      confusion regarding the location of this file in an installed Tcl/Tk
      tree anyway (see 8.5 for example). If you need the internal path at
      this point it is safer you ask directly where the *source* tree is
      and dig from there.
</literallayout>
    
    <para id="module_FindTIFF"><sect2><title>FindTIFF</title></sect2> Find TIFF library</para>

    <para>Find the native TIFF includes and library This module defines
</para><literallayout>  TIFF_INCLUDE_DIR, where to find tiff.h, etc.
  TIFF_LIBRARIES, libraries to link against to use TIFF.
  TIFF_FOUND, If false, do not try to use TIFF.
</literallayout>
    <para>also defined, but not for general use are
</para><literallayout>  TIFF_LIBRARY, where to find the TIFF library.
</literallayout>
    
    <para id="module_FindTclStub"><sect2><title>FindTclStub</title></sect2> TCL_STUB_LIBRARY_DEBUG and TK_STUB_LIBRARY_DEBUG were removed.</para>

    <para>This module finds Tcl stub libraries. It first finds Tcl include files and libraries by calling FindTCL.cmake. How to Use the Tcl Stubs Library:
</para><literallayout>   <ulink url="http://tcl.activestate.com/doc/howto/stubs.html" />
</literallayout>
    <para>Using Stub Libraries:
</para><literallayout>   <ulink url="http://safari.oreilly.com/0130385603/ch48lev1sec3" />
</literallayout>
    <para>This code sets the following variables:
</para><literallayout>  TCL_STUB_LIBRARY       = path to Tcl stub library
  TK_STUB_LIBRARY        = path to Tk stub library
  TTK_STUB_LIBRARY       = path to ttk stub library
</literallayout>
    <para>
</para><para>In an effort to remove some clutter and clear up some issues for people who are not necessarily Tcl/Tk gurus/developpers, some variables were moved or removed. Changes compared to CMake 2.4 are:
</para><literallayout>   =&gt; these libs are not packaged by default with Tcl/Tk distributions. 
      Even when Tcl/Tk is built from source, several flavors of debug libs
      are created and there is no real reason to pick a single one
      specifically (say, amongst tclstub84g, tclstub84gs, or tclstub84sgx). 
      Let's leave that choice to the user by allowing him to assign 
      TCL_STUB_LIBRARY to any Tcl library, debug or not.
</literallayout>
    
    <para id="module_FindTclsh"><sect2><title>FindTclsh</title></sect2> Find tclsh</para>

    <para>This module finds if TCL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  TCLSH_FOUND = TRUE if tclsh has been found
  TCL_TCLSH = the path to the tclsh executable
</literallayout>
    <para>In cygwin, look for the cygwin version first.  Don't look for it later to avoid finding the cygwin version on a Win32 build.</para>
    <para id="module_FindThreads"><sect2><title>FindThreads</title></sect2> This module determines the thread library of the system.</para>

    <para>The following variables are set
</para><literallayout>  CMAKE_THREAD_LIBS_INIT     - the thread library
  CMAKE_USE_SPROC_INIT       - are we using sproc?
  CMAKE_USE_WIN32_THREADS_INIT - using WIN32 threads?
  CMAKE_USE_PTHREADS_INIT    - are we using pthreads
  CMAKE_HP_PTHREADS_INIT     - are we using hp pthreads
</literallayout>
    <para>For systems with multiple thread libraries, caller can set
</para><literallayout>  CMAKE_THREAD_PREFER_PTHREAD
</literallayout>
    
    <para id="module_FindUnixCommands"><sect2><title>FindUnixCommands</title></sect2> Find unix commands from cygwin</para>

    <para>This module looks for some usual Unix commands.
</para>
    <para id="module_FindVTK"><sect2><title>FindVTK</title></sect2> Find a VTK installation or build tree.</para>

    <para>The following variables are set if VTK is found.  If VTK is not found, VTK_FOUND is set to false.
</para><literallayout>  VTK_FOUND         - Set to true when VTK is found.
  VTK_USE_FILE      - CMake file to use VTK.
  VTK_MAJOR_VERSION - The VTK major version number.
  VTK_MINOR_VERSION - The VTK minor version number 
                       (odd non-release).
  VTK_BUILD_VERSION - The VTK patch level 
                       (meaningless for odd minor).
  VTK_INCLUDE_DIRS  - Include directories for VTK
  VTK_LIBRARY_DIRS  - Link directories for VTK libraries
  VTK_KITS          - List of VTK kits, in CAPS 
                      (COMMON,IO,) etc.
  VTK_LANGUAGES     - List of wrapped languages, in CAPS
                      (TCL, PYHTON,) etc.
</literallayout>
    <para>The following cache entries must be set by the user to locate VTK:
</para><literallayout>  VTK_DIR  - The directory containing VTKConfig.cmake.  
             This is either the root of the build tree,
             or the lib/vtk directory.  This is the 
             only cache entry.
</literallayout>
    <para>The following variables are set for backward compatibility and should not be used in new code:
</para><literallayout>  USE_VTK_FILE - The full path to the UseVTK.cmake file.
                 This is provided for backward 
                 compatibility.  Use VTK_USE_FILE 
                 instead.
</literallayout>
    <para>
</para>
    <para id="module_FindWget"><sect2><title>FindWget</title></sect2> Find wget</para>

    <para>This module looks for wget. This module defines the  following values:
</para><literallayout>  WGET_EXECUTABLE: the full path to the wget tool.
  WGET_FOUND: True if wget has been found.
</literallayout>
    
    <para id="module_FindWish"><sect2><title>FindWish</title></sect2> Find wish installation</para>

    <para>This module finds if TCL is installed and determines where the include files and libraries are. It also determines what the name of the library is. This code sets the following variables:
</para><literallayout>  TK_WISH = the path to the wish executable
</literallayout>
    <para>
</para><para>if UNIX is defined, then it will look for the cygwin version first</para>
    <para id="module_FindX11"><sect2><title>FindX11</title></sect2> Find X11 installation</para>

    <para>Try to find X11 on UNIX systems. The following values are defined
</para><literallayout>  X11_FOUND        - True if X11 is available
  X11_INCLUDE_DIR  - include directories to use X11
  X11_LIBRARIES    - link against these to use X11
</literallayout>
    <para>
</para><para>and also the following more fine grained variables: Include paths: X11_ICE_INCLUDE_PATH,          X11_ICE_LIB,        X11_ICE_FOUND
</para><literallayout>                X11_SM_INCLUDE_PATH,           X11_SM_LIB,         X11_SM_FOUND
                X11_X11_INCLUDE_PATH,          X11_X11_LIB
                X11_Xaccessrules_INCLUDE_PATH,                     X11_Xaccess_FOUND
                X11_Xaccessstr_INCLUDE_PATH,                       X11_Xaccess_FOUND
                X11_Xau_INCLUDE_PATH,          X11_Xau_LIB,        X11_Xau_FOUND
                X11_Xcomposite_INCLUDE_PATH,   X11_Xcomposite_LIB, X11_Xcomposite_FOUND
                X11_Xcursor_INCLUDE_PATH,      X11_Xcursor_LIB,    X11_Xcursor_FOUND
                X11_Xdamage_INCLUDE_PATH,      X11_Xdamage_LIB,    X11_Xdamage_FOUND
                X11_Xdmcp_INCLUDE_PATH,        X11_Xdmcp_LIB,      X11_Xdmcp_FOUND
                                               X11_Xext_LIB,       X11_Xext_FOUND
                X11_dpms_INCLUDE_PATH,         (in X11_Xext_LIB),  X11_dpms_FOUND
                X11_XShm_INCLUDE_PATH,         (in X11_Xext_LIB),  X11_XShm_FOUND
                X11_Xshape_INCLUDE_PATH,       (in X11_Xext_LIB),  X11_Xshape_FOUND
                X11_xf86misc_INCLUDE_PATH,     X11_Xxf86misc_LIB,  X11_xf86misc_FOUND
                X11_xf86vmode_INCLUDE_PATH,    X11_Xxf86vm_LIB     X11_xf86vmode_FOUND
                X11_Xfixes_INCLUDE_PATH,       X11_Xfixes_LIB,     X11_Xfixes_FOUND
                X11_Xft_INCLUDE_PATH,          X11_Xft_LIB,        X11_Xft_FOUND
                X11_Xi_INCLUDE_PATH,           X11_Xi_LIB,         X11_Xi_FOUND
                X11_Xinerama_INCLUDE_PATH,     X11_Xinerama_LIB,   X11_Xinerama_FOUND
                X11_Xinput_INCLUDE_PATH,       X11_Xinput_LIB,     X11_Xinput_FOUND
                X11_Xkb_INCLUDE_PATH,                              X11_Xkb_FOUND
                X11_Xkblib_INCLUDE_PATH,                           X11_Xkb_FOUND
                X11_Xkbfile_INCLUDE_PATH,      X11_Xkbfile_LIB,    X11_Xkbfile_FOUND
                X11_Xmu_INCLUDE_PATH,          X11_Xmu_LIB,        X11_Xmu_FOUND
                X11_Xpm_INCLUDE_PATH,          X11_Xpm_LIB,        X11_Xpm_FOUND
                X11_XTest_INCLUDE_PATH,        X11_XTest_LIB,      X11_XTest_FOUND
                X11_Xrandr_INCLUDE_PATH,       X11_Xrandr_LIB,     X11_Xrandr_FOUND
                X11_Xrender_INCLUDE_PATH,      X11_Xrender_LIB,    X11_Xrender_FOUND
                X11_Xscreensaver_INCLUDE_PATH, X11_Xscreensaver_LIB, X11_Xscreensaver_FOUND
                X11_Xt_INCLUDE_PATH,           X11_Xt_LIB,         X11_Xt_FOUND
                X11_Xutil_INCLUDE_PATH,                            X11_Xutil_FOUND
                X11_Xv_INCLUDE_PATH,           X11_Xv_LIB,         X11_Xv_FOUND
                X11_XSync_INCLUDE_PATH,        (in X11_Xext_LIB),  X11_XSync_FOUND
</literallayout>
    
    <para id="module_FindXMLRPC"><sect2><title>FindXMLRPC</title></sect2> Find xmlrpc</para>

    <para>Find the native XMLRPC headers and libraries.
</para><literallayout>  XMLRPC_INCLUDE_DIRS      - where to find xmlrpc.h, etc.
  XMLRPC_LIBRARIES         - List of libraries when using xmlrpc.
  XMLRPC_FOUND             - True if xmlrpc found.
</literallayout>
    <para>XMLRPC modules may be specified as components for this find module. Modules may be listed by running "xmlrpc-c-config".  Modules include:
</para><literallayout>  c++            C++ wrapper code
  libwww-client  libwww-based client
  cgi-server     CGI-based server
  abyss-server   ABYSS-based server
</literallayout>
    <para>Typical usage:
</para><literallayout>  FIND_PACKAGE(XMLRPC REQUIRED libwww-client)
</literallayout>
    
    <para id="module_FindZLIB"><sect2><title>FindZLIB</title></sect2> Find zlib</para>

    <para>Find the native ZLIB includes and library. Once done this will define
</para><literallayout>  ZLIB_INCLUDE_DIRS   - where to find zlib.h, etc.
  ZLIB_LIBRARIES      - List of libraries when using zlib.
  ZLIB_FOUND          - True if zlib found.
</literallayout>
    <para>
</para><literallayout>  ZLIB_VERSION_STRING - The version of zlib found (x.y.z)
  ZLIB_VERSION_MAJOR  - The major version of zlib
  ZLIB_VERSION_MINOR  - The minor version of zlib
  ZLIB_VERSION_PATCH  - The patch version of zlib
  ZLIB_VERSION_TWEAK  - The tweak version of zlib
</literallayout>
    <para>
</para><para>The following variable are provided for backward compatibility
</para><literallayout>  ZLIB_MAJOR_VERSION  - The major version of zlib
  ZLIB_MINOR_VERSION  - The minor version of zlib
  ZLIB_PATCH_VERSION  - The patch version of zlib
</literallayout>
    <para>
</para><para>An includer may set ZLIB_ROOT to a zlib installation root to tell this module where to look.</para>
    <para id="module_Findosg"><sect2><title>Findosg</title></sect2>  </para>

    <para>
</para><para>NOTE: It is highly recommended that you use the new FindOpenSceneGraph.cmake introduced in CMake 2.6.3 and not use this Find module directly.
</para><para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osg This module defines
</para><para>OSG_FOUND - Was the Osg found? OSG_INCLUDE_DIR - Where to find the headers OSG_LIBRARIES - The libraries to link against for the OSG (use this)
</para><para>OSG_LIBRARY - The OSG library OSG_LIBRARY_DEBUG - The OSG debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgAnimation"><sect2><title>FindosgAnimation</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgAnimation This module defines
</para><para>OSGANIMATION_FOUND - Was osgAnimation found? OSGANIMATION_INCLUDE_DIR - Where to find the headers OSGANIMATION_LIBRARIES - The libraries to link against for the OSG (use this)
</para><para>OSGANIMATION_LIBRARY - The OSG library OSGANIMATION_LIBRARY_DEBUG - The OSG debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgDB"><sect2><title>FindosgDB</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgDB This module defines
</para><para>OSGDB_FOUND - Was osgDB found? OSGDB_INCLUDE_DIR - Where to find the headers OSGDB_LIBRARIES - The libraries to link against for the osgDB (use this)
</para><para>OSGDB_LIBRARY - The osgDB library OSGDB_LIBRARY_DEBUG - The osgDB debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgFX"><sect2><title>FindosgFX</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgFX This module defines
</para><para>OSGFX_FOUND - Was osgFX found? OSGFX_INCLUDE_DIR - Where to find the headers OSGFX_LIBRARIES - The libraries to link against for the osgFX (use this)
</para><para>OSGFX_LIBRARY - The osgFX library OSGFX_LIBRARY_DEBUG - The osgFX debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgGA"><sect2><title>FindosgGA</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgGA This module defines
</para><para>OSGGA_FOUND - Was osgGA found? OSGGA_INCLUDE_DIR - Where to find the headers OSGGA_LIBRARIES - The libraries to link against for the osgGA (use this)
</para><para>OSGGA_LIBRARY - The osgGA library OSGGA_LIBRARY_DEBUG - The osgGA debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgIntrospection"><sect2><title>FindosgIntrospection</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgINTROSPECTION This module defines
</para><para>OSGINTROSPECTION_FOUND - Was osgIntrospection found? OSGINTROSPECTION_INCLUDE_DIR - Where to find the headers OSGINTROSPECTION_LIBRARIES - The libraries to link for osgIntrospection (use this)
</para><para>OSGINTROSPECTION_LIBRARY - The osgIntrospection library OSGINTROSPECTION_LIBRARY_DEBUG - The osgIntrospection debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgManipulator"><sect2><title>FindosgManipulator</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgManipulator This module defines
</para><para>OSGMANIPULATOR_FOUND - Was osgManipulator found? OSGMANIPULATOR_INCLUDE_DIR - Where to find the headers OSGMANIPULATOR_LIBRARIES - The libraries to link for osgManipulator (use this)
</para><para>OSGMANIPULATOR_LIBRARY - The osgManipulator library OSGMANIPULATOR_LIBRARY_DEBUG - The osgManipulator debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgParticle"><sect2><title>FindosgParticle</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgParticle This module defines
</para><para>OSGPARTICLE_FOUND - Was osgParticle found? OSGPARTICLE_INCLUDE_DIR - Where to find the headers OSGPARTICLE_LIBRARIES - The libraries to link for osgParticle (use this)
</para><para>OSGPARTICLE_LIBRARY - The osgParticle library OSGPARTICLE_LIBRARY_DEBUG - The osgParticle debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgPresentation"><sect2><title>FindosgPresentation</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgPresentation This module defines
</para><para>OSGPRESENTATION_FOUND - Was osgPresentation found? OSGPRESENTATION_INCLUDE_DIR - Where to find the headers OSGPRESENTATION_LIBRARIES - The libraries to link for osgPresentation (use this)
</para><para>OSGPRESENTATION_LIBRARY - The osgPresentation library OSGPRESENTATION_LIBRARY_DEBUG - The osgPresentation debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing. Modified to work with osgPresentation by Robert Osfield, January 2012.</para>
    <para id="module_FindosgProducer"><sect2><title>FindosgProducer</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgProducer This module defines
</para><para>OSGPRODUCER_FOUND - Was osgProducer found? OSGPRODUCER_INCLUDE_DIR - Where to find the headers OSGPRODUCER_LIBRARIES - The libraries to link for osgProducer (use this)
</para><para>OSGPRODUCER_LIBRARY - The osgProducer library OSGPRODUCER_LIBRARY_DEBUG - The osgProducer debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgQt"><sect2><title>FindosgQt</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must also opt into OpenGL and OpenThreads (and Producer if needed) as these modules won't do it for you. This is to allow you control over your own system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgQt This module defines
</para><para>OSGQT_FOUND - Was osgQt found? OSGQT_INCLUDE_DIR - Where to find the headers OSGQT_LIBRARIES - The libraries to link for osgQt (use this)
</para><para>OSGQT_LIBRARY - The osgQt library OSGQT_LIBRARY_DEBUG - The osgQt debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing. Modified to work with osgQt by Robert Osfield, January 2012.</para>
    <para id="module_FindosgShadow"><sect2><title>FindosgShadow</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgShadow This module defines
</para><para>OSGSHADOW_FOUND - Was osgShadow found? OSGSHADOW_INCLUDE_DIR - Where to find the headers OSGSHADOW_LIBRARIES - The libraries to link for osgShadow (use this)
</para><para>OSGSHADOW_LIBRARY - The osgShadow library OSGSHADOW_LIBRARY_DEBUG - The osgShadow debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgSim"><sect2><title>FindosgSim</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgSim This module defines
</para><para>OSGSIM_FOUND - Was osgSim found? OSGSIM_INCLUDE_DIR - Where to find the headers OSGSIM_LIBRARIES - The libraries to link for osgSim (use this)
</para><para>OSGSIM_LIBRARY - The osgSim library OSGSIM_LIBRARY_DEBUG - The osgSim debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgTerrain"><sect2><title>FindosgTerrain</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgTerrain This module defines
</para><para>OSGTERRAIN_FOUND - Was osgTerrain found? OSGTERRAIN_INCLUDE_DIR - Where to find the headers OSGTERRAIN_LIBRARIES - The libraries to link for osgTerrain (use this)
</para><para>OSGTERRAIN_LIBRARY - The osgTerrain library OSGTERRAIN_LIBRARY_DEBUG - The osgTerrain debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgText"><sect2><title>FindosgText</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgText This module defines
</para><para>OSGTEXT_FOUND - Was osgText found? OSGTEXT_INCLUDE_DIR - Where to find the headers OSGTEXT_LIBRARIES - The libraries to link for osgText (use this)
</para><para>OSGTEXT_LIBRARY - The osgText library OSGTEXT_LIBRARY_DEBUG - The osgText debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgUtil"><sect2><title>FindosgUtil</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgUtil This module defines
</para><para>OSGUTIL_FOUND - Was osgUtil found? OSGUTIL_INCLUDE_DIR - Where to find the headers OSGUTIL_LIBRARIES - The libraries to link for osgUtil (use this)
</para><para>OSGUTIL_LIBRARY - The osgUtil library OSGUTIL_LIBRARY_DEBUG - The osgUtil debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgViewer"><sect2><title>FindosgViewer</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgViewer This module defines
</para><para>OSGVIEWER_FOUND - Was osgViewer found? OSGVIEWER_INCLUDE_DIR - Where to find the headers OSGVIEWER_LIBRARIES - The libraries to link for osgViewer (use this)
</para><para>OSGVIEWER_LIBRARY - The osgViewer library OSGVIEWER_LIBRARY_DEBUG - The osgViewer debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgVolume"><sect2><title>FindosgVolume</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgVolume This module defines
</para><para>OSGVOLUME_FOUND - Was osgVolume found? OSGVOLUME_INCLUDE_DIR - Where to find the headers OSGVOLUME_LIBRARIES - The libraries to link for osgVolume (use this)
</para><para>OSGVOLUME_LIBRARY - The osgVolume library OSGVOLUME_LIBRARY_DEBUG - The osgVolume debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>Created by Eric Wing.</para>
    <para id="module_FindosgWidget"><sect2><title>FindosgWidget</title></sect2>  </para>

    <para>This is part of the Findosg* suite used to find OpenSceneGraph components. Each component is separate and you must opt in to each module. You must  also opt into OpenGL and OpenThreads (and Producer if needed) as these  modules won't do it for you. This is to allow you control over your own  system piece by piece in case you need to opt out of certain components or change the Find behavior for a particular module (perhaps because the default FindOpenGL.cmake module doesn't work with your system as an example). If you want to use a more convenient module that includes everything, use the FindOpenSceneGraph.cmake instead of the Findosg*.cmake modules.
</para><para>Locate osgWidget This module defines
</para><para>OSGWIDGET_FOUND - Was osgWidget found? OSGWIDGET_INCLUDE_DIR - Where to find the headers OSGWIDGET_LIBRARIES - The libraries to link for osgWidget (use this)
</para><para>OSGWIDGET_LIBRARY - The osgWidget library OSGWIDGET_LIBRARY_DEBUG - The osgWidget debug library
</para><para>$OSGDIR is an environment variable that would correspond to the ./configure --prefix=$OSGDIR used in building osg.
</para><para>FindosgWidget.cmake tweaked from Findosg* suite as created by Eric Wing.</para>
    <para id="module_Findosg_functions"><sect2><title>Findosg_functions</title></sect2>  </para>

    <para>
</para><para>This CMake file contains two macros to assist with searching for OSG libraries and nodekits.
</para>
    <para id="module_FindwxWidgets"><sect2><title>FindwxWidgets</title></sect2> Find a wxWidgets (a.k.a., wxWindows) installation.</para>

    <para>This module finds if wxWidgets is installed and selects a default configuration to use. wxWidgets is a modular library. To specify the modules that you will use, you need to name them as components to the package:
</para><para>FIND_PACKAGE(wxWidgets COMPONENTS core base ...)
</para><para>There are two search branches: a windows style and a unix style. For windows, the following variables are searched for and set to defaults in case of multiple choices. Change them if the defaults are not desired (i.e., these are the only variables you should change to select a configuration):
</para><literallayout>  wxWidgets_ROOT_DIR      - Base wxWidgets directory
                            (e.g., C:/wxWidgets-2.6.3).
  wxWidgets_LIB_DIR       - Path to wxWidgets libraries
                            (e.g., C:/wxWidgets-2.6.3/lib/vc_lib).
  wxWidgets_CONFIGURATION - Configuration to use
                            (e.g., msw, mswd, mswu, mswunivud, etc.)
  wxWidgets_EXCLUDE_COMMON_LIBRARIES
                          - Set to TRUE to exclude linking of
                            commonly required libs (e.g., png tiff
                            jpeg zlib regex expat).
</literallayout>
    <para>
</para><para>For unix style it uses the wx-config utility. You can select between debug/release, unicode/ansi, universal/non-universal, and static/shared in the QtDialog or ccmake interfaces by turning ON/OFF the following variables:
</para><literallayout>  wxWidgets_USE_DEBUG
  wxWidgets_USE_UNICODE
  wxWidgets_USE_UNIVERSAL
  wxWidgets_USE_STATIC
</literallayout>
    <para>
</para><para>There is also a wxWidgets_CONFIG_OPTIONS variable for all other options that need to be passed to the wx-config utility. For example, to use the base toolkit found in the /usr/local path, set the variable (before calling the FIND_PACKAGE command) as such:
</para><literallayout>  SET(wxWidgets_CONFIG_OPTIONS --toolkit=base --prefix=/usr)
</literallayout>
    <para>
</para><para>The following are set after the configuration is done for both windows and unix style:
</para><literallayout>  wxWidgets_FOUND            - Set to TRUE if wxWidgets was found.
  wxWidgets_INCLUDE_DIRS     - Include directories for WIN32
                               i.e., where to find "wx/wx.h" and
                               "wx/setup.h"; possibly empty for unices.
  wxWidgets_LIBRARIES        - Path to the wxWidgets libraries.
  wxWidgets_LIBRARY_DIRS     - compile time link dirs, useful for
                               rpath on UNIX. Typically an empty string
                               in WIN32 environment.
  wxWidgets_DEFINITIONS      - Contains defines required to compile/link
                               against WX, e.g. WXUSINGDLL
  wxWidgets_DEFINITIONS_DEBUG- Contains defines required to compile/link
                               against WX debug builds, e.g. __WXDEBUG__
  wxWidgets_CXX_FLAGS        - Include dirs and compiler flags for
                               unices, empty on WIN32. Essentially
                               "`wx-config --cxxflags`".
  wxWidgets_USE_FILE         - Convenience include file.
</literallayout>
    <para>
</para><para>Sample usage:
</para><literallayout>   # Note that for MinGW users the order of libs is important!
   FIND_PACKAGE(wxWidgets COMPONENTS net gl core base)
   IF(wxWidgets_FOUND)
     INCLUDE(${wxWidgets_USE_FILE})
     # and for each of your dependent executable/library targets:
     TARGET_LINK_LIBRARIES(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})
   ENDIF(wxWidgets_FOUND)
</literallayout>
    <para>
</para><para>If wxWidgets is required (i.e., not an optional part):
</para><literallayout>   FIND_PACKAGE(wxWidgets REQUIRED net gl core base)
   INCLUDE(${wxWidgets_USE_FILE})
   # and for each of your dependent executable/library targets:
   TARGET_LINK_LIBRARIES(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})
</literallayout>
    
    <para id="module_FindwxWindows"><sect2><title>FindwxWindows</title></sect2> Find wxWindows (wxWidgets) installation</para>

    <para>This module finds if wxWindows/wxWidgets is installed and determines where the include files and libraries are. It also determines what the name of the library is. Please note this file is DEPRECATED and replaced by FindwxWidgets.cmake. This code sets the following variables:
</para><literallayout>  WXWINDOWS_FOUND     = system has WxWindows
  WXWINDOWS_LIBRARIES = path to the wxWindows libraries
                        on Unix/Linux with additional
                        linker flags from
                        "wx-config --libs"
  CMAKE_WXWINDOWS_CXX_FLAGS  = Compiler flags for wxWindows,
                               essentially "`wx-config --cxxflags`"
                               on Linux
  WXWINDOWS_INCLUDE_DIR      = where to find "wx/wx.h" and "wx/setup.h"
  WXWINDOWS_LINK_DIRECTORIES = link directories, useful for rpath on
                                Unix
  WXWINDOWS_DEFINITIONS      = extra defines
</literallayout>
    <para>
</para><para>OPTIONS If you need OpenGL support please
</para><literallayout>  SET(WXWINDOWS_USE_GL 1)
</literallayout>
    <para>in your CMakeLists.txt *before* you include this file.
</para><literallayout>  HAVE_ISYSTEM      - true required to replace -I by -isystem on g++
</literallayout>
    <para>
</para><para>For convenience include Use_wxWindows.cmake in your project's CMakeLists.txt using INCLUDE(Use_wxWindows).
</para><para>USAGE
</para><literallayout>  SET(WXWINDOWS_USE_GL 1)
  FIND_PACKAGE(wxWindows)
</literallayout>
    <para>
</para><para>NOTES wxWidgets 2.6.x is supported for monolithic builds e.g. compiled  in wx/build/msw dir as:
</para><literallayout>  nmake -f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 MONOLITHIC=1
</literallayout>
    <para>
</para><para>DEPRECATED
</para><literallayout>  CMAKE_WX_CAN_COMPILE
  WXWINDOWS_LIBRARY
  CMAKE_WX_CXX_FLAGS
  WXWINDOWS_INCLUDE_PATH
</literallayout>
    <para>
</para><para>AUTHOR Jan Woetzel &lt;<ulink url="http://www.mip.informatik.uni-kiel.de/~jw" />&gt; (07/2003-01/2006)</para>
    <para id="module_FortranCInterface"><sect2><title>FortranCInterface</title></sect2> Fortran/C Interface Detection</para>

    <para>This module automatically detects the API by which C and Fortran languages interact.  Variables indicate if the mangling is found:
</para><literallayout>   FortranCInterface_GLOBAL_FOUND = Global subroutines and functions
   FortranCInterface_MODULE_FOUND = Module subroutines and functions
                                    (declared by "MODULE PROCEDURE")
</literallayout>
    <para>A function is provided to generate a C header file containing macros to mangle symbol names:
</para><literallayout>   FortranCInterface_HEADER(&lt;file&gt;
                            [MACRO_NAMESPACE &lt;macro-ns&gt;]
                            [SYMBOL_NAMESPACE &lt;ns&gt;]
                            [SYMBOLS [&lt;module&gt;:]&lt;function&gt; ...])
</literallayout>
    <para>It generates in &lt;file&gt; definitions of the following macros:
</para><literallayout>   #define FortranCInterface_GLOBAL (name,NAME) ...
   #define FortranCInterface_GLOBAL_(name,NAME) ...
   #define FortranCInterface_MODULE (mod,name, MOD,NAME) ...
   #define FortranCInterface_MODULE_(mod,name, MOD,NAME) ...
</literallayout>
    <para>These macros mangle four categories of Fortran symbols, respectively:
</para><literallayout>   - Global symbols without '_': call mysub()
   - Global symbols with '_'   : call my_sub()
   - Module symbols without '_': use mymod; call mysub()
   - Module symbols with '_'   : use mymod; call my_sub()
</literallayout>
    <para>If mangling for a category is not known, its macro is left undefined. All macros require raw names in both lower case and upper case. The MACRO_NAMESPACE option replaces the default "FortranCInterface_" prefix with a given namespace "&lt;macro-ns&gt;".
</para><para>The SYMBOLS option lists symbols to mangle automatically with C preprocessor definitions:
</para><literallayout>   &lt;function&gt;          ==&gt; #define &lt;ns&gt;&lt;function&gt; ...
   &lt;module&gt;:&lt;function&gt; ==&gt; #define &lt;ns&gt;&lt;module&gt;_&lt;function&gt; ...
</literallayout>
    <para>If the mangling for some symbol is not known then no preprocessor definition is created, and a warning is displayed. The SYMBOL_NAMESPACE option prefixes all preprocessor definitions generated by the SYMBOLS option with a given namespace "&lt;ns&gt;".
</para><para>Example usage:
</para><literallayout>   include(FortranCInterface)
   FortranCInterface_HEADER(FC.h MACRO_NAMESPACE "FC_")
</literallayout>
    <para>This creates a "FC.h" header that defines mangling macros FC_GLOBAL(), FC_GLOBAL_(), FC_MODULE(), and FC_MODULE_().
</para><para>Example usage:
</para><literallayout>   include(FortranCInterface)
   FortranCInterface_HEADER(FCMangle.h
                            MACRO_NAMESPACE "FC_"
                            SYMBOL_NAMESPACE "FC_"
                            SYMBOLS mysub mymod:my_sub)
</literallayout>
    <para>This creates a "FCMangle.h" header that defines the same FC_*() mangling macros as the previous example plus preprocessor symbols FC_mysub and FC_mymod_my_sub.
</para><para>Another function is provided to verify that the Fortran and C/C++ compilers work together:
</para><literallayout>   FortranCInterface_VERIFY([CXX] [QUIET])
</literallayout>
    <para>It tests whether a simple test executable using Fortran and C (and C++ when the CXX option is given) compiles and links successfully. The result is stored in the cache entry FortranCInterface_VERIFIED_C (or FortranCInterface_VERIFIED_CXX if CXX is given) as a boolean. If the check fails and QUIET is not given the function terminates with a FATAL_ERROR message describing the problem.  The purpose of this check is to stop a build early for incompatible compiler combinations.
</para><para>FortranCInterface is aware of possible GLOBAL and MODULE manglings for many Fortran compilers, but it also provides an interface to specify new possible manglings.  Set the variables
</para><literallayout>   FortranCInterface_GLOBAL_SYMBOLS
   FortranCInterface_MODULE_SYMBOLS
</literallayout>
    <para>before including FortranCInterface to specify manglings of the symbols "MySub", "My_Sub", "MyModule:MySub", and "My_Module:My_Sub". For example, the code:
</para><literallayout>   set(FortranCInterface_GLOBAL_SYMBOLS mysub_ my_sub__ MYSUB_)
     #                                  ^^^^^  ^^^^^^   ^^^^^
   set(FortranCInterface_MODULE_SYMBOLS
       __mymodule_MOD_mysub __my_module_MOD_my_sub)
     #   ^^^^^^^^     ^^^^^   ^^^^^^^^^     ^^^^^^
   include(FortranCInterface)
</literallayout>
    <para>tells FortranCInterface to try given GLOBAL and MODULE manglings. (The carets point at raw symbol names for clarity in this example but are not needed.)</para>
    <para id="module_GNUInstallDirs"><sect2><title>GNUInstallDirs</title></sect2> Define GNU standard installation directories</para>

    <para>Provides install directory variables as defined for GNU software:
</para><literallayout>  <ulink url="http://www.gnu.org/prep/standards/html_node/Directory-Variables.html" />
</literallayout>
    <para>Inclusion of this module defines the following variables:
</para><literallayout>  CMAKE_INSTALL_&lt;dir&gt;      - destination for files of a given type
  CMAKE_INSTALL_FULL_&lt;dir&gt; - corresponding absolute path
</literallayout>
    <para>where &lt;dir&gt; is one of:
</para><literallayout>  BINDIR           - user executables (bin)
  SBINDIR          - system admin executables (sbin)
  LIBEXECDIR       - program executables (libexec)
  SYSCONFDIR       - read-only single-machine data (etc)
  SHAREDSTATEDIR   - modifiable architecture-independent data (com)
  LOCALSTATEDIR    - modifiable single-machine data (var)
  LIBDIR           - object code libraries (lib or lib64 or lib/&lt;multiarch-tuple&gt; on Debian)
  INCLUDEDIR       - C header files (include)
  OLDINCLUDEDIR    - C header files for non-gcc (/usr/include)
  DATAROOTDIR      - read-only architecture-independent data root (share)
  DATADIR          - read-only architecture-independent data (DATAROOTDIR)
  INFODIR          - info documentation (DATAROOTDIR/info)
  LOCALEDIR        - locale-dependent data (DATAROOTDIR/locale)
  MANDIR           - man documentation (DATAROOTDIR/man)
  DOCDIR           - documentation root (DATAROOTDIR/doc/PROJECT_NAME)
</literallayout>
    <para>Each CMAKE_INSTALL_&lt;dir&gt; value may be passed to the DESTINATION options of install() commands for the corresponding file type.  If the includer does not define a value the above-shown default will be used and the value will appear in the cache for editing by the user. Each CMAKE_INSTALL_FULL_&lt;dir&gt; value contains an absolute path constructed from the corresponding destination by prepending (if necessary) the value of CMAKE_INSTALL_PREFIX.</para>
    <para id="module_GenerateExportHeader"><sect2><title>GenerateExportHeader</title></sect2> Function for generation of export macros for libraries</para>

    <para>This module provides the function GENERATE_EXPORT_HEADER() and the accompanying ADD_COMPILER_EXPORT_FLAGS() function.
</para><para>The GENERATE_EXPORT_HEADER function can be used to generate a file suitable for preprocessor inclusion which contains EXPORT macros to be used in library classes.
</para><para>GENERATE_EXPORT_HEADER( LIBRARY_TARGET
</para><literallayout>             [BASE_NAME &lt;base_name&gt;]
             [EXPORT_MACRO_NAME &lt;export_macro_name&gt;]
             [EXPORT_FILE_NAME &lt;export_file_name&gt;]
             [DEPRECATED_MACRO_NAME &lt;deprecated_macro_name&gt;]
             [NO_EXPORT_MACRO_NAME &lt;no_export_macro_name&gt;]
             [STATIC_DEFINE &lt;static_define&gt;]
             [NO_DEPRECATED_MACRO_NAME &lt;no_deprecated_macro_name&gt;]
             [DEFINE_NO_DEPRECATED]
             [PREFIX_NAME &lt;prefix_name&gt;]
</literallayout>
    <para>)
</para><para>ADD_COMPILER_EXPORT_FLAGS( [&lt;output_variable&gt;] )
</para><para>By default GENERATE_EXPORT_HEADER() generates macro names in a file name determined by the name of the library. The ADD_COMPILER_EXPORT_FLAGS function adds -fvisibility=hidden to CMAKE_CXX_FLAGS if supported, and is a no-op on Windows which does not need extra compiler flags for exporting support. You may optionally pass a single argument to ADD_COMPILER_EXPORT_FLAGS that will be populated with the required CXX_FLAGS required to enable visibility support for the compiler/architecture in use.
</para><para>This means that in the simplest case, users of these functions will be equivalent to:
</para><literallayout>   add_compiler_export_flags()
   add_library(somelib someclass.cpp)
   generate_export_header(somelib)
   install(TARGETS somelib DESTINATION ${LIBRARY_INSTALL_DIR})
   install(FILES
    someclass.h
    ${PROJECT_BINARY_DIR}/somelib_export.h DESTINATION ${INCLUDE_INSTALL_DIR}
   )
</literallayout>
    <para>
</para><para>And in the ABI header files:
</para><literallayout>   #include "somelib_export.h"
   class SOMELIB_EXPORT SomeClass {
     ...
   };
</literallayout>
    <para>
</para><para>The CMake fragment will generate a file in the ${CMAKE_CURRENT_BUILD_DIR} called somelib_export.h containing the macros SOMELIB_EXPORT, SOMELIB_NO_EXPORT, SOMELIB_DEPRECATED, SOMELIB_DEPRECATED_EXPORT and SOMELIB_DEPRECATED_NO_EXPORT. The resulting file should be installed with other headers in the library.
</para><para>The BASE_NAME argument can be used to override the file name and the names used for the macros
</para><literallayout>   add_library(somelib someclass.cpp)
   generate_export_header(somelib
     BASE_NAME other_name
   )
</literallayout>
    <para>
</para><para>Generates a file called other_name_export.h containing the macros OTHER_NAME_EXPORT, OTHER_NAME_NO_EXPORT and OTHER_NAME_DEPRECATED etc.
</para><para>The BASE_NAME may be overridden by specifiying other options in the function. For example:
</para><literallayout>   add_library(somelib someclass.cpp)
   generate_export_header(somelib
     EXPORT_MACRO_NAME OTHER_NAME_EXPORT
   )
</literallayout>
    <para>
</para><para>creates the macro OTHER_NAME_EXPORT instead of SOMELIB_EXPORT, but other macros and the generated file name is as default.
</para><literallayout>   add_library(somelib someclass.cpp)
   generate_export_header(somelib
     DEPRECATED_MACRO_NAME KDE_DEPRECATED
   )
</literallayout>
    <para>
</para><para>creates the macro KDE_DEPRECATED instead of SOMELIB_DEPRECATED.
</para><para>If LIBRARY_TARGET is a static library, macros are defined without values.
</para><para>If the same sources are used to create both a shared and a static library, the uppercased symbol ${BASE_NAME}_STATIC_DEFINE should be used when building the static library
</para><literallayout>   add_library(shared_variant SHARED ${lib_SRCS})
   add_library(static_variant ${lib_SRCS})
   generate_export_header(shared_variant BASE_NAME libshared_and_static)
   set_target_properties(static_variant PROPERTIES
     COMPILE_FLAGS -DLIBSHARED_AND_STATIC_STATIC_DEFINE)
</literallayout>
    <para>
</para><para>This will cause the export macros to expand to nothing when building the static library.
</para><para>If DEFINE_NO_DEPRECATED is specified, then a macro ${BASE_NAME}_NO_DEPRECATED will be defined This macro can be used to remove deprecated code from preprocessor output.
</para><literallayout>   option(EXCLUDE_DEPRECATED "Exclude deprecated parts of the library" FALSE)
   if (EXCLUDE_DEPRECATED)
     set(NO_BUILD_DEPRECATED DEFINE_NO_DEPRECATED)
   endif()
   generate_export_header(somelib ${NO_BUILD_DEPRECATED})
</literallayout>
    <para>
</para><para>And then in somelib:
</para><literallayout>   class SOMELIB_EXPORT SomeClass
   {
   public:
   #ifndef SOMELIB_NO_DEPRECATED
     SOMELIB_DEPRECATED void oldMethod();
   #endif
   };
</literallayout>
    <para>
</para><literallayout>   #ifndef SOMELIB_NO_DEPRECATED
   void SomeClass::oldMethod() {  }
   #endif
</literallayout>
    <para>
</para><para>If PREFIX_NAME is specified, the argument will be used as a prefix to all generated macros.
</para><para>For example:
</para><literallayout>   generate_export_header(somelib PREFIX_NAME VTK_)
</literallayout>
    <para>
</para><para>Generates the macros VTK_SOMELIB_EXPORT etc.</para>
    <para id="module_GetPrerequisites"><sect2><title>GetPrerequisites</title></sect2> Functions to analyze and list executable file prerequisites.</para>

    <para>This module provides functions to list the .dll, .dylib or .so files that an executable or shared library file depends on. (Its prerequisites.)
</para><para>It uses various tools to obtain the list of required shared library files:
</para><literallayout>   dumpbin (Windows)
   ldd (Linux/Unix)
   otool (Mac OSX)
</literallayout>
    <para>The following functions are provided by this module:
</para><literallayout>   get_prerequisites
   list_prerequisites
   list_prerequisites_by_glob
   gp_append_unique
   is_file_executable
   gp_item_default_embedded_path
     (projects can override with gp_item_default_embedded_path_override)
   gp_resolve_item
     (projects can override with gp_resolve_item_override)
   gp_resolved_file_type
     (projects can override with gp_resolved_file_type_override)
   gp_file_type
</literallayout>
    <para>Requires CMake 2.6 or greater because it uses function, break, return and PARENT_SCOPE.
</para><literallayout>  GET_PREREQUISITES(&lt;target&gt; &lt;prerequisites_var&gt; &lt;exclude_system&gt; &lt;recurse&gt;
                    &lt;exepath&gt; &lt;dirs&gt;)
</literallayout>
    <para>Get the list of shared library files required by &lt;target&gt;. The list in the variable named &lt;prerequisites_var&gt; should be empty on first entry to this function. On exit, &lt;prerequisites_var&gt; will contain the list of required shared library files.
</para><para>&lt;target&gt; is the full path to an executable file. &lt;prerequisites_var&gt; is the name of a CMake variable to contain the results. &lt;exclude_system&gt; must be 0 or 1 indicating whether to include or exclude "system" prerequisites. If &lt;recurse&gt; is set to 1 all prerequisites will be found recursively, if set to 0 only direct prerequisites are listed. &lt;exepath&gt; is the path to the top level executable used for @executable_path replacment on the Mac. &lt;dirs&gt; is a list of paths where libraries might be found: these paths are searched first when a target without any path info is given. Then standard system locations are also searched: PATH, Framework locations, /usr/lib...
</para><literallayout>  LIST_PREREQUISITES(&lt;target&gt; [&lt;recurse&gt; [&lt;exclude_system&gt; [&lt;verbose&gt;]]])
</literallayout>
    <para>Print a message listing the prerequisites of &lt;target&gt;.
</para><para>&lt;target&gt; is the name of a shared library or executable target or the full path to a shared library or executable file. If &lt;recurse&gt; is set to 1 all prerequisites will be found recursively, if set to 0 only direct prerequisites are listed. &lt;exclude_system&gt; must be 0 or 1 indicating whether to include or exclude "system" prerequisites. With &lt;verbose&gt; set to 0 only the full path names of the prerequisites are printed, set to 1 extra informatin will be displayed.
</para><literallayout>  LIST_PREREQUISITES_BY_GLOB(&lt;glob_arg&gt; &lt;glob_exp&gt;)
</literallayout>
    <para>Print the prerequisites of shared library and executable files matching a globbing pattern. &lt;glob_arg&gt; is GLOB or GLOB_RECURSE and &lt;glob_exp&gt; is a globbing expression used with "file(GLOB" or "file(GLOB_RECURSE" to retrieve a list of matching files. If a matching file is executable, its prerequisites are listed.
</para><para>Any additional (optional) arguments provided are passed along as the optional arguments to the list_prerequisites calls.
</para><literallayout>  GP_APPEND_UNIQUE(&lt;list_var&gt; &lt;value&gt;)
</literallayout>
    <para>Append &lt;value&gt; to the list variable &lt;list_var&gt; only if the value is not already in the list.
</para><literallayout>  IS_FILE_EXECUTABLE(&lt;file&gt; &lt;result_var&gt;)
</literallayout>
    <para>Return 1 in &lt;result_var&gt; if &lt;file&gt; is a binary executable, 0 otherwise.
</para><literallayout>  GP_ITEM_DEFAULT_EMBEDDED_PATH(&lt;item&gt; &lt;default_embedded_path_var&gt;)
</literallayout>
    <para>Return the path that others should refer to the item by when the item is embedded inside a bundle.
</para><para>Override on a per-project basis by providing a project-specific gp_item_default_embedded_path_override function.
</para><literallayout>  GP_RESOLVE_ITEM(&lt;context&gt; &lt;item&gt; &lt;exepath&gt; &lt;dirs&gt; &lt;resolved_item_var&gt;)
</literallayout>
    <para>Resolve an item into an existing full path file.
</para><para>Override on a per-project basis by providing a project-specific gp_resolve_item_override function.
</para><literallayout>  GP_RESOLVED_FILE_TYPE(&lt;original_file&gt; &lt;file&gt; &lt;exepath&gt; &lt;dirs&gt; &lt;type_var&gt;)
</literallayout>
    <para>Return the type of &lt;file&gt; with respect to &lt;original_file&gt;. String describing type of prerequisite is returned in variable named &lt;type_var&gt;.
</para><para>Use &lt;exepath&gt; and &lt;dirs&gt; if necessary to resolve non-absolute &lt;file&gt; values -- but only for non-embedded items.
</para><para>Possible types are:
</para><literallayout>   system
   local
   embedded
   other
</literallayout>
    <para>Override on a per-project basis by providing a project-specific gp_resolved_file_type_override function.
</para><literallayout>  GP_FILE_TYPE(&lt;original_file&gt; &lt;file&gt; &lt;type_var&gt;)
</literallayout>
    <para>Return the type of &lt;file&gt; with respect to &lt;original_file&gt;. String describing type of prerequisite is returned in variable named &lt;type_var&gt;.
</para><para>Possible types are:
</para><literallayout>   system
   local
   embedded
   other
</literallayout>
    
    <para id="module_InstallRequiredSystemLibraries"><sect2><title>InstallRequiredSystemLibraries</title></sect2>  </para>

    <para>By including this file, all library files listed in the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS will be installed with INSTALL(PROGRAMS ...) into bin for WIN32 and lib for non-WIN32. If CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP is set to TRUE before including this file, then the INSTALL command is not called. The user can use the variable CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS to use a custom install command and install them however they want. If it is the MSVC compiler, then the microsoft run time libraries will be found and automatically added to the CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS, and installed. If CMAKE_INSTALL_DEBUG_LIBRARIES is set and it is the MSVC compiler, then the debug libraries are installed when available. If CMAKE_INSTALL_DEBUG_LIBRARIES_ONLY is set then only the debug libraries are installed when both debug and release are available. If CMAKE_INSTALL_MFC_LIBRARIES is set then the MFC run time libraries are installed as well as the CRT run time libraries. If CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION is set then the libraries are installed to that directory rather than the default. If CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS is NOT set, then this file warns about required files that do not exist. You can set this variable to ON before including this file to avoid the warning. For example, the Visual Studio Express editions do not include the redistributable files, so if you include this file on a machine with only VS Express installed, you'll get the warning.</para>
    <para id="module_MacroAddFileDependencies"><sect2><title>MacroAddFileDependencies</title></sect2> MACRO_ADD_FILE_DEPENDENCIES(&lt;_file&gt; depend_files...)</para>

    <para>Using the macro MACRO_ADD_FILE_DEPENDENCIES() is discouraged. There are usually better ways to specify the correct dependencies.
</para><para>MACRO_ADD_FILE_DEPENDENCIES(&lt;_file&gt; depend_files...) is just a convenience  wrapper around the OBJECT_DEPENDS source file property. You can just use SET_PROPERTY(SOURCE &lt;file&gt; APPEND PROPERTY OBJECT_DEPENDS depend_files) instead.</para>
    <para id="module_ProcessorCount"><sect2><title>ProcessorCount</title></sect2> ProcessorCount(var)</para>

    <para>Determine the number of processors/cores and save value in ${var}
</para><para>Sets the variable named ${var} to the number of physical cores available on the machine if the information can be determined. Otherwise it is set to 0. Currently this functionality is implemented for AIX, cygwin, FreeBSD, HPUX, IRIX, Linux, Mac OS X, QNX, Sun and Windows.
</para><para>This function is guaranteed to return a positive integer (&gt;=1) if it succeeds. It returns 0 if there's a problem determining the processor count.
</para><para>Example use, in a ctest -S dashboard script:
</para><literallayout>   include(ProcessorCount)
   ProcessorCount(N)
   if(NOT N EQUAL 0)
     set(CTEST_BUILD_FLAGS -j${N})
     set(ctest_test_args ${ctest_test_args} PARALLEL_LEVEL ${N})
   endif()
</literallayout>
    <para>
</para><para>This function is intended to offer an approximation of the value of the number of compute cores available on the current machine, such that you may use that value for parallel building and parallel testing. It is meant to help utilize as much of the machine as seems reasonable. Of course, knowledge of what else might be running on the machine simultaneously should be used when deciding whether to request a machine's full capacity all for yourself.</para>
    <para id="module_Qt4ConfigDependentSettings"><sect2><title>Qt4ConfigDependentSettings</title></sect2>  </para>

    <para>This file is included by FindQt4.cmake, don't include it directly.</para>
    <para id="module_Qt4Macros"><sect2><title>Qt4Macros</title></sect2>  </para>

    <para>This file is included by FindQt4.cmake, don't include it directly.</para>
    <para id="module_SelectLibraryConfigurations"><sect2><title>SelectLibraryConfigurations</title></sect2>  </para>

    <para>select_library_configurations( basename )
</para><para>This macro takes a library base name as an argument, and will choose good values for basename_LIBRARY, basename_LIBRARIES, basename_LIBRARY_DEBUG, and basename_LIBRARY_RELEASE depending on what has been found and set.  If only basename_LIBRARY_RELEASE is defined, basename_LIBRARY, basename_LIBRARY_DEBUG, and basename_LIBRARY_RELEASE will be set to the release value.  If only basename_LIBRARY_DEBUG is defined, then basename_LIBRARY, basename_LIBRARY_DEBUG and basename_LIBRARY_RELEASE will take the debug value.  
</para><para>If the generator supports configuration types, then basename_LIBRARY and basename_LIBRARIES will be set with debug and optimized flags specifying the library to be used for the given configuration.  If no build type has been set or the generator in use does not support configuration types, then basename_LIBRARY and basename_LIBRARIES will take only the release values.</para>
    <para id="module_SquishTestScript"><sect2><title>SquishTestScript</title></sect2>  </para>

    <para>
</para><para>This script launches a GUI test using Squish.  You should not call the script directly; instead, you should access it via the SQUISH_ADD_TEST macro that is defined in FindSquish.cmake.
</para><para>This script starts the Squish server, launches the test on the client, and finally stops the squish server.  If any of these steps fail (including if the tests do not pass) then a fatal error is raised.
</para>
    <para id="module_TestBigEndian"><sect2><title>TestBigEndian</title></sect2> Define macro to determine endian type</para>

    <para>Check if the system is big endian or little endian
</para><literallayout>  TEST_BIG_ENDIAN(VARIABLE)
  VARIABLE - variable to store the result to
</literallayout>
    <para>
</para>
    <para id="module_TestCXXAcceptsFlag"><sect2><title>TestCXXAcceptsFlag</title></sect2> Test CXX compiler for a flag</para>

    <para>Check if the CXX compiler accepts a flag
</para><literallayout>  Macro CHECK_CXX_ACCEPTS_FLAG(FLAGS VARIABLE) -
     checks if the function exists
  FLAGS - the flags to try
  VARIABLE - variable to store the result
</literallayout>
    <para>
</para>
    <para id="module_TestForANSIForScope"><sect2><title>TestForANSIForScope</title></sect2> Check for ANSI for scope support</para>

    <para>Check if the compiler restricts the scope of variables declared in a for-init-statement to the loop body.
</para><literallayout>  CMAKE_NO_ANSI_FOR_SCOPE - holds result
</literallayout>
    <para>
</para>
    <para id="module_TestForANSIStreamHeaders"><sect2><title>TestForANSIStreamHeaders</title></sect2> Test for compiler support of ANSI stream headers iostream, etc.</para>

    <para>check if the compiler supports the standard ANSI iostream header (without the .h)
</para><literallayout>  CMAKE_NO_ANSI_STREAM_HEADERS - defined by the results
</literallayout>
    <para>
</para>
    <para id="module_TestForSSTREAM"><sect2><title>TestForSSTREAM</title></sect2> Test for compiler support of ANSI sstream header</para>

    <para>check if the compiler supports the standard ANSI sstream header
</para><literallayout>  CMAKE_NO_ANSI_STRING_STREAM - defined by the results
</literallayout>
    <para>
</para>
    <para id="module_TestForSTDNamespace"><sect2><title>TestForSTDNamespace</title></sect2> Test for std:: namespace support</para>

    <para>check if the compiler supports std:: on stl classes
</para><literallayout>  CMAKE_NO_STD_NAMESPACE - defined by the results
</literallayout>
    <para>
</para>
    <para id="module_UseEcos"><sect2><title>UseEcos</title></sect2> This module defines variables and macros required to build eCos application.</para>

    <para>This file contains the following macros: ECOS_ADD_INCLUDE_DIRECTORIES() - add the eCos include dirs ECOS_ADD_EXECUTABLE(name source1 ... sourceN ) - create an eCos executable ECOS_ADJUST_DIRECTORY(VAR source1 ... sourceN ) - adjusts the path of the source files and puts the result into VAR
</para><para>Macros for selecting the toolchain: ECOS_USE_ARM_ELF_TOOLS()       - enable the ARM ELF toolchain for the directory where it is called ECOS_USE_I386_ELF_TOOLS()      - enable the i386 ELF toolchain for the directory where it is called ECOS_USE_PPC_EABI_TOOLS()      - enable the PowerPC toolchain for the directory where it is called
</para><para>It contains the following variables: ECOS_DEFINITIONS ECOSCONFIG_EXECUTABLE ECOS_CONFIG_FILE               - defaults to ecos.ecc, if your eCos configuration file has a different name, adjust this variable for internal use only:
</para><literallayout>  ECOS_ADD_TARGET_LIB
</literallayout>
    
    <para id="module_UseJava"><sect2><title>UseJava</title></sect2> Use Module for Java</para>

    <para>This file provides functions for Java. It is assumed that FindJava.cmake has already been loaded.  See FindJava.cmake for information on how to load Java into your CMake project.
</para><para>add_jar(TARGET_NAME SRC1 SRC2 .. SRCN RCS1 RCS2 .. RCSN)
</para><para>This command creates a &lt;TARGET_NAME&gt;.jar. It compiles the given source files (SRC) and adds the given resource files (RCS) to the jar file. If only resource files are given then just a jar file is created.
</para><para>Additional instructions:
</para><literallayout>   To add compile flags to the target you can set these flags with
   the following variable:
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAVA_COMPILE_FLAGS -nowarn)
</literallayout>
    <para>
</para><literallayout>   To add a path or a jar file to the class path you can do this
   with the CMAKE_JAVA_INCLUDE_PATH variable.
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAVA_INCLUDE_PATH /usr/share/java/shibboleet.jar)
</literallayout>
    <para>
</para><literallayout>   To use a different output name for the target you can set it with:
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAVA_TARGET_OUTPUT_NAME shibboleet.jar)
       add_jar(foobar foobar.java)
</literallayout>
    <para>
</para><literallayout>   To use a different output directory than CMAKE_CURRENT_BINARY_DIR
   you can set it with:
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAVA_TARGET_OUTPUT_DIR ${PROJECT_BINARY_DIR}/bin)
</literallayout>
    <para>
</para><literallayout>   To define an entry point in your jar you can set it with:
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAVA_JAR_ENTRY_POINT com/examples/MyProject/Main)
</literallayout>
    <para>
</para><literallayout>   To add a VERSION to the target output name you can set it using
   CMAKE_JAVA_TARGET_VERSION. This will create a jar file with the name
   shibboleet-1.0.0.jar and will create a symlink shibboleet.jar
   pointing to the jar with the version information.
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAVA_TARGET_VERSION 1.2.0)
       add_jar(shibboleet shibbotleet.java)
</literallayout>
    <para>
</para><literallayout>    If the target is a JNI library, utilize the following commands to
    create a JNI symbolic link:
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JNI_TARGET TRUE)
       set(CMAKE_JAVA_TARGET_VERSION 1.2.0)
       add_jar(shibboleet shibbotleet.java)
       install_jar(shibboleet ${LIB_INSTALL_DIR}/shibboleet)
       install_jni_symlink(shibboleet ${JAVA_LIB_INSTALL_DIR})
</literallayout>
    <para>
</para><literallayout>    If a single target needs to produce more than one jar from its
    java source code, to prevent the accumulation of duplicate class
    files in subsequent jars, set/reset CMAKE_JAR_CLASSES_PREFIX prior
    to calling the add_jar() function:
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAR_CLASSES_PREFIX com/redhat/foo)
       add_jar(foo foo.java)
</literallayout>
    <para>
</para><literallayout>       set(CMAKE_JAR_CLASSES_PREFIX com/redhat/bar)
       add_jar(bar bar.java)
</literallayout>
    <para>
</para><para>Target Properties:
</para><literallayout>   The add_jar() functions sets some target properties. You can get these
   properties with the
      get_property(TARGET &lt;target_name&gt; PROPERTY &lt;propery_name&gt;)
   command.
</literallayout>
    <para>
</para><literallayout>   INSTALL_FILES      The files which should be installed. This is used by
                      install_jar().
   JNI_SYMLINK        The JNI symlink which should be installed.
                      This is used by install_jni_symlink().
   JAR_FILE           The location of the jar file so that you can include
                      it.
   CLASS_DIR          The directory where the class files can be found. For
                      example to use them with javah.
</literallayout>
    <para>
</para><para>find_jar(&lt;VAR&gt;
</para><literallayout>          name | NAMES name1 [name2 ...]
          [PATHS path1 [path2 ... ENV var]]
          [VERSIONS version1 [version2]]
          [DOC "cache documentation string"]
         )
</literallayout>
    <para>
</para><para>This command is used to find a full path to the named jar. A cache entry named by &lt;VAR&gt; is created to stor the result of this command. If the full path to a jar is found the result is stored in the variable and the search will not repeated unless the variable is cleared. If nothing is found, the result will be &lt;VAR&gt;-NOTFOUND, and the search will be attempted again next time find_jar is invoked with the same variable. The name of the full path to a file that is searched for is specified by the names listed after NAMES argument. Additional search locations can be specified after the PATHS argument. If you require special a version of a jar file you can specify it with the VERSIONS argument. The argument after DOC will be used for the documentation string in the cache.
</para><para>install_jar(TARGET_NAME DESTINATION)
</para><para>This command installs the TARGET_NAME files to the given DESTINATION. It should be called in the same scope as add_jar() or it will fail.
</para><para>install_jni_symlink(TARGET_NAME DESTINATION)
</para><para>This command installs the TARGET_NAME JNI symlinks to the given DESTINATION. It should be called in the same scope as add_jar() or it will fail.
</para><para>create_javadoc(&lt;VAR&gt;
</para><literallayout>                PACKAGES pkg1 [pkg2 ...]
                [SOURCEPATH &lt;sourcepath&gt;]
                [CLASSPATH &lt;classpath&gt;]
                [INSTALLPATH &lt;install path&gt;]
                [DOCTITLE "the documentation title"]
                [WINDOWTITLE "the title of the document"]
                [AUTHOR TRUE|FALSE]
                [USE TRUE|FALSE]
                [VERSION TRUE|FALSE]
               )
</literallayout>
    <para>
</para><para>Create java documentation based on files or packages. For more details please read the javadoc manpage.
</para><para>There are two main signatures for create_javadoc. The first signature works with package names on a path with source files:
</para><literallayout>   Example:
   create_javadoc(my_example_doc
     PACKAGES com.exmaple.foo com.example.bar
     SOURCEPATH ${CMAKE_CURRENT_SOURCE_PATH}
     CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}
     WINDOWTITLE "My example"
     DOCTITLE "&lt;h1&gt;My example&lt;/h1&gt;"
     AUTHOR TRUE
     USE TRUE
     VERSION TRUE
   )
</literallayout>
    <para>
</para><para>The second signature for create_javadoc works on a given list of files.
</para><literallayout>   create_javadoc(&lt;VAR&gt;
                  FILES file1 [file2 ...]
                  [CLASSPATH &lt;classpath&gt;]
                  [INSTALLPATH &lt;install path&gt;]
                  [DOCTITLE "the documentation title"]
                  [WINDOWTITLE "the title of the document"]
                  [AUTHOR TRUE|FALSE]
                  [USE TRUE|FALSE]
                  [VERSION TRUE|FALSE]
                 )
</literallayout>
    <para>
</para><para>Example:
</para><literallayout>   create_javadoc(my_example_doc
     FILES ${example_SRCS}
     CLASSPATH ${CMAKE_JAVA_INCLUDE_PATH}
     WINDOWTITLE "My example"
     DOCTITLE "&lt;h1&gt;My example&lt;/h1&gt;"
     AUTHOR TRUE
     USE TRUE
     VERSION TRUE
   )
</literallayout>
    <para>
</para><para>Both signatures share most of the options. These options are the same as what you can find in the javadoc manpage. Please look at the manpage for CLASSPATH, DOCTITLE, WINDOWTITLE, AUTHOR, USE and VERSION.
</para><para>The documentation will be by default installed to
</para><literallayout>   ${CMAKE_INSTALL_PREFIX}/share/javadoc/&lt;VAR&gt;
</literallayout>
    <para>
</para><para>if you don't set the INSTALLPATH.
</para>
    <para id="module_UseJavaClassFilelist"><sect2><title>UseJavaClassFilelist</title></sect2>  </para>

    <para>
</para><para>This script create a list of compiled Java class files to be added to a jar file. This avoids including cmake files which get created in the binary directory.
</para>
    <para id="module_UseJavaSymlinks"><sect2><title>UseJavaSymlinks</title></sect2>  </para>

    <para>
</para><para>Helper script for UseJava.cmake
</para>
    <para id="module_UsePkgConfig"><sect2><title>UsePkgConfig</title></sect2> Obsolete pkg-config module for CMake, use FindPkgConfig instead.</para>

    <para>
</para><para>This module defines the following macro:
</para><para>PKGCONFIG(package includedir libdir linkflags cflags)
</para><para>Calling PKGCONFIG will fill the desired information into the 4 given arguments, e.g. PKGCONFIG(libart-2.0 LIBART_INCLUDE_DIR LIBART_LINK_DIR LIBART_LINK_FLAGS LIBART_CFLAGS) if pkg-config was NOT found or the specified software package doesn't exist, the variable will be empty when the function returns, otherwise they will contain the respective information
</para>
    <para id="module_UseQt4"><sect2><title>UseQt4</title></sect2> Use Module for QT4</para>

    <para>Sets up C and C++ to use Qt 4.  It is assumed that FindQt.cmake has already been loaded.  See FindQt.cmake for information on how to load Qt 4 into your CMake project.</para>
    <para id="module_UseSWIG"><sect2><title>UseSWIG</title></sect2> SWIG module for CMake</para>

    <para>Defines the following macros:
</para><literallayout>   SWIG_ADD_MODULE(name language [ files ])
     - Define swig module with given name and specified language
   SWIG_LINK_LIBRARIES(name [ libraries ])
     - Link libraries to swig module
</literallayout>
    <para>All other macros are for internal use only. To get the actual name of the swig module, use: ${SWIG_MODULE_${name}_REAL_NAME}. Set Source files properties such as CPLUSPLUS and SWIG_FLAGS to specify special behavior of SWIG. Also global CMAKE_SWIG_FLAGS can be used to add special flags to all swig calls. Another special variable is CMAKE_SWIG_OUTDIR, it allows one to specify  where to write all the swig generated module (swig -outdir option) The name-specific variable SWIG_MODULE_&lt;name&gt;_EXTRA_DEPS may be used to specify extra dependencies for the generated modules. If the source file generated by swig need some special flag you can use SET_SOURCE_FILES_PROPERTIES( ${swig_generated_file_fullname}
</para><literallayout>        PROPERTIES COMPILE_FLAGS "-bla")
</literallayout>
    
    <para id="module_Use_wxWindows"><sect2><title>Use_wxWindows</title></sect2> ---------------------------------------------------</para>

    <para>
</para><para>This convenience include finds if wxWindows is installed and set the appropriate libs, incdirs, flags etc. author Jan Woetzel &lt;jw -at- mip.informatik.uni-kiel.de&gt; (07/2003) USAGE:
</para><literallayout>   just include Use_wxWindows.cmake
   in your projects CMakeLists.txt
</literallayout>
    <para>INCLUDE( ${CMAKE_MODULE_PATH}/Use_wxWindows.cmake)
</para><literallayout>   if you are sure you need GL then
</literallayout>
    <para>SET(WXWINDOWS_USE_GL 1)
</para><literallayout>   *before* you include this file.
</literallayout>
    
    <para id="module_UsewxWidgets"><sect2><title>UsewxWidgets</title></sect2> Convenience include for using wxWidgets library.</para>

    <para>Determines if wxWidgets was FOUND and sets the appropriate libs, incdirs, flags, etc. INCLUDE_DIRECTORIES and LINK_DIRECTORIES are called.
</para><para>USAGE
</para><literallayout>  # Note that for MinGW users the order of libs is important!
  FIND_PACKAGE(wxWidgets REQUIRED net gl core base)
  INCLUDE(${wxWidgets_USE_FILE})
  # and for each of your dependent executable/library targets:
  TARGET_LINK_LIBRARIES(&lt;YourTarget&gt; ${wxWidgets_LIBRARIES})
</literallayout>
    <para>
</para><para>DEPRECATED
</para><literallayout>  LINK_LIBRARIES is not called in favor of adding dependencies per target.
</literallayout>
    <para>
</para><para>AUTHOR
</para><literallayout>  Jan Woetzel &lt;jw -at- mip.informatik.uni-kiel.de&gt;
</literallayout>
    
    <para id="module_WriteBasicConfigVersionFile"><sect2><title>WriteBasicConfigVersionFile</title></sect2>  </para>

    <literallayout>  WRITE_BASIC_CONFIG_VERSION_FILE( filename VERSION major.minor.patch COMPATIBILITY (AnyNewerVersion|SameMajorVersion) )
</literallayout>
    <para>
</para><para>Deprecated, see WRITE_BASIC_PACKAGE_VERSION_FILE(), it is identical.</para>
</sect1>
<sect1 id="section_Variables">
<title>
Variables</title>
</sect1>
<sect1 id="section_Variables That Change Behavior">
<title>
Variables That Change Behavior</title>
<itemizedlist>
    <listitem><link linkend="variable_BUILD_SHARED_LIBS"><emphasis><literal>BUILD_SHARED_LIBS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_AUTOMOC_RELAXED_MODE"><emphasis><literal>CMAKE_AUTOMOC_RELAXED_MODE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_BACKWARDS_COMPATIBILITY"><emphasis><literal>CMAKE_BACKWARDS_COMPATIBILITY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_BUILD_TYPE"><emphasis><literal>CMAKE_BUILD_TYPE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_COLOR_MAKEFILE"><emphasis><literal>CMAKE_COLOR_MAKEFILE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CONFIGURATION_TYPES"><emphasis><literal>CMAKE_CONFIGURATION_TYPES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt;"><emphasis><literal>CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_FIND_LIBRARY_PREFIXES"><emphasis><literal>CMAKE_FIND_LIBRARY_PREFIXES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_FIND_LIBRARY_SUFFIXES"><emphasis><literal>CMAKE_FIND_LIBRARY_SUFFIXES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_FIND_PACKAGE_WARN_NO_MODULE"><emphasis><literal>CMAKE_FIND_PACKAGE_WARN_NO_MODULE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_IGNORE_PATH"><emphasis><literal>CMAKE_IGNORE_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_INCLUDE_PATH"><emphasis><literal>CMAKE_INCLUDE_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_INSTALL_PREFIX"><emphasis><literal>CMAKE_INSTALL_PREFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LIBRARY_PATH"><emphasis><literal>CMAKE_LIBRARY_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_MFC_FLAG"><emphasis><literal>CMAKE_MFC_FLAG</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_MODULE_PATH"><emphasis><literal>CMAKE_MODULE_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_NOT_USING_CONFIG_FLAGS"><emphasis><literal>CMAKE_NOT_USING_CONFIG_FLAGS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;"><emphasis><literal>CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_PREFIX_PATH"><emphasis><literal>CMAKE_PREFIX_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_PROGRAM_PATH"><emphasis><literal>CMAKE_PROGRAM_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SKIP_INSTALL_ALL_DEPENDENCY"><emphasis><literal>CMAKE_SKIP_INSTALL_ALL_DEPENDENCY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_IGNORE_PATH"><emphasis><literal>CMAKE_SYSTEM_IGNORE_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_INCLUDE_PATH"><emphasis><literal>CMAKE_SYSTEM_INCLUDE_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_LIBRARY_PATH"><emphasis><literal>CMAKE_SYSTEM_LIBRARY_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_PREFIX_PATH"><emphasis><literal>CMAKE_SYSTEM_PREFIX_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_PROGRAM_PATH"><emphasis><literal>CMAKE_SYSTEM_PROGRAM_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_USER_MAKE_RULES_OVERRIDE"><emphasis><literal>CMAKE_USER_MAKE_RULES_OVERRIDE</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="variable_BUILD_SHARED_LIBS"><sect2><title>BUILD_SHARED_LIBS</title></sect2> Global flag to cause add_library to create shared libraries if on.</para>

    <para>If present and true, this will cause all libraries to be built shared unless the library was explicitly added as a static library.  This variable is often added to projects as an OPTION so that each user of a project can decide if they want to build the project using shared or static libraries.</para>
    <para id="variable_CMAKE_AUTOMOC_RELAXED_MODE"><sect2><title>CMAKE_AUTOMOC_RELAXED_MODE</title></sect2> Switch between strict and relaxed automoc mode.</para>

    <para>By default, automoc behaves exactly as described in the documentation of the AUTOMOC target property.  When set to TRUE, it accepts more input and tries to find the correct input file for moc even if it differs from the documented behaviour. In this mode it e.g. also checks whether a header file is intended to be processed by moc when a "foo.moc" file has been included.
</para><para>Relaxed mode has to be enabled for KDE4 compatibility.</para>
    <para id="variable_CMAKE_BACKWARDS_COMPATIBILITY"><sect2><title>CMAKE_BACKWARDS_COMPATIBILITY</title></sect2> Version of cmake required to build project</para>

    <para>From the point of view of backwards compatibility, this specifies what version of CMake should be supported. By default this value is the version number of CMake that you are running. You can set this to an older version of CMake to support deprecated commands of CMake in projects that were written to use older versions of CMake. This can be set by the user or set at the beginning of a CMakeLists file.</para>
    <para id="variable_CMAKE_BUILD_TYPE"><sect2><title>CMAKE_BUILD_TYPE</title></sect2> Specifies the build type for make based generators.</para>

    <para>This specifies what build type will be built in this tree.  Possible values are empty, Debug, Release, RelWithDebInfo and MinSizeRel. This variable is only supported for make based generators. If this variable is supported, then CMake will also provide initial values for the variables with the name  CMAKE_C_FLAGS_[DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL]. For example, if CMAKE_BUILD_TYPE is Debug, then CMAKE_C_FLAGS_DEBUG will be added to the CMAKE_C_FLAGS.</para>
    <para id="variable_CMAKE_COLOR_MAKEFILE"><sect2><title>CMAKE_COLOR_MAKEFILE</title></sect2> Enables color output when using the Makefile generator.</para>

    <para>When enabled, the generated Makefiles will produce colored output. Default is ON.</para>
    <para id="variable_CMAKE_CONFIGURATION_TYPES"><sect2><title>CMAKE_CONFIGURATION_TYPES</title></sect2> Specifies the available build types.</para>

    <para>This specifies what build types will be available such as Debug, Release, RelWithDebInfo etc. This has reasonable defaults on most platforms. But can be extended to provide other build types. See also CMAKE_BUILD_TYPE.</para>
    <para id="variable_CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt;"><sect2><title>CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt;</title></sect2> Variable for disabling find_package() calls.</para>

    <para>Every non-REQUIRED find_package() call in a project can be disabled by setting the variable CMAKE_DISABLE_FIND_PACKAGE_&lt;PackageName&gt; to TRUE. This can be used to build a project without an optional package, although that package is installed.
</para><para>This switch should be used during the initial CMake run. Otherwise if the package has already been found in a previous CMake run, the variables which have been stored in the cache will still be there. In the case it is recommended to remove the cache variables for this package from the cache using the cache editor or cmake -U</para>
    <para id="variable_CMAKE_FIND_LIBRARY_PREFIXES"><sect2><title>CMAKE_FIND_LIBRARY_PREFIXES</title></sect2> Prefixes to prepend when looking for libraries.</para>

    <para>This specifies what prefixes to add to library names when the find_library command looks for libraries. On UNIX systems this is typically lib, meaning that when trying to find the foo library it will look for libfoo.</para>
    <para id="variable_CMAKE_FIND_LIBRARY_SUFFIXES"><sect2><title>CMAKE_FIND_LIBRARY_SUFFIXES</title></sect2> Suffixes to append when looking for libraries.</para>

    <para>This specifies what suffixes to add to library names when the find_library command looks for libraries. On Windows systems this is typically .lib and .dll, meaning that when trying to find the foo library it will look for foo.dll etc.</para>
    <para id="variable_CMAKE_FIND_PACKAGE_WARN_NO_MODULE"><sect2><title>CMAKE_FIND_PACKAGE_WARN_NO_MODULE</title></sect2> Tell find_package to warn if called without an explicit mode.</para>

    <para>If find_package is called without an explicit mode option (MODULE, CONFIG or NO_MODULE) and no Find&lt;pkg&gt;.cmake module is in CMAKE_MODULE_PATH then CMake implicitly assumes that the caller intends to search for a package configuration file.  If no package configuration file is found then the wording of the failure message must account for both the case that the package is really missing and the case that the project has a bug and failed to provide the intended Find module.  If instead the caller specifies an explicit mode option then the failure message can be more specific.
</para><para>Set CMAKE_FIND_PACKAGE_WARN_NO_MODULE to TRUE to tell find_package to warn when it implicitly assumes Config mode.  This helps developers enforce use of an explicit mode in all calls to find_package within a project.</para>
    <para id="variable_CMAKE_IGNORE_PATH"><sect2><title>CMAKE_IGNORE_PATH</title></sect2> Path to be ignored by FIND_XXX() commands.</para>

    <para>Specifies directories to be ignored by searches in FIND_XXX() commands This is useful in cross-compiled environments where some system directories contain incompatible but possibly linkable libraries. For example, on cross-compiled cluster environments, this allows a user to ignore directories containing libraries meant for the front-end machine that modules like FindX11 (and others) would normally search. By default this is empty; it is intended to be set by the project. Note that CMAKE_IGNORE_PATH takes a list of directory names, NOT a list of prefixes. If you want to ignore paths under prefixes (bin, include, lib, etc.), you'll need to specify them explicitly. See also CMAKE_PREFIX_PATH, CMAKE_LIBRARY_PATH, CMAKE_INCLUDE_PATH, CMAKE_PROGRAM_PATH.</para>
    <para id="variable_CMAKE_INCLUDE_PATH"><sect2><title>CMAKE_INCLUDE_PATH</title></sect2> Path used for searching by FIND_FILE() and FIND_PATH().</para>

    <para>Specifies a path which will be used both by FIND_FILE() and FIND_PATH(). Both commands will check each of the contained directories for the existence of the file which is currently searched. By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_PREFIX_PATH.</para>
    <para id="variable_CMAKE_INSTALL_PREFIX"><sect2><title>CMAKE_INSTALL_PREFIX</title></sect2> Install directory used by install.</para>

    <para>If "make install" is invoked or INSTALL is built, this directory is pre-pended onto all install directories. This variable defaults to /usr/local on UNIX and c:/Program Files on Windows.</para>
    <para id="variable_CMAKE_LIBRARY_PATH"><sect2><title>CMAKE_LIBRARY_PATH</title></sect2> Path used for searching by FIND_LIBRARY().</para>

    <para>Specifies a path which will be used by FIND_LIBRARY(). FIND_LIBRARY() will check each of the contained directories for the existence of the library which is currently searched. By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_LIBRARY_PATH, CMAKE_PREFIX_PATH.</para>
    <para id="variable_CMAKE_MFC_FLAG"><sect2><title>CMAKE_MFC_FLAG</title></sect2> Tell cmake to use MFC for an executable or dll.</para>

    <para>This can be set in a CMakeLists.txt file and will enable MFC in the application.  It should be set to 1 for static the static MFC library, and 2 for the shared MFC library.  This is used in visual studio 6 and 7 project files.   The CMakeSetup dialog used MFC and the CMakeLists.txt looks like this:
</para><para>add_definitions(-D_AFXDLL)
</para><para>set(CMAKE_MFC_FLAG 2)
</para><para>add_executable(CMakeSetup WIN32 ${SRCS})
</para>
    <para id="variable_CMAKE_MODULE_PATH"><sect2><title>CMAKE_MODULE_PATH</title></sect2> List of directories to search for CMake modules.</para>

    <para>Commands like include() and find_package() search for files in directories listed by this variable before checking the default modules that come with CMake.</para>
    <para id="variable_CMAKE_NOT_USING_CONFIG_FLAGS"><sect2><title>CMAKE_NOT_USING_CONFIG_FLAGS</title></sect2> Skip _BUILD_TYPE flags if true.</para>

    <para>This is an internal flag used by the generators in CMake to tell CMake to skip the _BUILD_TYPE flags.</para>
    <para id="variable_CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;"><sect2><title>CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;</title></sect2> Default for CMake Policy CMP&lt;NNNN&gt; when it is otherwise left unset.</para>

    <para>Commands cmake_minimum_required(VERSION) and cmake_policy(VERSION) by default leave policies introduced after the given version unset.  Set CMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt; to OLD or NEW to specify the default for policy CMP&lt;NNNN&gt;, where &lt;NNNN&gt; is the policy number.
</para><para>This variable should not be set by a project in CMake code; use cmake_policy(SET) instead.  Users running CMake may set this variable in the cache (e.g. -DCMAKE_POLICY_DEFAULT_CMP&lt;NNNN&gt;=&lt;OLD|NEW&gt;) to set a policy not otherwise set by the project.  Set to OLD to quiet a policy warning while using old behavior or to NEW to try building the project with new behavior.</para>
    <para id="variable_CMAKE_PREFIX_PATH"><sect2><title>CMAKE_PREFIX_PATH</title></sect2> Path used for searching by FIND_XXX(), with appropriate suffixes added.</para>

    <para>Specifies a path which will be used by the FIND_XXX() commands. It contains the "base" directories, the FIND_XXX() commands append appropriate subdirectories to the base directories. So FIND_PROGRAM() adds /bin to each of the directories in the path, FIND_LIBRARY() appends /lib to each of the directories, and FIND_PATH() and FIND_FILE() append /include . By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_PREFIX_PATH, CMAKE_INCLUDE_PATH, CMAKE_LIBRARY_PATH, CMAKE_PROGRAM_PATH.</para>
    <para id="variable_CMAKE_PROGRAM_PATH"><sect2><title>CMAKE_PROGRAM_PATH</title></sect2> Path used for searching by FIND_PROGRAM().</para>

    <para>Specifies a path which will be used by FIND_PROGRAM(). FIND_PROGRAM() will check each of the contained directories for the existence of the program which is currently searched. By default it is empty, it is intended to be set by the project. See also CMAKE_SYSTEM_PROGRAM_PATH,  CMAKE_PREFIX_PATH.</para>
    <para id="variable_CMAKE_SKIP_INSTALL_ALL_DEPENDENCY"><sect2><title>CMAKE_SKIP_INSTALL_ALL_DEPENDENCY</title></sect2> Don't make the install target depend on the all target.</para>

    <para>By default, the "install" target depends on the "all" target. This has the effect, that when "make install" is invoked or INSTALL is built, first the "all" target is built, then the installation starts. If CMAKE_SKIP_INSTALL_ALL_DEPENDENCY is set to TRUE, this dependency is not created, so the installation process will start immediately, independent from whether the project has been completely built or not.</para>
    <para id="variable_CMAKE_SYSTEM_IGNORE_PATH"><sect2><title>CMAKE_SYSTEM_IGNORE_PATH</title></sect2> Path to be ignored by FIND_XXX() commands.</para>

    <para>Specifies directories to be ignored by searches in FIND_XXX() commands This is useful in cross-compiled environments where some system directories contain incompatible but possibly linkable libraries. For example, on cross-compiled cluster environments, this allows a user to ignore directories containing libraries meant for the front-end machine that modules like FindX11 (and others) would normally search. By default this contains a list of directories containing incompatible binaries for the host system. See also CMAKE_SYSTEM_PREFIX_PATH, CMAKE_SYSTEM_LIBRARY_PATH, CMAKE_SYSTEM_INCLUDE_PATH, and CMAKE_SYSTEM_PROGRAM_PATH.</para>
    <para id="variable_CMAKE_SYSTEM_INCLUDE_PATH"><sect2><title>CMAKE_SYSTEM_INCLUDE_PATH</title></sect2> Path used for searching by FIND_FILE() and FIND_PATH().</para>

    <para>Specifies a path which will be used both by FIND_FILE() and FIND_PATH(). Both commands will check each of the contained directories for the existence of the file which is currently searched. By default it contains the standard directories for the current system. It is NOT intended to be modified by the project, use CMAKE_INCLUDE_PATH for this. See also CMAKE_SYSTEM_PREFIX_PATH.</para>
    <para id="variable_CMAKE_SYSTEM_LIBRARY_PATH"><sect2><title>CMAKE_SYSTEM_LIBRARY_PATH</title></sect2> Path used for searching by FIND_LIBRARY().</para>

    <para>Specifies a path which will be used by FIND_LIBRARY(). FIND_LIBRARY() will check each of the contained directories for the existence of the library which is currently searched. By default it contains the standard directories for the current system. It is NOT intended to be modified by the project, use CMAKE_LIBRARY_PATH for this. See also CMAKE_SYSTEM_PREFIX_PATH.</para>
    <para id="variable_CMAKE_SYSTEM_PREFIX_PATH"><sect2><title>CMAKE_SYSTEM_PREFIX_PATH</title></sect2> Path used for searching by FIND_XXX(), with appropriate suffixes added.</para>

    <para>Specifies a path which will be used by the FIND_XXX() commands. It contains the "base" directories, the FIND_XXX() commands append appropriate subdirectories to the base directories. So FIND_PROGRAM() adds /bin to each of the directories in the path, FIND_LIBRARY() appends /lib to each of the directories, and FIND_PATH() and FIND_FILE() append /include . By default this contains the standard directories for the current system. It is NOT intended to be modified by the project, use CMAKE_PREFIX_PATH for this. See also CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_SYSTEM_LIBRARY_PATH, CMAKE_SYSTEM_PROGRAM_PATH, and CMAKE_SYSTEM_IGNORE_PATH.</para>
    <para id="variable_CMAKE_SYSTEM_PROGRAM_PATH"><sect2><title>CMAKE_SYSTEM_PROGRAM_PATH</title></sect2> Path used for searching by FIND_PROGRAM().</para>

    <para>Specifies a path which will be used by FIND_PROGRAM(). FIND_PROGRAM() will check each of the contained directories for the existence of the program which is currently searched. By default it contains the standard directories for the current system. It is NOT intended to be modified by the project, use CMAKE_PROGRAM_PATH for this. See also CMAKE_SYSTEM_PREFIX_PATH.</para>
    <para id="variable_CMAKE_USER_MAKE_RULES_OVERRIDE"><sect2><title>CMAKE_USER_MAKE_RULES_OVERRIDE</title></sect2> Specify a CMake file that overrides platform information.</para>

    <para>CMake loads the specified file while enabling support for each language from either the project() or enable_language() commands.  It is loaded after CMake's builtin compiler and platform information modules have been loaded but before the information is used.  The file may set platform information variables to override CMake's defaults.
</para><para>This feature is intended for use only in overriding information variables that must be set before CMake builds its first test project to check that the compiler for a language works.  It should not be used to load a file in cases that a normal include() will work.  Use it only as a last resort for behavior that cannot be achieved any other way.  For example, one may set CMAKE_C_FLAGS_INIT to change the default value used to initialize CMAKE_C_FLAGS before it is cached.  The override file should NOT be used to set anything that could be set after languages are enabled, such as variables like CMAKE_RUNTIME_OUTPUT_DIRECTORY that affect the placement of binaries.  Information set in the file will be used for try_compile and try_run builds too.</para>
</sect1>
<sect1 id="section_Variables That Describe the System">
<title>
Variables That Describe the System</title>
<itemizedlist>
    <listitem><link linkend="variable_APPLE"><emphasis><literal>APPLE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_BORLAND"><emphasis><literal>BORLAND</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CL_64"><emphasis><literal>CMAKE_CL_64</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_COMPILER_2005"><emphasis><literal>CMAKE_COMPILER_2005</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOST_APPLE"><emphasis><literal>CMAKE_HOST_APPLE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOST_SYSTEM"><emphasis><literal>CMAKE_HOST_SYSTEM</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOST_SYSTEM_NAME"><emphasis><literal>CMAKE_HOST_SYSTEM_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOST_SYSTEM_PROCESSOR"><emphasis><literal>CMAKE_HOST_SYSTEM_PROCESSOR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOST_SYSTEM_VERSION"><emphasis><literal>CMAKE_HOST_SYSTEM_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOST_UNIX"><emphasis><literal>CMAKE_HOST_UNIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOST_WIN32"><emphasis><literal>CMAKE_HOST_WIN32</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LIBRARY_ARCHITECTURE"><emphasis><literal>CMAKE_LIBRARY_ARCHITECTURE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LIBRARY_ARCHITECTURE_REGEX"><emphasis><literal>CMAKE_LIBRARY_ARCHITECTURE_REGEX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_OBJECT_PATH_MAX"><emphasis><literal>CMAKE_OBJECT_PATH_MAX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM"><emphasis><literal>CMAKE_SYSTEM</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_NAME"><emphasis><literal>CMAKE_SYSTEM_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_PROCESSOR"><emphasis><literal>CMAKE_SYSTEM_PROCESSOR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SYSTEM_VERSION"><emphasis><literal>CMAKE_SYSTEM_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CYGWIN"><emphasis><literal>CYGWIN</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_MSVC"><emphasis><literal>MSVC</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_MSVC80"><emphasis><literal>MSVC80</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_MSVC_IDE"><emphasis><literal>MSVC_IDE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_MSVC_VERSION"><emphasis><literal>MSVC_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_UNIX"><emphasis><literal>UNIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_WIN32"><emphasis><literal>WIN32</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_XCODE_VERSION"><emphasis><literal>XCODE_VERSION</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="variable_APPLE"><sect2><title>APPLE</title></sect2> True if running on Mac OSX.</para>

    <para>Set to true on Mac OSX.</para>
    <para id="variable_BORLAND"><sect2><title>BORLAND</title></sect2> True if the borland compiler is being used.</para>

    <para>This is set to true if the Borland compiler is being used.</para>
    <para id="variable_CMAKE_CL_64"><sect2><title>CMAKE_CL_64</title></sect2> Using the 64 bit compiler from Microsoft</para>

    <para>Set to true when using the 64 bit cl compiler from Microsoft.</para>
    <para id="variable_CMAKE_COMPILER_2005"><sect2><title>CMAKE_COMPILER_2005</title></sect2> Using the Visual Studio 2005 compiler from Microsoft</para>

    <para>Set to true when using the Visual Studio 2005 compiler from Microsoft.</para>
    <para id="variable_CMAKE_HOST_APPLE"><sect2><title>CMAKE_HOST_APPLE</title></sect2> True for Apple OSXoperating systems.</para>

    <para>Set to true when the host system is Apple OSX.</para>
    <para id="variable_CMAKE_HOST_SYSTEM"><sect2><title>CMAKE_HOST_SYSTEM</title></sect2> Name of system cmake is being run on.</para>

    <para>The same as CMAKE_SYSTEM but for the host system instead of the target system when cross compiling.</para>
    <para id="variable_CMAKE_HOST_SYSTEM_NAME"><sect2><title>CMAKE_HOST_SYSTEM_NAME</title></sect2> Name of the OS CMake is running on.</para>

    <para>The same as CMAKE_SYSTEM_NAME but for the host system instead of the target system when cross compiling.</para>
    <para id="variable_CMAKE_HOST_SYSTEM_PROCESSOR"><sect2><title>CMAKE_HOST_SYSTEM_PROCESSOR</title></sect2> The name of the CPU CMake is running on.</para>

    <para>The same as CMAKE_SYSTEM_PROCESSOR but for the host system instead of the target system when cross compiling.</para>
    <para id="variable_CMAKE_HOST_SYSTEM_VERSION"><sect2><title>CMAKE_HOST_SYSTEM_VERSION</title></sect2> OS version CMake is running on.</para>

    <para>The same as CMAKE_SYSTEM_VERSION but for the host system instead of the target system when cross compiling.</para>
    <para id="variable_CMAKE_HOST_UNIX"><sect2><title>CMAKE_HOST_UNIX</title></sect2> True for UNIX and UNIX like operating systems.</para>

    <para>Set to true when the host system is UNIX or UNIX like (i.e. APPLE and CYGWIN).</para>
    <para id="variable_CMAKE_HOST_WIN32"><sect2><title>CMAKE_HOST_WIN32</title></sect2> True on windows systems, including win64.</para>

    <para>Set to true when the host system is Windows and on cygwin.</para>
    <para id="variable_CMAKE_LIBRARY_ARCHITECTURE"><sect2><title>CMAKE_LIBRARY_ARCHITECTURE</title></sect2> Target architecture library directory name, if detected.</para>

    <para>This is the value of CMAKE_&lt;lang&gt;_LIBRARY_ARCHITECTURE as detected for one of the enabled languages.</para>
    <para id="variable_CMAKE_LIBRARY_ARCHITECTURE_REGEX"><sect2><title>CMAKE_LIBRARY_ARCHITECTURE_REGEX</title></sect2> Regex matching possible target architecture library directory names.</para>

    <para>This is used to detect CMAKE_&lt;lang&gt;_LIBRARY_ARCHITECTURE from the implicit linker search path by matching the &lt;arch&gt; name.</para>
    <para id="variable_CMAKE_OBJECT_PATH_MAX"><sect2><title>CMAKE_OBJECT_PATH_MAX</title></sect2> Maximum object file full-path length allowed by native build tools.</para>

    <para>CMake computes for every source file an object file name that is unique to the source file and deterministic with respect to the full path to the source file.  This allows multiple source files in a target to share the same name if they lie in different directories without rebuilding when one is added or removed.  However, it can produce long full paths in a few cases, so CMake shortens the path using a hashing scheme when the full path to an object file exceeds a limit.  CMake has a built-in limit for each platform that is sufficient for common tools, but some native tools may have a lower limit.  This variable may be set to specify the limit explicitly.  The value must be an integer no less than 128.</para>
    <para id="variable_CMAKE_SYSTEM"><sect2><title>CMAKE_SYSTEM</title></sect2> Name of system cmake is compiling for.</para>

    <para>This variable is the composite of CMAKE_SYSTEM_NAME and CMAKE_SYSTEM_VERSION, like this ${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_VERSION}. If CMAKE_SYSTEM_VERSION is not set, then CMAKE_SYSTEM is the same as CMAKE_SYSTEM_NAME.</para>
    <para id="variable_CMAKE_SYSTEM_NAME"><sect2><title>CMAKE_SYSTEM_NAME</title></sect2> Name of the OS CMake is building for.</para>

    <para>This is the name of the operating system on which CMake is targeting.   On systems that have the uname command, this variable is set to the output of uname -s.  Linux, Windows,  and Darwin for Mac OSX are the values found  on the big three operating systems.</para>
    <para id="variable_CMAKE_SYSTEM_PROCESSOR"><sect2><title>CMAKE_SYSTEM_PROCESSOR</title></sect2> The name of the CPU CMake is building for.</para>

    <para>On systems that support uname, this variable is set to the output of uname -p, on windows it is set to the value of the environment variable PROCESSOR_ARCHITECTURE</para>
    <para id="variable_CMAKE_SYSTEM_VERSION"><sect2><title>CMAKE_SYSTEM_VERSION</title></sect2> OS version CMake is building for.</para>

    <para>A numeric version string for the system, on systems that support uname, this variable is set to the output of uname -r. On other systems this is set to major-minor version numbers.</para>
    <para id="variable_CYGWIN"><sect2><title>CYGWIN</title></sect2> True for cygwin.</para>

    <para>Set to true when using CYGWIN.</para>
    <para id="variable_MSVC"><sect2><title>MSVC</title></sect2> True when using Microsoft Visual C</para>

    <para>Set to true when the compiler is some version of Microsoft Visual C.</para>
    <para id="variable_MSVC80"><sect2><title>MSVC80</title></sect2> True when using Microsoft Visual C 8.0</para>

    <para>Set to true when the compiler is version 8.0 of Microsoft Visual C.</para>
    <para id="variable_MSVC_IDE"><sect2><title>MSVC_IDE</title></sect2> True when using the Microsoft Visual C IDE</para>

    <para>Set to true when the target platform is the Microsoft Visual C IDE, as opposed to the command line compiler.</para>
    <para id="variable_MSVC_VERSION"><sect2><title>MSVC_VERSION</title></sect2> The version of Microsoft Visual C/C++ being used if any.</para>

    <para>Known version numbers are:
</para><literallayout>  1200 = VS  6.0
  1300 = VS  7.0
  1310 = VS  7.1
  1400 = VS  8.0
  1500 = VS  9.0
  1600 = VS 10.0
</literallayout>
    
    <para id="variable_UNIX"><sect2><title>UNIX</title></sect2> True for UNIX and UNIX like operating systems.</para>

    <para>Set to true when the target system is UNIX or UNIX like (i.e. APPLE and CYGWIN).</para>
    <para id="variable_WIN32"><sect2><title>WIN32</title></sect2> True on windows systems, including win64.</para>

    <para>Set to true when the target system is Windows.</para>
    <para id="variable_XCODE_VERSION"><sect2><title>XCODE_VERSION</title></sect2> Version of Xcode (Xcode generator only).</para>

    <para>Under the Xcode generator, this is the version of Xcode as specified in "Xcode.app/Contents/version.plist" (such as "3.1.2").</para>
</sect1>
<sect1 id="section_Variables for Languages">
<title>
Variables for Languages</title>
<itemizedlist>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND"><emphasis><literal>CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE"><emphasis><literal>CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH"><emphasis><literal>CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_COMPILER"><emphasis><literal>CMAKE_&lt;LANG&gt;_COMPILER</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_COMPILER_ABI"><emphasis><literal>CMAKE_&lt;LANG&gt;_COMPILER_ABI</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_COMPILER_ID"><emphasis><literal>CMAKE_&lt;LANG&gt;_COMPILER_ID</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_COMPILER_LOADED"><emphasis><literal>CMAKE_&lt;LANG&gt;_COMPILER_LOADED</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_COMPILER_VERSION"><emphasis><literal>CMAKE_&lt;LANG&gt;_COMPILER_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_COMPILE_OBJECT"><emphasis><literal>CMAKE_&lt;LANG&gt;_COMPILE_OBJECT</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_CREATE_SHARED_LIBRARY"><emphasis><literal>CMAKE_&lt;LANG&gt;_CREATE_SHARED_LIBRARY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_CREATE_SHARED_MODULE"><emphasis><literal>CMAKE_&lt;LANG&gt;_CREATE_SHARED_MODULE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY"><emphasis><literal>CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_FLAGS_DEBUG"><emphasis><literal>CMAKE_&lt;LANG&gt;_FLAGS_DEBUG</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_FLAGS_MINSIZEREL"><emphasis><literal>CMAKE_&lt;LANG&gt;_FLAGS_MINSIZEREL</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_FLAGS_RELEASE"><emphasis><literal>CMAKE_&lt;LANG&gt;_FLAGS_RELEASE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_FLAGS_RELWITHDEBINFO"><emphasis><literal>CMAKE_&lt;LANG&gt;_FLAGS_RELWITHDEBINFO</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_IGNORE_EXTENSIONS"><emphasis><literal>CMAKE_&lt;LANG&gt;_IGNORE_EXTENSIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_IMPLICIT_INCLUDE_DIRECTORIES"><emphasis><literal>CMAKE_&lt;LANG&gt;_IMPLICIT_INCLUDE_DIRECTORIES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_DIRECTORIES"><emphasis><literal>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_DIRECTORIES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_LIBRARIES"><emphasis><literal>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_LIBRARIES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_LIBRARY_ARCHITECTURE"><emphasis><literal>CMAKE_&lt;LANG&gt;_LIBRARY_ARCHITECTURE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE"><emphasis><literal>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES"><emphasis><literal>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_LINK_EXECUTABLE "><emphasis><literal>CMAKE_&lt;LANG&gt;_LINK_EXECUTABLE </literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_OUTPUT_EXTENSION"><emphasis><literal>CMAKE_&lt;LANG&gt;_OUTPUT_EXTENSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_PLATFORM_ID"><emphasis><literal>CMAKE_&lt;LANG&gt;_PLATFORM_ID</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_SIZEOF_DATA_PTR"><emphasis><literal>CMAKE_&lt;LANG&gt;_SIZEOF_DATA_PTR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_&lt;LANG&gt;_SOURCE_FILE_EXTENSIONS"><emphasis><literal>CMAKE_&lt;LANG&gt;_SOURCE_FILE_EXTENSIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_COMPILER_IS_GNU&lt;LANG&gt;"><emphasis><literal>CMAKE_COMPILER_IS_GNU&lt;LANG&gt;</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_Fortran_MODDIR_DEFAULT"><emphasis><literal>CMAKE_Fortran_MODDIR_DEFAULT</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_Fortran_MODDIR_FLAG"><emphasis><literal>CMAKE_Fortran_MODDIR_FLAG</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_Fortran_MODOUT_FLAG"><emphasis><literal>CMAKE_Fortran_MODOUT_FLAG</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_INTERNAL_PLATFORM_ABI"><emphasis><literal>CMAKE_INTERNAL_PLATFORM_ABI</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_USER_MAKE_RULES_OVERRIDE_&lt;LANG&gt;"><emphasis><literal>CMAKE_USER_MAKE_RULES_OVERRIDE_&lt;LANG&gt;</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="variable_CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND"><sect2><title>CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND</title></sect2> Rule variable to append to a static archive.</para>

    <para>This is a rule variable that tells CMake how to append to a static archive.  It is used in place of CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY on some platforms in order to support large object counts.  See also CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE and CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE"><sect2><title>CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE</title></sect2> Rule variable to create a new static archive.</para>

    <para>This is a rule variable that tells CMake how to create a static archive.  It is used in place of CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY on some platforms in order to support large object counts.  See also CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND and CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH"><sect2><title>CMAKE_&lt;LANG&gt;_ARCHIVE_FINISH</title></sect2> Rule variable to finish an existing static archive.</para>

    <para>This is a rule variable that tells CMake how to finish a static archive.  It is used in place of CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY on some platforms in order to support large object counts.  See also CMAKE_&lt;LANG&gt;_ARCHIVE_CREATE and CMAKE_&lt;LANG&gt;_ARCHIVE_APPEND.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_COMPILER"><sect2><title>CMAKE_&lt;LANG&gt;_COMPILER</title></sect2> The full path to the compiler for LANG.</para>

    <para>This is the command that will be used as the &lt;LANG&gt; compiler. Once set, you can not change this variable.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_COMPILER_ABI"><sect2><title>CMAKE_&lt;LANG&gt;_COMPILER_ABI</title></sect2> An internal variable subject to change.</para>

    <para>This is used in determining the compiler ABI and is subject to change.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_COMPILER_ID"><sect2><title>CMAKE_&lt;LANG&gt;_COMPILER_ID</title></sect2> An internal variable subject to change.</para>

    <para>This is used in determining the compiler and is subject to change.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_COMPILER_LOADED"><sect2><title>CMAKE_&lt;LANG&gt;_COMPILER_LOADED</title></sect2> Defined to true if the language is enabled.</para>

    <para>When language &lt;LANG&gt; is enabled by project() or enable_language() this variable is defined to 1.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_COMPILER_VERSION"><sect2><title>CMAKE_&lt;LANG&gt;_COMPILER_VERSION</title></sect2> An internal variable subject to change.</para>

    <para>Compiler version in major[.minor[.patch[.tweak]]] format.  This variable is reserved for internal use by CMake and is not guaranteed to be set.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_COMPILE_OBJECT"><sect2><title>CMAKE_&lt;LANG&gt;_COMPILE_OBJECT</title></sect2> Rule variable to compile a single object file.</para>

    <para>This is a rule variable that tells CMake how to compile a single object file for for the language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_CREATE_SHARED_LIBRARY"><sect2><title>CMAKE_&lt;LANG&gt;_CREATE_SHARED_LIBRARY</title></sect2> Rule variable to create a shared library.</para>

    <para>This is a rule variable that tells CMake how to create a shared library for the language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_CREATE_SHARED_MODULE"><sect2><title>CMAKE_&lt;LANG&gt;_CREATE_SHARED_MODULE</title></sect2> Rule variable to create a shared module.</para>

    <para>This is a rule variable that tells CMake how to create a shared library for the language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY"><sect2><title>CMAKE_&lt;LANG&gt;_CREATE_STATIC_LIBRARY</title></sect2> Rule variable to create a static library.</para>

    <para>This is a rule variable that tells CMake how to create a static library for the language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_FLAGS_DEBUG"><sect2><title>CMAKE_&lt;LANG&gt;_FLAGS_DEBUG</title></sect2> Flags for Debug build type or configuration.</para>

    <para>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is Debug.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_FLAGS_MINSIZEREL"><sect2><title>CMAKE_&lt;LANG&gt;_FLAGS_MINSIZEREL</title></sect2> Flags for MinSizeRel build type or configuration.</para>

    <para>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is MinSizeRel.Short for minimum size release.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_FLAGS_RELEASE"><sect2><title>CMAKE_&lt;LANG&gt;_FLAGS_RELEASE</title></sect2> Flags for Release build type or configuration.</para>

    <para>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is Release</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_FLAGS_RELWITHDEBINFO"><sect2><title>CMAKE_&lt;LANG&gt;_FLAGS_RELWITHDEBINFO</title></sect2> Flags for RelWithDebInfo type or configuration.</para>

    <para>&lt;LANG&gt; flags used when CMAKE_BUILD_TYPE is RelWithDebInfo. Short for Release With Debug Information.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_IGNORE_EXTENSIONS"><sect2><title>CMAKE_&lt;LANG&gt;_IGNORE_EXTENSIONS</title></sect2> File extensions that should be ignored by the build.</para>

    <para>This is a list of file extensions that may be part of a project for a given language but are not compiled. </para>
    <para id="variable_CMAKE_&lt;LANG&gt;_IMPLICIT_INCLUDE_DIRECTORIES"><sect2><title>CMAKE_&lt;LANG&gt;_IMPLICIT_INCLUDE_DIRECTORIES</title></sect2> Directories implicitly searched by the compiler for header files.</para>

    <para>CMake does not explicitly specify these directories on compiler command lines for language &lt;LANG&gt;.  This prevents system include directories from being treated as user include directories on some compilers.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_DIRECTORIES"><sect2><title>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_DIRECTORIES</title></sect2> Implicit linker search path detected for language &lt;LANG&gt;.</para>

    <para>Compilers typically pass directories containing language runtime libraries and default library search paths when they invoke a linker.  These paths are implicit linker search directories for the compiler's language.  CMake automatically detects these directories for each language and reports the results in this variable.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_LIBRARIES"><sect2><title>CMAKE_&lt;LANG&gt;_IMPLICIT_LINK_LIBRARIES</title></sect2> Implicit link libraries and flags detected for language &lt;LANG&gt;.</para>

    <para>Compilers typically pass language runtime library names and other flags when they invoke a linker.  These flags are implicit link options for the compiler's language.  CMake automatically detects these libraries and flags for each language and reports the results in this variable.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_LIBRARY_ARCHITECTURE"><sect2><title>CMAKE_&lt;LANG&gt;_LIBRARY_ARCHITECTURE</title></sect2> Target architecture library directory name detected for &lt;lang&gt;.</para>

    <para>If the &lt;lang&gt; compiler passes to the linker an architecture-specific system library search directory such as &lt;prefix&gt;/lib/&lt;arch&gt; this variable contains the &lt;arch&gt; name if/as detected by CMake.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE"><sect2><title>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE</title></sect2> Preference value for linker language selection.</para>

    <para>The "linker language" for executable, shared library, and module targets is the language whose compiler will invoke the linker.  The LINKER_LANGUAGE target property sets the language explicitly.  Otherwise, the linker language is that whose linker preference value is highest among languages compiled and linked into the target.  See also the CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES variable.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES"><sect2><title>CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE_PROPAGATES</title></sect2> True if CMAKE_&lt;LANG&gt;_LINKER_PREFERENCE propagates across targets.</para>

    <para>This is used when CMake selects a linker language for a target.  Languages compiled directly into the target are always considered.  A language compiled into static libraries linked by the target is considered if this variable is true.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_LINK_EXECUTABLE "><sect2><title>CMAKE_&lt;LANG&gt;_LINK_EXECUTABLE </title></sect2> Rule variable to link and executable.</para>

    <para>Rule variable to link and executable for the given language.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_OUTPUT_EXTENSION"><sect2><title>CMAKE_&lt;LANG&gt;_OUTPUT_EXTENSION</title></sect2> Extension for the output of a compile for a single file.</para>

    <para>This is the extension for an object file for the given &lt;LANG&gt;. For example .obj for C on Windows.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_PLATFORM_ID"><sect2><title>CMAKE_&lt;LANG&gt;_PLATFORM_ID</title></sect2> An internal variable subject to change.</para>

    <para>This is used in determining the platform and is subject to change.</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_SIZEOF_DATA_PTR"><sect2><title>CMAKE_&lt;LANG&gt;_SIZEOF_DATA_PTR</title></sect2> Size of pointer-to-data types for language &lt;LANG&gt;.</para>

    <para>This holds the size (in bytes) of pointer-to-data types in the target platform ABI.  It is defined for languages C and CXX (C++).</para>
    <para id="variable_CMAKE_&lt;LANG&gt;_SOURCE_FILE_EXTENSIONS"><sect2><title>CMAKE_&lt;LANG&gt;_SOURCE_FILE_EXTENSIONS</title></sect2> Extensions of source files for the given language.</para>

    <para>This is the list of extensions for a given languages source files.</para>
    <para id="variable_CMAKE_COMPILER_IS_GNU&lt;LANG&gt;"><sect2><title>CMAKE_COMPILER_IS_GNU&lt;LANG&gt;</title></sect2> True if the compiler is GNU.</para>

    <para>If the selected &lt;LANG&gt; compiler is the GNU compiler then this is TRUE, if not it is FALSE.</para>
    <para id="variable_CMAKE_Fortran_MODDIR_DEFAULT"><sect2><title>CMAKE_Fortran_MODDIR_DEFAULT</title></sect2> Fortran default module output directory.</para>

    <para>Most Fortran compilers write .mod files to the current working directory.  For those that do not, this is set to "." and used when the Fortran_MODULE_DIRECTORY target property is not set.</para>
    <para id="variable_CMAKE_Fortran_MODDIR_FLAG"><sect2><title>CMAKE_Fortran_MODDIR_FLAG</title></sect2> Fortran flag for module output directory.</para>

    <para>This stores the flag needed to pass the value of the Fortran_MODULE_DIRECTORY target property to the compiler.</para>
    <para id="variable_CMAKE_Fortran_MODOUT_FLAG"><sect2><title>CMAKE_Fortran_MODOUT_FLAG</title></sect2> Fortran flag to enable module output.</para>

    <para>Most Fortran compilers write .mod files out by default.  For others, this stores the flag needed to enable module output.</para>
    <para id="variable_CMAKE_INTERNAL_PLATFORM_ABI"><sect2><title>CMAKE_INTERNAL_PLATFORM_ABI</title></sect2> An internal variable subject to change.</para>

    <para>This is used in determining the compiler ABI and is subject to change.</para>
    <para id="variable_CMAKE_USER_MAKE_RULES_OVERRIDE_&lt;LANG&gt;"><sect2><title>CMAKE_USER_MAKE_RULES_OVERRIDE_&lt;LANG&gt;</title></sect2> Specify a CMake file that overrides platform information for &lt;LANG&gt;.</para>

    <para>This is a language-specific version of CMAKE_USER_MAKE_RULES_OVERRIDE loaded only when enabling language &lt;LANG&gt;.</para>
</sect1>
<sect1 id="section_Variables that Control the Build">
<title>
Variables that Control the Build</title>
<itemizedlist>
    <listitem><link linkend="variable_CMAKE_&lt;CONFIG&gt;_POSTFIX"><emphasis><literal>CMAKE_&lt;CONFIG&gt;_POSTFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_ARCHIVE_OUTPUT_DIRECTORY"><emphasis><literal>CMAKE_ARCHIVE_OUTPUT_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_AUTOMOC"><emphasis><literal>CMAKE_AUTOMOC</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_AUTOMOC_MOC_OPTIONS"><emphasis><literal>CMAKE_AUTOMOC_MOC_OPTIONS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_BUILD_WITH_INSTALL_RPATH"><emphasis><literal>CMAKE_BUILD_WITH_INSTALL_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_DEBUG_POSTFIX"><emphasis><literal>CMAKE_DEBUG_POSTFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_EXE_LINKER_FLAGS"><emphasis><literal>CMAKE_EXE_LINKER_FLAGS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_EXE_LINKER_FLAGS_[CMAKE_BUILD_TYPE]"><emphasis><literal>CMAKE_EXE_LINKER_FLAGS_[CMAKE_BUILD_TYPE]</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_Fortran_FORMAT"><emphasis><literal>CMAKE_Fortran_FORMAT</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_Fortran_MODULE_DIRECTORY"><emphasis><literal>CMAKE_Fortran_MODULE_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_GNUtoMS"><emphasis><literal>CMAKE_GNUtoMS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_INCLUDE_CURRENT_DIR"><emphasis><literal>CMAKE_INCLUDE_CURRENT_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_INSTALL_NAME_DIR"><emphasis><literal>CMAKE_INSTALL_NAME_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_INSTALL_RPATH"><emphasis><literal>CMAKE_INSTALL_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_INSTALL_RPATH_USE_LINK_PATH"><emphasis><literal>CMAKE_INSTALL_RPATH_USE_LINK_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LIBRARY_OUTPUT_DIRECTORY"><emphasis><literal>CMAKE_LIBRARY_OUTPUT_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LIBRARY_PATH_FLAG"><emphasis><literal>CMAKE_LIBRARY_PATH_FLAG</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LINK_DEF_FILE_FLAG  "><emphasis><literal>CMAKE_LINK_DEF_FILE_FLAG  </literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LINK_INTERFACE_LIBRARIES"><emphasis><literal>CMAKE_LINK_INTERFACE_LIBRARIES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LINK_LIBRARY_FILE_FLAG"><emphasis><literal>CMAKE_LINK_LIBRARY_FILE_FLAG</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LINK_LIBRARY_FLAG"><emphasis><literal>CMAKE_LINK_LIBRARY_FLAG</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_MACOSX_BUNDLE"><emphasis><literal>CMAKE_MACOSX_BUNDLE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_NO_BUILTIN_CHRPATH"><emphasis><literal>CMAKE_NO_BUILTIN_CHRPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_RUNTIME_OUTPUT_DIRECTORY"><emphasis><literal>CMAKE_RUNTIME_OUTPUT_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SKIP_BUILD_RPATH"><emphasis><literal>CMAKE_SKIP_BUILD_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SKIP_INSTALL_RPATH"><emphasis><literal>CMAKE_SKIP_INSTALL_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_TRY_COMPILE_CONFIGURATION"><emphasis><literal>CMAKE_TRY_COMPILE_CONFIGURATION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_USE_RELATIVE_PATHS"><emphasis><literal>CMAKE_USE_RELATIVE_PATHS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_WIN32_EXECUTABLE"><emphasis><literal>CMAKE_WIN32_EXECUTABLE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_EXECUTABLE_OUTPUT_PATH"><emphasis><literal>EXECUTABLE_OUTPUT_PATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_LIBRARY_OUTPUT_PATH"><emphasis><literal>LIBRARY_OUTPUT_PATH</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="variable_CMAKE_&lt;CONFIG&gt;_POSTFIX"><sect2><title>CMAKE_&lt;CONFIG&gt;_POSTFIX</title></sect2> Default filename postfix for libraries under configuration &lt;CONFIG&gt;.</para>

    <para>When a non-executable target is created its &lt;CONFIG&gt;_POSTFIX target property is initialized with the value of this variable if it is set.</para>
    <para id="variable_CMAKE_ARCHIVE_OUTPUT_DIRECTORY"><sect2><title>CMAKE_ARCHIVE_OUTPUT_DIRECTORY</title></sect2> Where to put all the ARCHIVE targets when built.</para>

    <para>This variable is used to initialize the ARCHIVE_OUTPUT_DIRECTORY property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_AUTOMOC"><sect2><title>CMAKE_AUTOMOC</title></sect2> Whether to handle moc automatically for Qt targets.</para>

    <para>This variable is used to initialize the AUTOMOC property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_AUTOMOC_MOC_OPTIONS"><sect2><title>CMAKE_AUTOMOC_MOC_OPTIONS</title></sect2> Additional options for moc when using automoc (see CMAKE_AUTOMOC).</para>

    <para>This variable is used to initialize the AUTOMOC_MOC_OPTIONS property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_BUILD_WITH_INSTALL_RPATH"><sect2><title>CMAKE_BUILD_WITH_INSTALL_RPATH</title></sect2> Use the install path for the RPATH</para>

    <para>Normally CMake uses the build tree for the RPATH when building executables etc on systems that use RPATH. When the software is installed the executables etc are relinked by CMake to have the install RPATH. If this variable is set to true then the software is always built with the install path for the RPATH and does not need to be relinked when installed.</para>
    <para id="variable_CMAKE_DEBUG_POSTFIX"><sect2><title>CMAKE_DEBUG_POSTFIX</title></sect2> See variable CMAKE_&lt;CONFIG&gt;_POSTFIX.</para>

    <para>This variable is a special case of the more-general CMAKE_&lt;CONFIG&gt;_POSTFIX variable for the DEBUG configuration.</para>
    <para id="variable_CMAKE_EXE_LINKER_FLAGS"><sect2><title>CMAKE_EXE_LINKER_FLAGS</title></sect2> Linker flags used to create executables.</para>

    <para>Flags used by the linker when creating an executable.</para>
    <para id="variable_CMAKE_EXE_LINKER_FLAGS_[CMAKE_BUILD_TYPE]"><sect2><title>CMAKE_EXE_LINKER_FLAGS_[CMAKE_BUILD_TYPE]</title></sect2> Flag used when linking an executable.</para>

    <para>Same as CMAKE_C_FLAGS_* but used by the linker when creating executables.</para>
    <para id="variable_CMAKE_Fortran_FORMAT"><sect2><title>CMAKE_Fortran_FORMAT</title></sect2> Set to FIXED or FREE to indicate the Fortran source layout.</para>

    <para>This variable is used to initialize the Fortran_FORMAT property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_Fortran_MODULE_DIRECTORY"><sect2><title>CMAKE_Fortran_MODULE_DIRECTORY</title></sect2> Fortran module output directory.</para>

    <para>This variable is used to initialize the Fortran_MODULE_DIRECTORY property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_GNUtoMS"><sect2><title>CMAKE_GNUtoMS</title></sect2> Convert GNU import libraries (.dll.a) to MS format (.lib).</para>

    <para>This variable is used to initialize the GNUtoMS property on targets when they are created.  See that target property for additional information.</para>
    <para id="variable_CMAKE_INCLUDE_CURRENT_DIR"><sect2><title>CMAKE_INCLUDE_CURRENT_DIR</title></sect2> Automatically add the current source- and build directories to the include path.</para>

    <para>If this variable is enabled, CMake automatically adds in each directory ${CMAKE_CURRENT_SOURCE_DIR} and ${CMAKE_CURRENT_BINARY_DIR} to the include path for this directory. These additional include directories do not propagate down to subdirectories. This is useful mainly for out-of-source builds, where files generated into the build tree are included by files located in the source tree.
</para><para>By default CMAKE_INCLUDE_CURRENT_DIR is OFF.</para>
    <para id="variable_CMAKE_INSTALL_NAME_DIR"><sect2><title>CMAKE_INSTALL_NAME_DIR</title></sect2> Mac OSX directory name for installed targets.</para>

    <para>CMAKE_INSTALL_NAME_DIR is used to initialize the INSTALL_NAME_DIR property on all targets. See that target property for more information.</para>
    <para id="variable_CMAKE_INSTALL_RPATH"><sect2><title>CMAKE_INSTALL_RPATH</title></sect2> The rpath to use for installed targets.</para>

    <para>A semicolon-separated list specifying the rpath to use in installed targets (for platforms that support it). This is used to initialize the target property INSTALL_RPATH for all targets.</para>
    <para id="variable_CMAKE_INSTALL_RPATH_USE_LINK_PATH"><sect2><title>CMAKE_INSTALL_RPATH_USE_LINK_PATH</title></sect2> Add paths to linker search and installed rpath.</para>

    <para>CMAKE_INSTALL_RPATH_USE_LINK_PATH is a boolean that if set to true will append directories in the linker search path and outside the project to the INSTALL_RPATH. This is used to initialize the target property INSTALL_RPATH_USE_LINK_PATH for all targets.</para>
    <para id="variable_CMAKE_LIBRARY_OUTPUT_DIRECTORY"><sect2><title>CMAKE_LIBRARY_OUTPUT_DIRECTORY</title></sect2> Where to put all the LIBRARY targets when built.</para>

    <para>This variable is used to initialize the LIBRARY_OUTPUT_DIRECTORY property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_LIBRARY_PATH_FLAG"><sect2><title>CMAKE_LIBRARY_PATH_FLAG</title></sect2> The flag used to add a library search path to a compiler.</para>

    <para>The flag used to specify a library directory to the compiler. On most compilers this is "-L".</para>
    <para id="variable_CMAKE_LINK_DEF_FILE_FLAG  "><sect2><title>CMAKE_LINK_DEF_FILE_FLAG  </title></sect2> Linker flag used to specify a .def file for dll creation.</para>

    <para>The flag used to add a .def file when creating a dll on Windows, this is only defined on Windows.</para>
    <para id="variable_CMAKE_LINK_INTERFACE_LIBRARIES"><sect2><title>CMAKE_LINK_INTERFACE_LIBRARIES</title></sect2> Default value for LINK_INTERFACE_LIBRARIES of targets.</para>

    <para>This variable is used to initialize the LINK_INTERFACE_LIBRARIES property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_LINK_LIBRARY_FILE_FLAG"><sect2><title>CMAKE_LINK_LIBRARY_FILE_FLAG</title></sect2> Flag used to link a library specified by a path to its file.</para>

    <para>The flag used before a library file path is given to the linker.  This is needed only on very few platforms.</para>
    <para id="variable_CMAKE_LINK_LIBRARY_FLAG"><sect2><title>CMAKE_LINK_LIBRARY_FLAG</title></sect2> Flag used to link a library into an executable.</para>

    <para>The flag used to specify a library to link to an executable.  On most compilers this is "-l".</para>
    <para id="variable_CMAKE_MACOSX_BUNDLE"><sect2><title>CMAKE_MACOSX_BUNDLE</title></sect2> Default value for MACOSX_BUNDLE of targets.</para>

    <para>This variable is used to initialize the MACOSX_BUNDLE property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_NO_BUILTIN_CHRPATH"><sect2><title>CMAKE_NO_BUILTIN_CHRPATH</title></sect2> Do not use the builtin ELF editor to fix RPATHs on installation.</para>

    <para>When an ELF binary needs to have a different RPATH after installation than it does in the build tree, CMake uses a builtin editor to change the RPATH in the installed copy.  If this variable is set to true then CMake will relink the binary before installation instead of using its builtin editor.</para>
    <para id="variable_CMAKE_RUNTIME_OUTPUT_DIRECTORY"><sect2><title>CMAKE_RUNTIME_OUTPUT_DIRECTORY</title></sect2> Where to put all the RUNTIME targets when built.</para>

    <para>This variable is used to initialize the RUNTIME_OUTPUT_DIRECTORY property on all the targets. See that target property for additional information.</para>
    <para id="variable_CMAKE_SKIP_BUILD_RPATH"><sect2><title>CMAKE_SKIP_BUILD_RPATH</title></sect2> Do not include RPATHs in the build tree.</para>

    <para>Normally CMake uses the build tree for the RPATH when building executables etc on systems that use RPATH. When the software is installed the executables etc are relinked by CMake to have the install RPATH. If this variable is set to true then the software is always built with no RPATH.</para>
    <para id="variable_CMAKE_SKIP_INSTALL_RPATH"><sect2><title>CMAKE_SKIP_INSTALL_RPATH</title></sect2> Do not include RPATHs in the install tree.</para>

    <para>Normally CMake uses the build tree for the RPATH when building executables etc on systems that use RPATH. When the software is installed the executables etc are relinked by CMake to have the install RPATH. If this variable is set to true then the software is always installed without RPATH, even if RPATH is enabled when building.  This can be useful for example to allow running tests from the build directory with RPATH enabled before the installation step.  To omit RPATH in both the build and install steps, use CMAKE_SKIP_RPATH instead.</para>
    <para id="variable_CMAKE_TRY_COMPILE_CONFIGURATION"><sect2><title>CMAKE_TRY_COMPILE_CONFIGURATION</title></sect2> Build configuration used for try_compile and try_run projects.</para>

    <para>Projects built by try_compile and try_run are built synchronously during the CMake configuration step.  Therefore a specific build configuration must be chosen even if the generated build system supports multiple configurations.</para>
    <para id="variable_CMAKE_USE_RELATIVE_PATHS"><sect2><title>CMAKE_USE_RELATIVE_PATHS</title></sect2> Use relative paths (May not work!).</para>

    <para>If this is set to TRUE, then the CMake will use relative paths between the source and binary tree. This option does not work for more complicated projects, and relative paths are used when possible.  In general, it is not possible to move CMake generated makefiles to a different location regardless of the value of this variable.</para>
    <para id="variable_CMAKE_WIN32_EXECUTABLE"><sect2><title>CMAKE_WIN32_EXECUTABLE</title></sect2> Default value for WIN32_EXECUTABLE of targets.</para>

    <para>This variable is used to initialize the WIN32_EXECUTABLE property on all the targets. See that target property for additional information.</para>
    <para id="variable_EXECUTABLE_OUTPUT_PATH"><sect2><title>EXECUTABLE_OUTPUT_PATH</title></sect2> Old executable location variable.</para>

    <para>The target property RUNTIME_OUTPUT_DIRECTORY supercedes this variable for a target if it is set.  Executable targets are otherwise placed in this directory.</para>
    <para id="variable_LIBRARY_OUTPUT_PATH"><sect2><title>LIBRARY_OUTPUT_PATH</title></sect2> Old library location variable.</para>

    <para>The target properties ARCHIVE_OUTPUT_DIRECTORY, LIBRARY_OUTPUT_DIRECTORY, and RUNTIME_OUTPUT_DIRECTORY supercede this variable for a target if they are set.  Library targets are otherwise placed in this directory.</para>
</sect1>
<sect1 id="section_Variables that Provide Information">
<title>
Variables that Provide Information</title>
<itemizedlist>
    <listitem><link linkend="variable_CMAKE_AR"><emphasis><literal>CMAKE_AR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_ARGC"><emphasis><literal>CMAKE_ARGC</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_ARGV0"><emphasis><literal>CMAKE_ARGV0</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_BINARY_DIR"><emphasis><literal>CMAKE_BINARY_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_BUILD_TOOL"><emphasis><literal>CMAKE_BUILD_TOOL</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CACHEFILE_DIR"><emphasis><literal>CMAKE_CACHEFILE_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CACHE_MAJOR_VERSION"><emphasis><literal>CMAKE_CACHE_MAJOR_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CACHE_MINOR_VERSION"><emphasis><literal>CMAKE_CACHE_MINOR_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CACHE_PATCH_VERSION"><emphasis><literal>CMAKE_CACHE_PATCH_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CFG_INTDIR"><emphasis><literal>CMAKE_CFG_INTDIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_COMMAND"><emphasis><literal>CMAKE_COMMAND</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CROSSCOMPILING"><emphasis><literal>CMAKE_CROSSCOMPILING</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CTEST_COMMAND"><emphasis><literal>CMAKE_CTEST_COMMAND</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CURRENT_BINARY_DIR"><emphasis><literal>CMAKE_CURRENT_BINARY_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CURRENT_LIST_DIR"><emphasis><literal>CMAKE_CURRENT_LIST_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CURRENT_LIST_FILE"><emphasis><literal>CMAKE_CURRENT_LIST_FILE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CURRENT_LIST_LINE"><emphasis><literal>CMAKE_CURRENT_LIST_LINE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_CURRENT_SOURCE_DIR"><emphasis><literal>CMAKE_CURRENT_SOURCE_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_DL_LIBS"><emphasis><literal>CMAKE_DL_LIBS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_EDIT_COMMAND"><emphasis><literal>CMAKE_EDIT_COMMAND</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_EXECUTABLE_SUFFIX"><emphasis><literal>CMAKE_EXECUTABLE_SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_EXTRA_GENERATOR"><emphasis><literal>CMAKE_EXTRA_GENERATOR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES"><emphasis><literal>CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_GENERATOR"><emphasis><literal>CMAKE_GENERATOR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_HOME_DIRECTORY"><emphasis><literal>CMAKE_HOME_DIRECTORY</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_IMPORT_LIBRARY_PREFIX"><emphasis><literal>CMAKE_IMPORT_LIBRARY_PREFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_IMPORT_LIBRARY_SUFFIX"><emphasis><literal>CMAKE_IMPORT_LIBRARY_SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_LINK_LIBRARY_SUFFIX"><emphasis><literal>CMAKE_LINK_LIBRARY_SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_MAJOR_VERSION"><emphasis><literal>CMAKE_MAJOR_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_MAKE_PROGRAM"><emphasis><literal>CMAKE_MAKE_PROGRAM</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_MINOR_VERSION"><emphasis><literal>CMAKE_MINOR_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_PARENT_LIST_FILE"><emphasis><literal>CMAKE_PARENT_LIST_FILE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_PATCH_VERSION"><emphasis><literal>CMAKE_PATCH_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_PROJECT_NAME"><emphasis><literal>CMAKE_PROJECT_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_RANLIB"><emphasis><literal>CMAKE_RANLIB</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_ROOT"><emphasis><literal>CMAKE_ROOT</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SCRIPT_MODE_FILE"><emphasis><literal>CMAKE_SCRIPT_MODE_FILE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SHARED_LIBRARY_PREFIX"><emphasis><literal>CMAKE_SHARED_LIBRARY_PREFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SHARED_LIBRARY_SUFFIX"><emphasis><literal>CMAKE_SHARED_LIBRARY_SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SHARED_MODULE_PREFIX"><emphasis><literal>CMAKE_SHARED_MODULE_PREFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SHARED_MODULE_SUFFIX"><emphasis><literal>CMAKE_SHARED_MODULE_SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SIZEOF_VOID_P"><emphasis><literal>CMAKE_SIZEOF_VOID_P</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SKIP_RPATH"><emphasis><literal>CMAKE_SKIP_RPATH</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_SOURCE_DIR"><emphasis><literal>CMAKE_SOURCE_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_STANDARD_LIBRARIES"><emphasis><literal>CMAKE_STANDARD_LIBRARIES</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_STATIC_LIBRARY_PREFIX"><emphasis><literal>CMAKE_STATIC_LIBRARY_PREFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_STATIC_LIBRARY_SUFFIX"><emphasis><literal>CMAKE_STATIC_LIBRARY_SUFFIX</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_TWEAK_VERSION"><emphasis><literal>CMAKE_TWEAK_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_USING_VC_FREE_TOOLS"><emphasis><literal>CMAKE_USING_VC_FREE_TOOLS</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_VERBOSE_MAKEFILE"><emphasis><literal>CMAKE_VERBOSE_MAKEFILE</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_CMAKE_VERSION"><emphasis><literal>CMAKE_VERSION</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_PROJECT_BINARY_DIR"><emphasis><literal>PROJECT_BINARY_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_PROJECT_NAME"><emphasis><literal>PROJECT_NAME</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_PROJECT_SOURCE_DIR"><emphasis><literal>PROJECT_SOURCE_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_[Project name]_BINARY_DIR"><emphasis><literal>[Project name]_BINARY_DIR</literal></emphasis></link></listitem>
    <listitem><link linkend="variable_[Project name]_SOURCE_DIR"><emphasis><literal>[Project name]_SOURCE_DIR</literal></emphasis></link></listitem>
</itemizedlist>
    <para id="variable_CMAKE_AR"><sect2><title>CMAKE_AR</title></sect2> Name of archiving tool for static libraries.</para>

    <para>This specifies name of the program that creates archive or static libraries.</para>
    <para id="variable_CMAKE_ARGC"><sect2><title>CMAKE_ARGC</title></sect2> Number of command line arguments passed to CMake in script mode. </para>

    <para>When run in -P script mode, CMake sets this variable to the number of command line arguments. See also CMAKE_ARGV0, 1, 2 ... </para>
    <para id="variable_CMAKE_ARGV0"><sect2><title>CMAKE_ARGV0</title></sect2> Command line argument passed to CMake in script mode. </para>

    <para>When run in -P script mode, CMake sets this variable to the first command line argument. It then also sets CMAKE_ARGV1, CMAKE_ARGV2, ... and so on, up to the number of command line arguments given. See also CMAKE_ARGC.</para>
    <para id="variable_CMAKE_BINARY_DIR"><sect2><title>CMAKE_BINARY_DIR</title></sect2> The path to the top level of the build tree.</para>

    <para>This is the full path to the top level of the current CMake build tree. For an in-source build, this would be the same as CMAKE_SOURCE_DIR. </para>
    <para id="variable_CMAKE_BUILD_TOOL"><sect2><title>CMAKE_BUILD_TOOL</title></sect2> Tool used for the actual build process.</para>

    <para>This variable is set to the program that will be needed to build the output of CMake.   If the generator selected was Visual Studio 6, the CMAKE_BUILD_TOOL will be set to msdev, for Unix makefiles it will be set to make or gmake, and for Visual Studio 7 it set to devenv.  For Nmake Makefiles the value is nmake. This can be useful for adding special flags and commands based on the final build environment. </para>
    <para id="variable_CMAKE_CACHEFILE_DIR"><sect2><title>CMAKE_CACHEFILE_DIR</title></sect2> The directory with the CMakeCache.txt file.</para>

    <para>This is the full path to the directory that has the CMakeCache.txt file in it.  This is the same as CMAKE_BINARY_DIR.</para>
    <para id="variable_CMAKE_CACHE_MAJOR_VERSION"><sect2><title>CMAKE_CACHE_MAJOR_VERSION</title></sect2> Major version of CMake used to create the CMakeCache.txt file</para>

    <para>This is stores the major version of CMake used to write a CMake cache file. It is only different when a different version of CMake is run on a previously created cache file.</para>
    <para id="variable_CMAKE_CACHE_MINOR_VERSION"><sect2><title>CMAKE_CACHE_MINOR_VERSION</title></sect2> Minor version of CMake used to create the CMakeCache.txt file</para>

    <para>This is stores the minor version of CMake used to write a CMake cache file. It is only different when a different version of CMake is run on a previously created cache file.</para>
    <para id="variable_CMAKE_CACHE_PATCH_VERSION"><sect2><title>CMAKE_CACHE_PATCH_VERSION</title></sect2> Patch version of CMake used to create the CMakeCache.txt file</para>

    <para>This is stores the patch version of CMake used to write a CMake cache file. It is only different when a different version of CMake is run on a previously created cache file.</para>
    <para id="variable_CMAKE_CFG_INTDIR"><sect2><title>CMAKE_CFG_INTDIR</title></sect2> Build-time reference to per-configuration output subdirectory.</para>

    <para>For native build systems supporting multiple configurations in the build tree (such as Visual Studio and Xcode), the value is a reference to a build-time variable specifying the name of the per-configuration output subdirectory.  On Makefile generators this evaluates to "." because there is only one configuration in a build tree.  Example values:
</para><literallayout>  $(IntDir)        = Visual Studio 6
  $(OutDir)        = Visual Studio 7, 8, 9
  $(Configuration) = Visual Studio 10
  $(CONFIGURATION) = Xcode
  .                = Make-based tools
</literallayout>
    <para>Since these values are evaluated by the native build system, this variable is suitable only for use in command lines that will be evaluated at build time.  Example of intended usage:
</para><literallayout>  add_executable(mytool mytool.c)
  add_custom_command(
    OUTPUT out.txt
    COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool
            ${CMAKE_CURRENT_SOURCE_DIR}/in.txt out.txt
    DEPENDS mytool in.txt
    )
  add_custom_target(drive ALL DEPENDS out.txt)
</literallayout>
    <para>Note that CMAKE_CFG_INTDIR is no longer necessary for this purpose but has been left for compatibility with existing projects.  Instead add_custom_command() recognizes executable target names in its COMMAND option, so "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/mytool" can be replaced by just "mytool".
</para><para>This variable is read-only.  Setting it is undefined behavior.  In multi-configuration build systems the value of this variable is passed as the value of preprocessor symbol "CMAKE_INTDIR" to the compilation of all source files.</para>
    <para id="variable_CMAKE_COMMAND"><sect2><title>CMAKE_COMMAND</title></sect2> The full path to the cmake executable.</para>

    <para>This is the full path to the CMake executable cmake which is useful from custom commands that want to use the cmake -E option for portable system commands. (e.g. /usr/local/bin/cmake</para>
    <para id="variable_CMAKE_CROSSCOMPILING"><sect2><title>CMAKE_CROSSCOMPILING</title></sect2> Is CMake currently cross compiling.</para>

    <para>This variable will be set to true by CMake if CMake is cross compiling. Specifically if the build platform is different from the target platform.</para>
    <para id="variable_CMAKE_CTEST_COMMAND"><sect2><title>CMAKE_CTEST_COMMAND</title></sect2> Full path to ctest command installed with cmake.</para>

    <para>This is the full path to the CTest executable ctest which is useful from custom commands that want  to use the cmake -E option for portable system commands.</para>
    <para id="variable_CMAKE_CURRENT_BINARY_DIR"><sect2><title>CMAKE_CURRENT_BINARY_DIR</title></sect2> The path to the binary directory currently being processed.</para>

    <para>This the full path to the build directory that is currently being processed by cmake.  Each directory added by add_subdirectory will create a binary directory in the build tree, and as it is being processed this variable will be set. For in-source builds this is the current source directory being processed.</para>
    <para id="variable_CMAKE_CURRENT_LIST_DIR"><sect2><title>CMAKE_CURRENT_LIST_DIR</title></sect2> Full directory of the listfile currently being processed.</para>

    <para>As CMake processes the listfiles in your project this variable will always be set to the directory where the listfile which is currently being processed (CMAKE_CURRENT_LIST_FILE) is located.  The value has dynamic scope.  When CMake starts processing commands in a source file it sets this variable to the directory where this file is located.  When CMake finishes processing commands from the file it restores the previous value.  Therefore the value of the variable inside a macro or function is the directory of the file invoking the bottom-most entry on the call stack, not the directory of the file containing the macro or function definition.
</para><para>See also CMAKE_CURRENT_LIST_FILE.</para>
    <para id="variable_CMAKE_CURRENT_LIST_FILE"><sect2><title>CMAKE_CURRENT_LIST_FILE</title></sect2> Full path to the listfile currently being processed.</para>

    <para>As CMake processes the listfiles in your project this variable will always be set to the one currently being processed.  The value has dynamic scope.  When CMake starts processing commands in a source file it sets this variable to the location of the file.  When CMake finishes processing commands from the file it restores the previous value.  Therefore the value of the variable inside a macro or function is the file invoking the bottom-most entry on the call stack, not the file containing the macro or function definition.
</para><para>See also CMAKE_PARENT_LIST_FILE.</para>
    <para id="variable_CMAKE_CURRENT_LIST_LINE"><sect2><title>CMAKE_CURRENT_LIST_LINE</title></sect2> The line number of the current file being processed.</para>

    <para>This is the line number of the file currently being processed by cmake.</para>
    <para id="variable_CMAKE_CURRENT_SOURCE_DIR"><sect2><title>CMAKE_CURRENT_SOURCE_DIR</title></sect2> The path to the source directory currently being processed.</para>

    <para>This the full path to the source directory that is currently being processed by cmake.  </para>
    <para id="variable_CMAKE_DL_LIBS"><sect2><title>CMAKE_DL_LIBS</title></sect2> Name of library containing dlopen and dlcose.</para>

    <para>The name of the library that has dlopen and dlclose in it, usually -ldl on most UNIX machines.</para>
    <para id="variable_CMAKE_EDIT_COMMAND"><sect2><title>CMAKE_EDIT_COMMAND</title></sect2> Full path to cmake-gui or ccmake.</para>

    <para>This is the full path to the CMake executable that can graphically edit the cache.  For example, cmake-gui, ccmake, or cmake -i.</para>
    <para id="variable_CMAKE_EXECUTABLE_SUFFIX"><sect2><title>CMAKE_EXECUTABLE_SUFFIX</title></sect2> The suffix for executables on this platform.</para>

    <para>The suffix to use for the end of an executable if any, .exe on Windows.
</para><para>CMAKE_EXECUTABLE_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_EXTRA_GENERATOR"><sect2><title>CMAKE_EXTRA_GENERATOR</title></sect2> The extra generator used to build the project.</para>

    <para>When using the Eclipse, CodeBlocks or KDevelop generators, CMake generates Makefiles (CMAKE_GENERATOR) and additionally project files for the respective IDE. This IDE project file generator is stored in CMAKE_EXTRA_GENERATOR (e.g. "Eclipse CDT4").</para>
    <para id="variable_CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES"><sect2><title>CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES</title></sect2> Additional suffixes for shared libraries.</para>

    <para>Extensions for shared libraries other than that specified by CMAKE_SHARED_LIBRARY_SUFFIX, if any.  CMake uses this to recognize external shared library files during analysis of libraries linked by a target.</para>
    <para id="variable_CMAKE_GENERATOR"><sect2><title>CMAKE_GENERATOR</title></sect2> The generator used to build the project.</para>

    <para>The name of the generator that is being used to generate the build files.  (e.g. "Unix Makefiles", "Visual Studio 6", etc.)</para>
    <para id="variable_CMAKE_HOME_DIRECTORY"><sect2><title>CMAKE_HOME_DIRECTORY</title></sect2> Path to top of source tree.</para>

    <para>This is the path to the top level of the source tree.</para>
    <para id="variable_CMAKE_IMPORT_LIBRARY_PREFIX"><sect2><title>CMAKE_IMPORT_LIBRARY_PREFIX</title></sect2> The prefix for import libraries that you link to.</para>

    <para>The prefix to use for the name of an import library if used on this platform.
</para><para>CMAKE_IMPORT_LIBRARY_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_IMPORT_LIBRARY_SUFFIX"><sect2><title>CMAKE_IMPORT_LIBRARY_SUFFIX</title></sect2> The suffix for import  libraries that you link to.</para>

    <para>The suffix to use for the end of an import library if used on this platform.
</para><para>CMAKE_IMPORT_LIBRARY_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_LINK_LIBRARY_SUFFIX"><sect2><title>CMAKE_LINK_LIBRARY_SUFFIX</title></sect2> The suffix for libraries that you link to.</para>

    <para>The suffix to use for the end of a library, .lib on Windows.</para>
    <para id="variable_CMAKE_MAJOR_VERSION"><sect2><title>CMAKE_MAJOR_VERSION</title></sect2> The Major version of cmake (i.e. the 2 in 2.X.X)</para>

    <para>This specifies the major version of the CMake executable being run.</para>
    <para id="variable_CMAKE_MAKE_PROGRAM"><sect2><title>CMAKE_MAKE_PROGRAM</title></sect2> See CMAKE_BUILD_TOOL.</para>

    <para>This variable is around for backwards compatibility, see CMAKE_BUILD_TOOL.</para>
    <para id="variable_CMAKE_MINOR_VERSION"><sect2><title>CMAKE_MINOR_VERSION</title></sect2> The Minor version of cmake (i.e. the 4 in X.4.X).</para>

    <para>This specifies the minor version of the CMake executable being run.</para>
    <para id="variable_CMAKE_PARENT_LIST_FILE"><sect2><title>CMAKE_PARENT_LIST_FILE</title></sect2> Full path to the parent listfile of the one currently being processed.</para>

    <para>As CMake processes the listfiles in your project this variable will always be set to the listfile that included or somehow invoked the one currently being processed. See also CMAKE_CURRENT_LIST_FILE.</para>
    <para id="variable_CMAKE_PATCH_VERSION"><sect2><title>CMAKE_PATCH_VERSION</title></sect2> The patch version of cmake (i.e. the 3 in X.X.3).</para>

    <para>This specifies the patch version of the CMake executable being run.</para>
    <para id="variable_CMAKE_PROJECT_NAME"><sect2><title>CMAKE_PROJECT_NAME</title></sect2> The name of the current project.</para>

    <para>This specifies name of the current project from the closest inherited PROJECT command.</para>
    <para id="variable_CMAKE_RANLIB"><sect2><title>CMAKE_RANLIB</title></sect2> Name of randomizing tool for static libraries.</para>

    <para>This specifies name of the program that randomizes libraries on UNIX, not used on Windows, but may be present.</para>
    <para id="variable_CMAKE_ROOT"><sect2><title>CMAKE_ROOT</title></sect2> Install directory for running cmake.</para>

    <para>This is the install root for the running CMake and the Modules directory can be found here. This is commonly used in this format: ${CMAKE_ROOT}/Modules</para>
    <para id="variable_CMAKE_SCRIPT_MODE_FILE"><sect2><title>CMAKE_SCRIPT_MODE_FILE</title></sect2> Full path to the -P script file currently being processed. </para>

    <para>When run in -P script mode, CMake sets this variable to the full path of the script file. When run to configure a CMakeLists.txt file, this variable is not set.</para>
    <para id="variable_CMAKE_SHARED_LIBRARY_PREFIX"><sect2><title>CMAKE_SHARED_LIBRARY_PREFIX</title></sect2> The prefix for shared libraries that you link to.</para>

    <para>The prefix to use for the name of a shared library, lib on UNIX.
</para><para>CMAKE_SHARED_LIBRARY_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_SHARED_LIBRARY_SUFFIX"><sect2><title>CMAKE_SHARED_LIBRARY_SUFFIX</title></sect2> The suffix for shared libraries that you link to.</para>

    <para>The suffix to use for the end of a shared library, .dll on Windows.
</para><para>CMAKE_SHARED_LIBRARY_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_SHARED_MODULE_PREFIX"><sect2><title>CMAKE_SHARED_MODULE_PREFIX</title></sect2> The prefix for loadable modules that you link to.</para>

    <para>The prefix to use for the name of a loadable module on this platform.
</para><para>CMAKE_SHARED_MODULE_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_SHARED_MODULE_SUFFIX"><sect2><title>CMAKE_SHARED_MODULE_SUFFIX</title></sect2> The suffix for shared libraries that you link to.</para>

    <para>The suffix to use for the end of a loadable module on this platform
</para><para>CMAKE_SHARED_MODULE_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_SIZEOF_VOID_P"><sect2><title>CMAKE_SIZEOF_VOID_P</title></sect2> Size of a void pointer.</para>

    <para>This is set to the size of a pointer on the machine, and is determined by a try compile. If a 64 bit size is found, then the library search path is modified to look for 64 bit libraries first.</para>
    <para id="variable_CMAKE_SKIP_RPATH"><sect2><title>CMAKE_SKIP_RPATH</title></sect2> If true, do not add run time path information.</para>

    <para>If this is set to TRUE, then the rpath information is not added to compiled executables.  The default is to add rpath information if the platform supports it.  This allows for easy running from the build tree.  To omit RPATHin the install step, but not the build step, use CMAKE_SKIP_INSTALL_RPATH instead.</para>
    <para id="variable_CMAKE_SOURCE_DIR"><sect2><title>CMAKE_SOURCE_DIR</title></sect2> The path to the top level of the source tree.</para>

    <para>This is the full path to the top level of the current CMake source tree. For an in-source build, this would be the same as CMAKE_BINARY_DIR. </para>
    <para id="variable_CMAKE_STANDARD_LIBRARIES"><sect2><title>CMAKE_STANDARD_LIBRARIES</title></sect2> Libraries linked into every executable and shared library.</para>

    <para>This is the list of libraries that are linked into all executables and libraries.</para>
    <para id="variable_CMAKE_STATIC_LIBRARY_PREFIX"><sect2><title>CMAKE_STATIC_LIBRARY_PREFIX</title></sect2> The prefix for static libraries that you link to.</para>

    <para>The prefix to use for the name of a static library, lib on UNIX.
</para><para>CMAKE_STATIC_LIBRARY_PREFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_STATIC_LIBRARY_SUFFIX"><sect2><title>CMAKE_STATIC_LIBRARY_SUFFIX</title></sect2> The suffix for static libraries that you link to.</para>

    <para>The suffix to use for the end of a static library, .lib on Windows.
</para><para>CMAKE_STATIC_LIBRARY_SUFFIX_&lt;LANG&gt; overrides this for language &lt;LANG&gt;.</para>
    <para id="variable_CMAKE_TWEAK_VERSION"><sect2><title>CMAKE_TWEAK_VERSION</title></sect2> The tweak version of cmake (i.e. the 1 in X.X.X.1).</para>

    <para>This specifies the tweak version of the CMake executable being run.  Releases use tweak &lt; 20000000 and development versions use the date format CCYYMMDD for the tweak level.</para>
    <para id="variable_CMAKE_USING_VC_FREE_TOOLS"><sect2><title>CMAKE_USING_VC_FREE_TOOLS</title></sect2> True if free visual studio tools being used.</para>

    <para>This is set to true if the compiler is Visual Studio free tools.</para>
    <para id="variable_CMAKE_VERBOSE_MAKEFILE"><sect2><title>CMAKE_VERBOSE_MAKEFILE</title></sect2> Create verbose makefiles if on.</para>

    <para>This variable defaults to false. You can set this variable to true to make CMake produce verbose makefiles that show each command line as it is used.</para>
    <para id="variable_CMAKE_VERSION"><sect2><title>CMAKE_VERSION</title></sect2> The full version of cmake in major.minor.patch[.tweak[-id]] format.</para>

    <para>This specifies the full version of the CMake executable being run.  This variable is defined by versions 2.6.3 and higher.  See variables CMAKE_MAJOR_VERSION, CMAKE_MINOR_VERSION, CMAKE_PATCH_VERSION, and CMAKE_TWEAK_VERSION for individual version components.  The [-id] component appears in non-release versions and may be arbitrary text.</para>
    <para id="variable_PROJECT_BINARY_DIR"><sect2><title>PROJECT_BINARY_DIR</title></sect2> Full path to build directory for project.</para>

    <para>This is the binary directory of the most recent PROJECT command.</para>
    <para id="variable_PROJECT_NAME"><sect2><title>PROJECT_NAME</title></sect2> Name of the project given to the project command.</para>

    <para>This is the name given to the most recent PROJECT command. </para>
    <para id="variable_PROJECT_SOURCE_DIR"><sect2><title>PROJECT_SOURCE_DIR</title></sect2> Top level source directory for the current project.</para>

    <para>This is the source directory of the most recent PROJECT command.</para>
    <para id="variable_[Project name]_BINARY_DIR"><sect2><title>[Project name]_BINARY_DIR</title></sect2> Top level binary directory for the named project.</para>

    <para>A variable is created with the name used in the PROJECT command, and is the binary directory for the project.   This can be useful when SUBDIR is used to connect several projects.</para>
    <para id="variable_[Project name]_SOURCE_DIR"><sect2><title>[Project name]_SOURCE_DIR</title></sect2> Top level source directory for the named project.</para>

    <para>A variable is created with the name used in the PROJECT command, and is the source directory for the project.   This can be useful when add_subdirectory is used to connect several projects.</para>
</sect1>
<sect1 id="section_Copyright">
<title>
Copyright</title>
<itemizedlist>
</itemizedlist>
<para>Copyright 2000-2009 Kitware, Inc., Insight Software Consortium.  All rights reserved.</para>
<para>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</para>
<para>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</para>
<para>Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</para>
<para>Neither the names of Kitware, Inc., the Insight Software Consortium, nor the names of their contributors may be used to endorse or promote products derived from this software without specific prior written permission.</para>
<para>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</para>
</sect1>
<sect1 id="section_See Also">
<title>
See Also</title>
<itemizedlist>
    <listitem><link linkend="see_Home Page"><emphasis><literal>Home Page</literal></emphasis></link></listitem>
    <listitem><link linkend="see_Frequently Asked Questions"><emphasis><literal>Frequently Asked Questions</literal></emphasis></link></listitem>
    <listitem><link linkend="see_Online Documentation"><emphasis><literal>Online Documentation</literal></emphasis></link></listitem>
    <listitem><link linkend="see_Mailing List"><emphasis><literal>Mailing List</literal></emphasis></link></listitem>
</itemizedlist>
<para>The following resources are available to get help using CMake:</para>
    <para id="see_Home Page"><sect2><title>Home Page</title></sect2> <ulink url="http://www.cmake.org" /></para>

    <para>The primary starting point for learning about CMake.</para>
    <para id="see_Frequently Asked Questions"><sect2><title>Frequently Asked Questions</title></sect2> <ulink url="http://www.cmake.org/Wiki/CMake_FAQ" /></para>

    <para>A Wiki is provided containing answers to frequently asked questions. </para>
    <para id="see_Online Documentation"><sect2><title>Online Documentation</title></sect2> <ulink url="http://www.cmake.org/HTML/Documentation.html" /></para>

    <para>Links to available documentation may be found on this web page.</para>
    <para id="see_Mailing List"><sect2><title>Mailing List</title></sect2> <ulink url="http://www.cmake.org/HTML/MailingLists.html" /></para>

    <para>For help and discussion about using cmake, a mailing list is provided at cmake@cmake.org. The list is member-post-only but one may sign up on the CMake web page. Please first read the full documentation at <ulink url="http://www.cmake.org" /> before posting questions to the list.</para>
<para>Summary of helpful links:
</para><literallayout>  Home: <ulink url="http://www.cmake.org" />
  Docs: <ulink url="http://www.cmake.org/HTML/Documentation.html" />
  Mail: <ulink url="http://www.cmake.org/HTML/MailingLists.html" />
  FAQ:  <ulink url="http://www.cmake.org/Wiki/CMake_FAQ" />
</literallayout>
    
</sect1>
</article>
