Make sure to install Lua plugins if enabled

This commit is contained in:
Přemysl Eric Janouch 2015-02-09 20:48:48 +01:00
parent 30a6af515d
commit 17164b69b7
1 changed files with 5 additions and 0 deletions

View File

@ -76,8 +76,13 @@ install (TARGETS plugin-http DESTINATION ${plugin_dir})
# Build the other plugins
set (plugins irc ssh)
set (lua_plugins socks)
if (WITH_LUA)
list (APPEND plugins lua-loader)
foreach (lua_plugin ${lua_plugins})
install (FILES plugins/${lua_plugin}.lua DESTINATION ${plugin_dir})
endforeach (lua_plugin)
endif (WITH_LUA)
foreach (plugin ${plugins})
set (target plugin-${plugin})