summaryrefslogtreecommitdiffstats
path: root/kbugbuster
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-03 19:02:49 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-03 19:02:49 +0000
commit60cf2d8004179a70189fe23365ab6970d84aff2b (patch)
tree4079108b717b61c6aa50d9c3bd2225d6ac2dcda9 /kbugbuster
parentd2d084dddffb2e7fc67326ea6a1c5ba4cf145a37 (diff)
downloadtdesdk-60cf2d8004179a70189fe23365ab6970d84aff2b.tar.gz
tdesdk-60cf2d8004179a70189fe23365ab6970d84aff2b.zip
[kdesdk/kbugbuster] added cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1257174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster')
-rw-r--r--kbugbuster/CMakeLists.txt44
-rw-r--r--kbugbuster/backend/CMakeLists.txt37
-rw-r--r--kbugbuster/gui/CMakeLists.txt36
-rw-r--r--kbugbuster/kresources/CMakeLists.txt43
-rw-r--r--kbugbuster/pics/CMakeLists.txt14
5 files changed, 174 insertions, 0 deletions
diff --git a/kbugbuster/CMakeLists.txt b/kbugbuster/CMakeLists.txt
new file mode 100644
index 00000000..67e702b1
--- /dev/null
+++ b/kbugbuster/CMakeLists.txt
@@ -0,0 +1,44 @@
+#################################################
+#
+# (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( backend )
+add_subdirectory( gui )
+add_subdirectory( pics )
+tde_conditional_add_subdirectory( WITH_KCAL kresources )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/backend
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( kbugbuster )
+install( FILES kbugbuster.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### kbugbuster (executable) ###################
+
+tde_add_executable( kbugbuster
+ SOURCES main.cpp
+ LINK
+ kbbmainwindow-static kbbbackend_nopic-static
+ kutils-shared kio-shared khtml-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kbugbuster/backend/CMakeLists.txt b/kbugbuster/backend/CMakeLists.txt
new file mode 100644
index 00000000..64b8ca6b
--- /dev/null
+++ b/kbugbuster/backend/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kbbbackend (static) #######################
+
+set( SRCS
+ packagelistjob.cpp bugjob.cpp package.cpp bugsystem.cpp bug.cpp
+ bugdetails.cpp bugcommand.cpp buglistjob.cpp bugmybugsjob.cpp
+ mailsender.cpp bugcache.cpp bugdetailsjob.cpp person.cpp smtp.cpp
+ bugserver.cpp bugserverconfig.cpp processor.cpp domprocessor.cpp
+ rdfprocessor.cpp htmlparser.cpp kbbprefs.cpp
+)
+
+tde_add_library( kbbbackend_nopic STATIC AUTOMOC
+ SOURCES ${SRCS}
+)
+
+if( WITH_KCAL )
+ tde_add_library( kbbbackend_pic STATIC_PIC AUTOMOC
+ SOURCES ${SRCS}
+ )
+endif( )
diff --git a/kbugbuster/gui/CMakeLists.txt b/kbugbuster/gui/CMakeLists.txt
new file mode 100644
index 00000000..5993502e
--- /dev/null
+++ b/kbugbuster/gui/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (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}/../backend
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kbugbusterui.rc DESTINATION ${DATA_INSTALL_DIR}/kbugbuster )
+
+
+##### kbbmainwindow (static) ####################
+
+tde_add_library( kbbmainwindow STATIC AUTOMOC
+ SOURCES
+ packagelvi.cpp buglvi.cpp cwloadingwidget.cpp cwsearchwidget_base.ui
+ cwsearchwidget.cpp cwbugdetailscontainer_base.ui
+ cwbugdetailscontainer.cpp cwbuglistcontainer.cpp cwbugdetails.cpp
+ centralwidget_base.ui centralwidget.cpp kbbmainwindow.cpp
+ msginputdialog.cpp packageselectdialog.cpp messageeditor.cpp
+ severityselectdialog.cpp preferencesdialog.cpp loadallbugsdlg.cpp
+ serverconfigdialog.cpp
+)
diff --git a/kbugbuster/kresources/CMakeLists.txt b/kbugbuster/kresources/CMakeLists.txt
new file mode 100644
index 00000000..a43521ef
--- /dev/null
+++ b/kbugbuster/kresources/CMakeLists.txt
@@ -0,0 +1,43 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_import( libkmime )
+tde_import( ktnef )
+tde_import( libkcal )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../backend
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ bugzilla.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal )
+
+
+##### kcal_bugzilla (module) ####################
+
+tde_add_kpart( kcal_bugzilla AUTOMOC
+ SOURCES
+ kcalresource.cpp kcalresourceconfig.cpp
+ kcalresource_plugin.cpp resourceprefs.kcfgc
+ LINK kbbbackend_pic-static kcal-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kbugbuster/pics/CMakeLists.txt b/kbugbuster/pics/CMakeLists.txt
new file mode 100644
index 00000000..6fbb5b1a
--- /dev/null
+++ b/kbugbuster/pics/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ tools.png logo.png bars.png top-right.png
+ DESTINATION ${DATA_INSTALL_DIR}/kbugbuster/pics )