musikcube/.cmake/AddPlugin.cmake
Casey Langen c59b130569 Introduced add_plugin() to CMake build system to ensure dependencies are
properly configured for musikcube and musikcubed targets.
2022-02-10 18:34:07 -08:00

6 lines
291 B
CMake

function(add_plugin plugin_name)
message(STATUS "[add-plugin] adding '${plugin_name}' to musikcube and musikcubed targets")
add_subdirectory("src/plugins/${plugin_name}")
add_dependencies(musikcube plugin_name)
add_dependencies(musikcubed plugin_name)
endfunction(add_plugin)