CMake functions - GeorgievLab/CeCe-plugins GitHub Wiki

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.

⚠️ **GitHub.com Fallback** ⚠️