1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

core: fix style in CMake files

This commit is contained in:
Sébastien Helleu
2019-09-28 20:37:38 +02:00
parent 779420d50d
commit baf8f635ff
39 changed files with 254 additions and 210 deletions
+6 -5
View File
@@ -18,11 +18,12 @@
#
add_library(alias MODULE
alias.c alias.h
alias-command.c alias-command.h
alias-completion.c alias-completion.h
alias-config.c alias-config.h
alias-info.c alias-info.h)
alias.c alias.h
alias-command.c alias-command.h
alias-completion.c alias-completion.h
alias-config.c alias-config.h
alias-info.c alias-info.h
)
set_target_properties(alias PROPERTIES PREFIX "")
target_link_libraries(alias coverage_config)
+7 -6
View File
@@ -18,12 +18,13 @@
#
add_library(buflist MODULE
buflist.c buflist.h
buflist-bar-item.c buflist-bar-item.h
buflist-command.c buflist-command.h
buflist-config.c buflist-config.h
buflist-info.c buflist-info.h
buflist-mouse.c buflist-mouse.h)
buflist.c buflist.h
buflist-bar-item.c buflist-bar-item.h
buflist-command.c buflist-command.h
buflist-config.c buflist-config.h
buflist-info.c buflist-info.h
buflist-mouse.c buflist-mouse.h
)
set_target_properties(buflist PROPERTIES PREFIX "")
target_link_libraries(buflist coverage_config)
+3 -1
View File
@@ -17,7 +17,9 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(charset MODULE charset.c)
add_library(charset MODULE
charset.c
)
set_target_properties(charset PROPERTIES PREFIX "")
if(ICONV_FOUND)
+6 -5
View File
@@ -18,11 +18,12 @@
#
add_library(exec MODULE
exec.c exec.h
exec-buffer.c exec-buffer.h
exec-command.c exec-command.h
exec-completion.c exec-completion.h
exec-config.c exec-config.h)
exec.c exec.h
exec-buffer.c exec-buffer.h
exec-command.c exec-command.h
exec-completion.c exec-completion.h
exec-config.c exec-config.h
)
set_target_properties(exec PROPERTIES PREFIX "")
target_link_libraries(exec coverage_config)
+5 -4
View File
@@ -18,10 +18,11 @@
#
add_library(fifo MODULE
fifo.c fifo.h
fifo-command.c fifo-command.h
fifo-config.c fifo-config.h
fifo-info.c fifo-info.h)
fifo.c fifo.h
fifo-command.c fifo-command.h
fifo-config.c fifo-config.h
fifo-info.c fifo-info.h
)
set_target_properties(fifo PROPERTIES PREFIX "")
target_link_libraries(fifo coverage_config)
+10 -9
View File
@@ -18,15 +18,16 @@
#
add_library(fset MODULE
fset.c fset.h
fset-bar-item.c fset-bar-item.h
fset-buffer.c fset-buffer.h
fset-command.c fset-command.h
fset-completion.c fset-completion.h
fset-config.c fset-config.h
fset-info.c fset-info.h
fset-mouse.c fset-mouse.h
fset-option.c fset-option.h)
fset.c fset.h
fset-bar-item.c fset-bar-item.h
fset-buffer.c fset-buffer.h
fset-command.c fset-command.h
fset-completion.c fset-completion.h
fset-config.c fset-config.h
fset-info.c fset-info.h
fset-mouse.c fset-mouse.h
fset-option.c fset-option.h
)
set_target_properties(fset PROPERTIES PREFIX "")
target_link_libraries(fset coverage_config)
+4 -3
View File
@@ -17,9 +17,10 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(guile MODULE weechat-guile.c weechat-guile.h
weechat-guile-api.c weechat-guile-api.h)
add_library(guile MODULE
weechat-guile.c weechat-guile.h
weechat-guile-api.c weechat-guile-api.h
)
set_target_properties(guile PROPERTIES PREFIX "")
if(GUILE_FOUND)
+26 -25
View File
@@ -18,31 +18,32 @@
#
add_library(irc MODULE
irc.c irc.h
irc-bar-item.c irc-bar-item.h
irc-buffer.c irc-buffer.h
irc-channel.c irc-channel.h
irc-color.c irc-color.h
irc-command.c irc-command.h
irc-completion.c irc-completion.h
irc-config.c irc-config.h
irc-ctcp.c irc-ctcp.h
irc-debug.c irc-debug.h
irc-ignore.c irc-ignore.h
irc-info.c irc-info.h
irc-input.c irc-input.h
irc-message.c irc-message.h
irc-mode.c irc-mode.h
irc-modelist.c irc-modelist.h
irc-msgbuffer.c irc-msgbuffer.h
irc-nick.c irc-nick.h
irc-notify.c irc-notify.h
irc-protocol.c irc-protocol.h
irc-raw.c irc-raw.h
irc-redirect.c irc-redirect.h
irc-sasl.c irc-sasl.h
irc-server.c irc-server.h
irc-upgrade.c irc-upgrade.h)
irc.c irc.h
irc-bar-item.c irc-bar-item.h
irc-buffer.c irc-buffer.h
irc-channel.c irc-channel.h
irc-color.c irc-color.h
irc-command.c irc-command.h
irc-completion.c irc-completion.h
irc-config.c irc-config.h
irc-ctcp.c irc-ctcp.h
irc-debug.c irc-debug.h
irc-ignore.c irc-ignore.h
irc-info.c irc-info.h
irc-input.c irc-input.h
irc-message.c irc-message.h
irc-mode.c irc-mode.h
irc-modelist.c irc-modelist.h
irc-msgbuffer.c irc-msgbuffer.h
irc-nick.c irc-nick.h
irc-notify.c irc-notify.h
irc-protocol.c irc-protocol.h
irc-raw.c irc-raw.h
irc-redirect.c irc-redirect.h
irc-sasl.c irc-sasl.h
irc-server.c irc-server.h
irc-upgrade.c irc-upgrade.h
)
set_target_properties(irc PROPERTIES PREFIX "")
set(LINK_LIBS)
+5 -4
View File
@@ -19,10 +19,11 @@
enable_language(CXX)
add_library(javascript MODULE weechat-js.cpp weechat-js.h
weechat-js-v8.cpp weechat-js-v8.h
weechat-js-api.cpp weechat-js-api.h)
add_library(javascript MODULE
weechat-js.cpp weechat-js.h
weechat-js-v8.cpp weechat-js-v8.h
weechat-js-api.cpp weechat-js-api.h
)
set_target_properties(javascript PROPERTIES PREFIX "")
if(V8_FOUND)
+8 -7
View File
@@ -18,13 +18,14 @@
#
add_library(logger MODULE
logger.c logger.h
logger-backlog.c logger-backlog.h
logger-buffer.c logger-buffer.h
logger-command.c logger-command.h
logger-config.c logger-config.h
logger-info.c logger-info.h
logger-tail.c logger-tail.h)
logger.c logger.h
logger-backlog.c logger-backlog.h
logger-buffer.c logger-buffer.h
logger-command.c logger-command.h
logger-config.c logger-config.h
logger-info.c logger-info.h
logger-tail.c logger-tail.h
)
set_target_properties(logger PROPERTIES PREFIX "")
target_link_libraries(logger coverage_config)
+4 -3
View File
@@ -18,9 +18,10 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(lua MODULE weechat-lua.c weechat-lua.h weechat-lua-api.c
weechat-lua-api.h)
add_library(lua MODULE
weechat-lua.c weechat-lua.h
weechat-lua-api.c weechat-lua-api.h
)
set_target_properties(lua PROPERTIES PREFIX "")
if(LUA_FOUND)
+4 -3
View File
@@ -17,9 +17,10 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(perl MODULE weechat-perl.c weechat-perl.h weechat-perl-api.c
weechat-perl-api.h)
add_library(perl MODULE
weechat-perl.c weechat-perl.h
weechat-perl-api.c weechat-perl-api.h
)
set_target_properties(perl PROPERTIES PREFIX "")
if(PERL_FOUND)
+4 -3
View File
@@ -17,9 +17,10 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(php MODULE weechat-php.c weechat-php.h weechat-php-api.c
weechat-php-api.h)
add_library(php MODULE
weechat-php.c weechat-php.h
weechat-php-api.c weechat-php-api.h
)
set_target_properties(php PROPERTIES PREFIX "")
if(PHP_FOUND)
+4 -3
View File
@@ -17,9 +17,10 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(python MODULE weechat-python.c weechat-python.h
weechat-python-api.c weechat-python-api.h)
add_library(python MODULE
weechat-python.c weechat-python.h
weechat-python-api.c weechat-python-api.h
)
set_target_properties(python PROPERTIES PREFIX "")
if(PYTHON_FOUND)
+18 -17
View File
@@ -18,23 +18,24 @@
#
add_library(relay MODULE
relay.c relay.h
relay-buffer.c relay-buffer.h
relay-client.c relay-client.h
irc/relay-irc.c irc/relay-irc.h
weechat/relay-weechat.c weechat/relay-weechat.h
weechat/relay-weechat-msg.c weechat/relay-weechat-msg.h
weechat/relay-weechat-nicklist.c weechat/relay-weechat-nicklist.h
weechat/relay-weechat-protocol.c weechat/relay-weechat-protocol.h
relay-command.c relay-command.h
relay-completion.c relay-completion.h
relay-config.c relay-config.h
relay-info.c relay-info.h
relay-network.c relay-network.h
relay-raw.c relay-raw.h
relay-server.c relay-server.h
relay-upgrade.c relay-upgrade.h
relay-websocket.c relay-websocket.h)
relay.c relay.h
relay-buffer.c relay-buffer.h
relay-client.c relay-client.h
irc/relay-irc.c irc/relay-irc.h
weechat/relay-weechat.c weechat/relay-weechat.h
weechat/relay-weechat-msg.c weechat/relay-weechat-msg.h
weechat/relay-weechat-nicklist.c weechat/relay-weechat-nicklist.h
weechat/relay-weechat-protocol.c weechat/relay-weechat-protocol.h
relay-command.c relay-command.h
relay-completion.c relay-completion.h
relay-config.c relay-config.h
relay-info.c relay-info.h
relay-network.c relay-network.h
relay-raw.c relay-raw.h
relay-server.c relay-server.h
relay-upgrade.c relay-upgrade.h
relay-websocket.c relay-websocket.h
)
set_target_properties(relay PROPERTIES PREFIX "")
set(LINK_LIBS)
+4 -3
View File
@@ -17,9 +17,10 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(ruby MODULE weechat-ruby.c weechat-ruby.h weechat-ruby-api.c
weechat-ruby-api.h)
add_library(ruby MODULE
weechat-ruby.c weechat-ruby.h
weechat-ruby-api.c weechat-ruby-api.h
)
set_target_properties(ruby PROPERTIES PREFIX "")
if(RUBY_FOUND)
+10 -9
View File
@@ -18,15 +18,16 @@
#
add_library(script MODULE
script.c script.h
script-action.c script-action.h
script-buffer.c script-buffer.h
script-command.c script-command.h
script-completion.c script-completion.h
script-config.c script-config.h
script-info.c script-info.h
script-mouse.c script-mouse.h
script-repo.c script-repo.h)
script.c script.h
script-action.c script-action.h
script-buffer.c script-buffer.h
script-command.c script-command.h
script-completion.c script-completion.h
script-config.c script-config.h
script-info.c script-info.h
script-mouse.c script-mouse.h
script-repo.c script-repo.h
)
set_target_properties(script PROPERTIES PREFIX "")
set(LINK_LIBS)
+8 -7
View File
@@ -19,13 +19,14 @@
#
add_library(spell MODULE
spell.c spell.h
spell-bar-item.c spell-bar-item.h
spell-command.c spell-command.h
spell-completion.c spell-completion.h
spell-config.c spell-config.h
spell-info.c spell-info.h
spell-speller.c spell-speller.h)
spell.c spell.h
spell-bar-item.c spell-bar-item.h
spell-command.c spell-command.h
spell-completion.c spell-completion.h
spell-config.c spell-config.h
spell-info.c spell-info.h
spell-speller.c spell-speller.h
)
set_target_properties(spell PROPERTIES PREFIX "")
if(ENCHANT_FOUND)
+4 -3
View File
@@ -19,9 +19,10 @@
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
#
add_library(tcl MODULE weechat-tcl.c weechat-tcl.h
weechat-tcl-api.c weechat-tcl-api.h)
add_library(tcl MODULE
weechat-tcl.c weechat-tcl.h
weechat-tcl-api.c weechat-tcl-api.h
)
set_target_properties(tcl PROPERTIES PREFIX "")
if(TCL_FOUND)
+7 -6
View File
@@ -18,12 +18,13 @@
#
add_library(trigger MODULE
trigger.c trigger.h
trigger-buffer.c trigger-buffer.h
trigger-callback.c trigger-callback.h
trigger-command.c trigger-command.h
trigger-completion.c trigger-completion.h
trigger-config.c trigger-config.h)
trigger.c trigger.h
trigger-buffer.c trigger-buffer.h
trigger-callback.c trigger-callback.h
trigger-command.c trigger-command.h
trigger-completion.c trigger-completion.h
trigger-config.c trigger-config.h
)
set_target_properties(trigger PROPERTIES PREFIX "")
target_link_libraries(trigger coverage_config)
+12 -11
View File
@@ -18,17 +18,18 @@
#
add_library(xfer MODULE
xfer.c xfer.h
xfer-buffer.c xfer-buffer.h
xfer-chat.c xfer-chat.h
xfer-command.c xfer-command.h
xfer-completion.c xfer-completion.h
xfer-config.c xfer-config.h
xfer-dcc.c xfer-dcc.h
xfer-file.c xfer-file.h
xfer-info.c xfer-info.h
xfer-network.c xfer-network.h
xfer-upgrade.c xfer-upgrade.h)
xfer.c xfer.h
xfer-buffer.c xfer-buffer.h
xfer-chat.c xfer-chat.h
xfer-command.c xfer-command.h
xfer-completion.c xfer-completion.h
xfer-config.c xfer-config.h
xfer-dcc.c xfer-dcc.h
xfer-file.c xfer-file.h
xfer-info.c xfer-info.h
xfer-network.c xfer-network.h
xfer-upgrade.c xfer-upgrade.h
)
set_target_properties(xfer PROPERTIES PREFIX "")
set(LINK_LIBS)