From 32e976ae72442b8ce36098c2b9d85a47db5cfda2 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 5 Mar 2008 18:33:07 +0100 Subject: Fix of IRC plugin compilation with cmake --- src/plugins/irc/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/irc/CMakeLists.txt b/src/plugins/irc/CMakeLists.txt index 1eabff5d9..ada344c80 100644 --- a/src/plugins/irc/CMakeLists.txt +++ b/src/plugins/irc/CMakeLists.txt @@ -14,15 +14,17 @@ # along with this program. If not, see . # -SET(LIB_PROTOCOL_IRC_SRC irc.c irc.h irc-buffer.c irc-buffer.h irc-channel.c +ADD_LIBRARY(irc MODULE irc.c irc.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-debug.c irc-debug.h irc-display.c irc-display.h irc-input.c irc-mode.c irc-mode.h irc-nick.c irc-nick.h irc-protocol.c irc-protocol.h irc-server.c irc-server.h) +SET_TARGET_PROPERTIES(irc PROPERTIES PREFIX "") CHECK_INCLUDE_FILES("regex.h" HAVE_REGEX_H) CHECK_FUNCTION_EXISTS(regexec HAVE_REGEXEC) CHECK_FUNCTION_EXISTS(uname HAVE_UNAME) -INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR}) -ADD_LIBRARY(weechat_protocol_irc STATIC ${LIB_PROTOCOL_IRC_SRC}) +TARGET_LINK_LIBRARIES(irc) + +INSTALL(TARGETS irc LIBRARY DESTINATION lib/${PROJECT_NAME}/plugins) -- cgit v1.2.3