-
Notifications
You must be signed in to change notification settings - Fork 1
CMake functions
Jiří Fatka edited this page Sep 5, 2016
·
1 revision
Each plugin uses build_plugin
function in CMakeLists.txt. This function offers parameters which can configure built plugin.
build_plugin(<name> [EXPORT_HEADER]
SOURCES source1 [source2 ...]
[LIBRARIES library1 [library2 ...]]
[DEPENDENCIES dependency1 [dependency2 ...]]
[PLUGINS_REQUIRED plugin1 [plugin2 ...]])
Builds a plugin with name <name>
from source files. EXPORT_HEADER
flag generate export header file using GenerateExportHeader
. Result library depends on given libraries and is built after given dependencies. Plugin can dependent on other plugins (PLUGINS_REQUIRED
).
There's support for automated tests (googletest) for plugins.
build_test(<name>
SOURCES source1 [source2 ...]
[LIBRARIES library1 [library2 ...]]
[DEPENDENCIES dependency1 [dependency2 ...]]
[PLUGINS_REQUIRED plugin1 [plugin2 ...]])
Meaning of the parameters is same as for build_plugin
.