summaryrefslogtreecommitdiffstats
path: root/kview
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-28 22:51:39 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-28 22:51:39 +0000
commitc3809fce15f966296c57961f0f4cf508b9b06dd4 (patch)
tree925640a815a91ded303490d115f929f8fece014e /kview
parent6803a8bb7fb8dbc6b4dab1215bfa601c4ecb6245 (diff)
downloadtdegraphics-c3809fce15f966296c57961f0f4cf508b9b06dd4.tar.gz
tdegraphics-c3809fce15f966296c57961f0f4cf508b9b06dd4.zip
[kdegraphics/kview] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1223181 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview')
-rw-r--r--kview/CMakeLists.txt43
-rw-r--r--kview/config/CMakeLists.txt37
-rw-r--r--kview/config/plugins/CMakeLists.txt34
-rw-r--r--kview/kimageviewer/CMakeLists.txt37
-rw-r--r--kview/kviewcanvas/CMakeLists.txt37
-rw-r--r--kview/kviewcanvas/config/CMakeLists.txt36
-rw-r--r--kview/kviewviewer/CMakeLists.txt40
-rw-r--r--kview/kviewviewer/config/CMakeLists.txt36
-rw-r--r--kview/modules/CMakeLists.txt15
-rw-r--r--kview/modules/browser/CMakeLists.txt38
-rw-r--r--kview/modules/effects/CMakeLists.txt37
-rw-r--r--kview/modules/presenter/CMakeLists.txt41
-rw-r--r--kview/modules/presenter/config/CMakeLists.txt36
-rw-r--r--kview/modules/scanner/CMakeLists.txt37
-rw-r--r--kview/photobook/CMakeLists.txt36
15 files changed, 540 insertions, 0 deletions
diff --git a/kview/CMakeLists.txt b/kview/CMakeLists.txt
new file mode 100644
index 00000000..44ff4460
--- /dev/null
+++ b/kview/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
+#
+#################################################
+
+add_subdirectory( kimageviewer )
+add_subdirectory( config )
+add_subdirectory( kviewcanvas )
+add_subdirectory( kviewviewer )
+add_subdirectory( modules )
+add_subdirectory( photobook )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( kview )
+install( FILES kview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kview )
+
+
+##### kview (kdeinit) ###########################
+
+tde_add_kdeinit_executable( kview AUTOMOC
+ SOURCES kview.cpp main.cpp
+ LINK kparts-shared kutils-shared
+)
diff --git a/kview/config/CMakeLists.txt b/kview/config/CMakeLists.txt
new file mode 100644
index 00000000..5024be81
--- /dev/null
+++ b/kview/config/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
+#
+#################################################
+
+add_subdirectory( plugins )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kviewgeneralconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
+install( FILES kview.setdlg DESTINATION ${DATA_INSTALL_DIR}/kview )
+
+
+##### kcm_kviewgeneralconfig (module) ###########
+
+tde_add_kpart( kcm_kviewgeneralconfig AUTOMOC
+ SOURCES kviewconfmodules.cpp
+ LINK kdeui-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/config/plugins/CMakeLists.txt b/kview/config/plugins/CMakeLists.txt
new file mode 100644
index 00000000..ea2652f5
--- /dev/null
+++ b/kview/config/plugins/CMakeLists.txt
@@ -0,0 +1,34 @@
+#################################################
+#
+# (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}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kviewpluginsconfig.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
+
+
+##### kcm_kviewpluginsconfig (module) ###########
+
+tde_add_kpart( kcm_kviewpluginsconfig AUTOMOC
+ SOURCES kviewpluginsconfig.cpp
+ LINK kutils-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/kimageviewer/CMakeLists.txt b/kview/kimageviewer/CMakeLists.txt
new file mode 100644
index 00000000..acf28e9b
--- /dev/null
+++ b/kview/kimageviewer/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}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kimageviewercanvas.desktop kimageviewer.desktop
+ DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+
+
+##### kimageviewer (shared) #####################
+
+tde_add_library( kimageviewer SHARED AUTOMOC
+ SOURCES canvas.cpp viewer.cpp
+ VERSION 0.0.0
+ LINK kparts-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kview/kviewcanvas/CMakeLists.txt b/kview/kviewcanvas/CMakeLists.txt
new file mode 100644
index 00000000..019496e3
--- /dev/null
+++ b/kview/kviewcanvas/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
+#
+#################################################
+
+add_subdirectory( config )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kview
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kviewcanvas.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### libkviewcanvas (module) ###################
+
+tde_add_kpart( libkviewcanvas AUTOMOC
+ SOURCES kimageholder.cpp kimagecanvas.cpp
+ LINK kimageviewer-shared kutils-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/kviewcanvas/config/CMakeLists.txt b/kview/kviewcanvas/config/CMakeLists.txt
new file mode 100644
index 00000000..c7837242
--- /dev/null
+++ b/kview/kviewcanvas/config/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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kviewcanvasconfig.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
+
+
+##### kcm_kviewcanvasconfig (module) ############
+
+tde_add_kpart( kcm_kviewcanvasconfig AUTOMOC
+ SOURCES generalconfigwidget.ui confmodules.cpp
+ LINK kdeui-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/kviewviewer/CMakeLists.txt b/kview/kviewviewer/CMakeLists.txt
new file mode 100644
index 00000000..59860d9f
--- /dev/null
+++ b/kview/kviewviewer/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (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( config )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kview
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kviewviewer.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES kviewviewer.rc kviewviewer_ro.rc kviewpopup.rc DESTINATION ${DATA_INSTALL_DIR}/kviewviewer )
+
+
+##### libkviewviewer (module) ###################
+
+tde_add_kpart( libkviewviewer AUTOMOC
+ SOURCES
+ printimagesettings.ui imagesettings.cpp
+ kviewkonqextension.cpp kviewviewer.cpp
+ LINK kimageviewer-shared kutils-shared kdeprint-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/kviewviewer/config/CMakeLists.txt b/kview/kviewviewer/config/CMakeLists.txt
new file mode 100644
index 00000000..34a7e4a6
--- /dev/null
+++ b/kview/kviewviewer/config/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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kviewviewerpluginsconfig.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
+
+
+##### kcm_kviewviewerpluginsconfig (module) #####
+
+tde_add_kpart( kcm_kviewviewerpluginsconfig AUTOMOC
+ SOURCES kviewviewerpluginsconfig.cpp
+ LINK kutils-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/modules/CMakeLists.txt b/kview/modules/CMakeLists.txt
new file mode 100644
index 00000000..abc160c8
--- /dev/null
+++ b/kview/modules/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (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( scanner )
+add_subdirectory( presenter )
+add_subdirectory( browser )
+add_subdirectory( effects )
diff --git a/kview/modules/browser/CMakeLists.txt b/kview/modules/browser/CMakeLists.txt
new file mode 100644
index 00000000..92be6333
--- /dev/null
+++ b/kview/modules/browser/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (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_SOURCE_DIR}/kview
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kviewbrowser.desktop kviewbrowser.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kviewviewer/kpartplugins )
+
+
+##### kview_browserplugin (module) ##############
+
+tde_add_kpart( kview_browserplugin AUTOMOC
+ SOURCES
+ kmyfileitemlist.cpp kviewbrowser.cpp
+ LINK kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/modules/effects/CMakeLists.txt b/kview/modules/effects/CMakeLists.txt
new file mode 100644
index 00000000..1ae9d4b6
--- /dev/null
+++ b/kview/modules/effects/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}
+ ${CMAKE_SOURCE_DIR}/kview
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kvieweffects.desktop kvieweffects.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins )
+
+
+##### kview_effectsplugin (module) ##############
+
+tde_add_kpart( kview_effectsplugin AUTOMOC
+ SOURCES kvieweffects.cpp
+ LINK kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/modules/presenter/CMakeLists.txt b/kview/modules/presenter/CMakeLists.txt
new file mode 100644
index 00000000..df85ed6c
--- /dev/null
+++ b/kview/modules/presenter/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (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( config )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kview
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kviewpresenter.desktop kviewpresenter.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins )
+
+
+##### kview_presenterplugin (module) ############
+
+tde_add_kpart( kview_presenterplugin AUTOMOC
+ SOURCES
+ imagelistitem.cpp imagelistdialog.ui kviewpresenter.cpp
+ LINK kio-shared kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/modules/presenter/config/CMakeLists.txt b/kview/modules/presenter/config/CMakeLists.txt
new file mode 100644
index 00000000..28bb691f
--- /dev/null
+++ b/kview/modules/presenter/config/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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kviewpresenterconfig.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kconfiguredialog )
+
+
+##### kcm_kviewpresenterconfig (module) #########
+
+tde_add_kpart( kcm_kviewpresenterconfig AUTOMOC
+ SOURCES kviewpresenterconfig.cpp
+ LINK kutils-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/modules/scanner/CMakeLists.txt b/kview/modules/scanner/CMakeLists.txt
new file mode 100644
index 00000000..aa2f0c8d
--- /dev/null
+++ b/kview/modules/scanner/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}
+ ${CMAKE_SOURCE_DIR}/kview
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kviewscanner.desktop kviewscanner.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kview/kpartplugins )
+
+
+##### kview_scannerplugin (module) ##############
+
+tde_add_kpart( kview_scannerplugin AUTOMOC
+ SOURCES kviewscanner.cpp
+ LINK kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kview/photobook/CMakeLists.txt b/kview/photobook/CMakeLists.txt
new file mode 100644
index 00000000..b5d781d8
--- /dev/null
+++ b/kview/photobook/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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( photobook )
+install( FILES photobook.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES photobookui.rc DESTINATION ${DATA_INSTALL_DIR}/photobook )
+
+
+##### libphotobook (module) #####################
+
+tde_add_kpart( libphotobook AUTOMOC
+ SOURCES photobook.cpp
+ LINK kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)