Go to the source code of this file.
Functions | |
function | paraview_client_add () |
.md Building a clientMore... | |
function | _paraview_client_escape_cmake_list (variable) |
.md INTERNAL QuotingMore... | |
function | _paraview_client_unescape_cmake_list (variable) |
function | paraview_client_documentation () |
.md Documentation from XML filesMore... | |
function | paraview_client_generate_help () |
.md Generating help documentationMore... | |
function | paraview_client_qt_resource () |
.md Qt resourcesMore... | |
function | paraview_client_qt_resources () |
.md Many filesMore... | |
function paraview_client_add | ( | ) |
.md
TODO: Document
NAME
: (Required) The name of the application. This is used as the target name as well.VERSION
: (Required) The version of the application.SOURCES
: (Required) Source files for the application.APPLICATION_XMLS
: Server manager XML files.QCH_FILES
: Any .qch
files containing documentation.MAIN_WINDOW_CLASS
: (Defaults to QMainWindow
) The name of the main window class.MAIN_WINDOW_INCLUDE
: (Defaults to QMainWindow
or <MAIN_WINDOW_CLASS>.h
if it is specified) The include file for the main window.PLUGINS_TARGETS
: The targets for plugins. The associated functions will be called upon startup.REQUIRED_PLUGINS
: Plugins to load upon startup.OPTIONAL_PLUGINS
: Plugins to load upon startup if available.APPLICATION_NAME
: (Defaults to <NAME>
) The displayed name of the application.ORGANIZATION
: (Defaults to Anonymous
) The organization for the application. This is used for the macOS GUI identifier.TITLE
: The window title for the application.DEFAULT_STYLE
: The default Qt style for the application.APPLICATION_ICON
: The path to the icon for the Windows application.BUNDLE_ICON
: The path to the icon for the macOS bundle.BUNDLE_PLIST
: The path to the Info.plist.in
template.SPLASH_IMAGE
: The image to display upon startup.NAMESPACE
: If provided, an alias target <NAMESPACE>::<NAME>
will be created.EXPORT
: If provided, the target will be exported.FORCE_UNIX_LAYOUT
: (Defaults to OFF
) Forces a Unix-style layout even on platforms for which they are not the norm for GUI applications (e.g., macOS).BUNDLE_DESTINATION
: (Defaults to Applications
) Where to place the bundle executable.RUNTIME_DESTINATION
: (Defaults to ${CMAKE_INSTALL_BINDIR}
) Where to place the binary.LIBRARY_DESTINATION
: (Defaults to ${CMAKE_INSTALL_LIBDIR}
) Where libraries are placed. Sets up RPATH
on ELF platforms (e.g., Linux and the BSD family).TRANSLATE_XML
: (Defaults to OFF
) Produce a translations source file from APPLICATION_XMLS files.TRANSLATIONS_DIRECTORY
: (Defaults to ${CMAKE_CURRENT_BINARY_DIR}/Translations
) The path of the directory where translation source files are stored.TRANSLATION_TARGET
: The name of the target on which to add the ts file as dependency. Definition at line 92 of file ParaViewClient.cmake.
function _paraview_client_escape_cmake_list | ( | variable | ) |
.md INTERNAL
Passing CMake lists down to the help generation and proxy documentation steps requires escaping the ;
in them. These functions escape and unescape the variable passed in. The new value is placed in the same variable in the calling scope.
Definition at line 506 of file ParaViewClient.cmake.
function _paraview_client_unescape_cmake_list | ( | variable | ) |
Definition at line 514 of file ParaViewClient.cmake.
function paraview_client_documentation | ( | ) |
.md
Documentation can be generated from server manager XML files. The paraview_client_documentation
generates Qt help, HTML, and Wiki documentation from them.
TARGET
: (Required) The name of the target to generate.XMLS
: (Required) The list of XML files to process.OUTPUT_DIR
: (Defaults to ${CMAKE_CURRENT_BINARY_DIR}
) Where to place generated documentation. Definition at line 541 of file ParaViewClient.cmake.
function paraview_client_generate_help | ( | ) |
.md
TODO: Document
NAME
: (Required) The basename of the generated .qch
file.TARGET
: (Defaults to <NAME>
) The name of the generated target.OUTPUT_PATH
: (Required) This variable is set to the output path of the generated .qch
file.OUTPUT_DIR
: (Defaults to ${CMAKE_CURRENT_BINARY_DIR}
) Where to place generated files.SOURCE_DIR
: Where to copy input files from.PATTERNS
: (Defaults to *.*
) If SOURCE_DIR
is specified, files matching these globs will be copied to OUTPUT_DIR
.DEPENDS
: A list of dependencies which are required before the help can be generated. Note that file paths which are generated via add_custom_command
must be in the same directory as the paraview_client_generate_help
on non-Ninja generators.NAMESPACE
: (Defaults to <NAME>.org
) The namespace for the generated help.FOLDER
: (Defaults to <NAME>
) The folder for the generated help.TABLE_OF_CONTENTS
and TABLE_OF_CONTENTS_FILE
: At most one may be provided. This is used as the <toc>
element in the generated help. If not provided at all, a table of contents will be generated.RESOURCE_FILE
: If provided, a Qt resource file providing the contents of the generated help will be generated at this path. It will be available as <RESOURCE_PREFIX>/<NAME>
.RESOURCE_PREFIX
: The prefix to use for the generated help's Qt resource. Definition at line 798 of file ParaViewClient.cmake.
function paraview_client_qt_resource | ( | ) |
.md
Compiling Qt resources into a client can be a little tedious. To help with this, some functions are provided to make it easier to embed content into the client. .md
Outputs a Qt resource to the file given to the OUTPUT
argument. Its resource name is <PREFIX>/<ALIAS>
. The contents are copied from the contents of the file specified by the FILE
argument. If not given the name of the file is used as the ALIAS
.
Definition at line 1034 of file ParaViewClient.cmake.
function paraview_client_qt_resources | ( | ) |
.md
Outputs a Qt resource to the file given to the OUTPUT
argument. Its resource name is <PREFIX>/<filename>
for each of the files in the given list. If aliases other than the filenames are required, the paraview_client_qt_resource
function should be used instead.
Definition at line 1109 of file ParaViewClient.cmake.