musikcube/.cmake/AddPlugin.cmake

6 lines
291 B
CMake
Raw Normal View History

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)