OrangesGenerateExportHeader

This module is a thin wrapper around CMake’s generate_export_header(), and adds the oranges_generate_export_header() command.

oranges_generate_export_header
oranges_generate_export_header (<targetName>
                               [BASE_NAME <baseName>]
                               [HEADER <exportHeaderName>]
                               [SCOPE <PUBLIC|PRIVATE|INTERFACE>]
                               [INSTALL_COMPONENT <componentName>] [REL_PATH <installRelPath>])

Generates a header file containing symbol export macros, and adds it to the specified target.

Options:

BASE_NAME

Prefix to use for all macros in the generated header file. Defaults to <targetName>.

SCOPE

The visibility with which the generated header will be added to the target. Defaults to INTERFACE for interface library targets, PRIVATE for executables, and PUBLIC for all other target types.

INSTALL_COMPONENT

Name of an install component to add the generated header to. The install component will not be created by this command.

REL_PATH

A path below CMAKE_INSTALL_INCLUDEDIR where the generated header will be installed to. Defaults to <targetName>.

See also

Module GenerateExportHeader

OrangesGenerateExportHeader is a thin wrapper around this module shipped by CMake

Module OrangesGenerateStandardHeaders

An aggregate module that includes this one