BasicPlugin¶
Module defining the function basic_plugin()
to generate a generic
plugin module.
-
basic_plugin
¶ Create a plugin module.
- Synopsis:
basic_plugin(<name> <type> [<options>])
- Options:
ALIASES <alias>...
Create the specified CMake alias targets to the plugin.
ALLOW_UNDERSCORES
Normally, neither
<name>
nor<type>
may contain underscores in order to avoid possible ambiguities. Allow them with this option at your own risk.BASENAME_ONLY
Do not add the relative path (directories delimited by
_
) to the front of the plugin library name.EXPORT <export-name>
Add the library to the
<export-name>
export set.LIB_TYPE SHARED|STATIC|MODULE
Set the library type. Defaults to
SHARED
.LIBRARIES <library-dependency>...
Dependencies against which to link.
LOCAL_INCLUDE_DIRS <dir>...
Headers may be found in
<dir>
… at build time.NOP
Option / argument disambiguator; no other function.
NO_INSTALL
Do not install the generated plugin.
SOURCE <source>...
Specify sources to compile into the plugin.
SOVERSION <version>
The library’s compatibility version (cf
SOVERSION
).USE_BOOST_UNIT
The plugin uses Boost unit test functions and should be compiled and linked accordingly.
USE_PRODUCT_NAME
Deprecated since version 2.0: use
USE_PACKAGE_NAME
instead.USE_PACKAGE_NAME
The package name will be prepended to the pluign library name, separated by
_
VERSION
The library’s build version will be set to
PROJECT_NAME
(cfVERSION
).
Non-option arguments:
<name>
The name stem for the library to be generated.
<type>
The type of plugin to be generated.
Note
The plugin generated will be named
<prefix><name>_<type><suffix>
.See also
cet_cmake_library()