summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/irc')
-rw-r--r--kopete/protocols/irc/CMakeLists.txt54
-rw-r--r--kopete/protocols/irc/icons/CMakeLists.txt12
-rw-r--r--kopete/protocols/irc/libkirc/CMakeLists.txt30
-rw-r--r--kopete/protocols/irc/libkirc/kircentity.h2
-rw-r--r--kopete/protocols/irc/ui/CMakeLists.txt30
5 files changed, 127 insertions, 1 deletions
diff --git a/kopete/protocols/irc/CMakeLists.txt b/kopete/protocols/irc/CMakeLists.txt
new file mode 100644
index 00000000..6c795704
--- /dev/null
+++ b/kopete/protocols/irc/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( icons )
+add_subdirectory( libkirc )
+add_subdirectory( ui )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/ui
+ ${CMAKE_CURRENT_SOURCE_DIR}/ui
+ ${CMAKE_CURRENT_SOURCE_DIR}/libkirc
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete/ui
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kopete_irc.desktop irc.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+install( FILES
+ ircnetworks.xml ircchatui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kopete )
+
+
+##### kopete_irc (module) #######################
+
+tde_add_kpart( kopete_irc AUTOMOC
+ SOURCES
+ ircaccount.cpp ircaddcontactpage.cpp ircchannelcontact.cpp
+ irccontact.cpp ircguiclient.cpp ircprotocol.cpp ircservercontact.cpp
+ ircsignalhandler.cpp irctransferhandler.cpp ircusercontact.cpp
+ irccontactmanager.cpp kcodecaction.cpp ksparser.cpp
+ LINK
+ kopeteircui-static kirc-static kopete-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kopete/protocols/irc/icons/CMakeLists.txt b/kopete/protocols/irc/icons/CMakeLists.txt
new file mode 100644
index 00000000..ba51467b
--- /dev/null
+++ b/kopete/protocols/irc/icons/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kopete/icons )
diff --git a/kopete/protocols/irc/libkirc/CMakeLists.txt b/kopete/protocols/irc/libkirc/CMakeLists.txt
new file mode 100644
index 00000000..d2b298c2
--- /dev/null
+++ b/kopete/protocols/irc/libkirc/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kirc (static) #############################
+
+tde_add_library( kirc STATIC_PIC AUTOMOC
+ SOURCES
+ kircengine.cpp kircengine_commands.cpp kircengine_ctcp.cpp
+ kircengine_numericreplies.cpp kircentity.cpp kircmessage.cpp
+ kircmessageredirector.cpp kirctransfer.cpp kirctransferhandler.cpp
+ kirctransferserver.cpp ksslsocket.cpp
+)
diff --git a/kopete/protocols/irc/libkirc/kircentity.h b/kopete/protocols/irc/libkirc/kircentity.h
index d802d8f4..1878a406 100644
--- a/kopete/protocols/irc/libkirc/kircentity.h
+++ b/kopete/protocols/irc/libkirc/kircentity.h
@@ -39,7 +39,7 @@ class Entity
Q_OBJECT
public:
- typedef enum Type
+ enum Type
{
Unknown,
Server,
diff --git a/kopete/protocols/irc/ui/CMakeLists.txt b/kopete/protocols/irc/ui/CMakeLists.txt
new file mode 100644
index 00000000..7d77d5b8
--- /dev/null
+++ b/kopete/protocols/irc/ui/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_CURRENT_SOURCE_DIR}/../libkirc
+ ${CMAKE_BINARY_DIR}/kopete/libkopete/ui
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete
+ ${CMAKE_SOURCE_DIR}/kopete/libkopete/ui
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kopeteircui (static) ######################
+
+tde_add_library( kopeteircui STATIC_PIC AUTOMOC
+ SOURCES
+ ircadd.ui empty.cpp irceditaccountwidget.cpp irceditaccount.ui
+ channellist.cpp channellistdialog.cpp networkconfig.ui
+)