summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-03-05 18:33:07 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-03-05 18:33:07 +0100
commit32e976ae72442b8ce36098c2b9d85a47db5cfda2 (patch)
treeed80638253ce42792fcac112b668ec4cedbe67e1 /src
parent573b4d9dec340c214578701d6aeb67415f289584 (diff)
downloadweechat-32e976ae72442b8ce36098c2b9d85a47db5cfda2.zip
Fix of IRC plugin compilation with cmake
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
#
-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)