SceneSwitcher/plugins/CMakeLists.txt
WarmUpTill 7d0332dd0e Restructure library and plugins
The "core" macro conditions and actions have been extracted out to the
"base" plugin.

The library now mostly contains functionality which is required across
all plugins and (e.g. definitions for macro segments).

The goal is to reduce the complexity and cross-dependencies and group
the source files in a better way.

This should relsove the "library limit of 65535 objects exceeded" build
issue occuring in some Windows build environments.
2024-01-27 14:10:34 +01:00

35 lines
810 B
CMake

macro(add_plugin plugin)
option(ENABLE_${plugin}_PLUGIN "Enable the ${plugin} plugin" ON)
if(ENABLE_${plugin}_PLUGIN)
add_subdirectory(${plugin})
endif()
endmacro()
# ---------------------------------------------------------------------------- #
add_subdirectory(base)
# Add plugins below, which have dependencies to external libraries or other
# components which might potentially not be fulfilled.
#[[
To add a new plugin with external dependencies append a ...
add_plugin(<plugin_name>)
... call to the end of this file.
In the plugins cmake file call the helper functions ...
install_advss_plugin(<plugin_name>)
... and ...
install_advss_plugin_dependency(...)
... to install the plugin and its dependencies.
#]]
add_plugin(midi)
add_plugin(openvr)
add_plugin(twitch)
add_plugin(video)