summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt15
-rw-r--r--kfax/CMakeLists.txt39
-rw-r--r--kfaxview/CMakeLists.txt53
-rw-r--r--kfaxview/libkfaximage/CMakeLists.txt28
-rw-r--r--kfile-plugins/CMakeLists.txt30
-rw-r--r--kfile-plugins/bmp/CMakeLists.txt34
-rw-r--r--kfile-plugins/dds/CMakeLists.txt35
-rw-r--r--kfile-plugins/dvi/CMakeLists.txt35
-rw-r--r--kfile-plugins/exr/CMakeLists.txt38
-rw-r--r--kfile-plugins/exr/ConfigureChecks.cmake16
-rw-r--r--kfile-plugins/gif/CMakeLists.txt34
-rw-r--r--kfile-plugins/ico/CMakeLists.txt35
-rw-r--r--kfile-plugins/jpeg/CMakeLists.txt35
-rw-r--r--kfile-plugins/pcx/CMakeLists.txt35
-rw-r--r--kfile-plugins/pdf/CMakeLists.txt38
-rw-r--r--kfile-plugins/pdf/ConfigureChecks.cmake16
-rw-r--r--kfile-plugins/png/CMakeLists.txt34
-rw-r--r--kfile-plugins/pnm/CMakeLists.txt35
-rw-r--r--kfile-plugins/ps/CMakeLists.txt37
-rw-r--r--kfile-plugins/raw/CMakeLists.txt35
-rw-r--r--kfile-plugins/rgb/CMakeLists.txt35
-rw-r--r--kfile-plugins/tga/CMakeLists.txt35
-rw-r--r--kfile-plugins/tiff/CMakeLists.txt37
-rw-r--r--kfile-plugins/tiff/ConfigureChecks.cmake21
-rw-r--r--kfile-plugins/xbm/CMakeLists.txt35
-rw-r--r--kfile-plugins/xpm/CMakeLists.txt35
-rw-r--r--kghostview/CMakeLists.txt69
-rw-r--r--kghostview/data/CMakeLists.txt12
-rw-r--r--kghostview/dscparse/CMakeLists.txt28
-rw-r--r--kghostview/dscparse/dscparse.cpp (renamed from kghostview/dscparse.cpp)0
-rw-r--r--kghostview/dscparse/dscparse.h (renamed from kghostview/dscparse.h)0
-rw-r--r--kghostview/dscparse/dscparse_adapter.cpp (renamed from kghostview/dscparse_adapter.cpp)0
-rw-r--r--kghostview/dscparse/dscparse_adapter.h (renamed from kghostview/dscparse_adapter.h)0
33 files changed, 964 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6938db02..299db935 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,6 +44,9 @@ tde_setup_paths( )
option( WITH_T1LIB "Enable t1lib support" OFF )
option( WITH_LIBPAPER "Enable libpaper support" OFF )
+OPTION( WITH_TIFF "Enable tiff support (kfile-plugins)" OFF )
+OPTION( WITH_OPENEXR "Enable openexr support (kfile-plugins)" OFF )
+OPTION( WITH_PDF "Enable pdf support (kfile-plugins)" OFF )
##### user requested modules ####################
@@ -54,6 +57,10 @@ option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_KAMERA "Build kamera" ${BUILD_ALL} )
option( BUILD_KCOLOREDIT "Build kcoloredit" ${BUILD_ALL} )
option( BUILD_KDVI "Build kdvi" ${BUILD_ALL} )
+option( BUILD_KFAX "Build kfax" ${BUILD_ALL} )
+option( BUILD_KFAXVIEW "Build kfaxview" ${BUILD_ALL} )
+option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} )
+option( BUILD_KGHOSTVIEW "Build kghostview" ${BUILD_ALL} )
option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
option( BUILD_KRULER "Build kruler" ${BUILD_ALL} )
option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} )
@@ -79,11 +86,19 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### kdegraphics directories ###################
+if( BUILD_KFILE_PLUGINS OR BUILD_GHOSTKVIEW )
+ add_subdirectory( kghostview/dscparse )
+endif( )
+
tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_KAMERA kamera )
tde_conditional_add_subdirectory( BUILD_KCOLOREDIT kcoloredit )
tde_conditional_add_subdirectory( BUILD_KDVI kdvi )
+tde_conditional_add_subdirectory( BUILD_KFAX kfax )
+tde_conditional_add_subdirectory( BUILD_KFAXVIEW kfaxview )
+tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins )
tde_conditional_add_subdirectory( BUILD_KVIEW kview )
+tde_conditional_add_subdirectory( BUILD_KGHOSTVIEW kghostview )
tde_conditional_add_subdirectory( BUILD_KRULER kruler )
tde_conditional_add_subdirectory( BUILD_KPDF kpdf )
tde_conditional_add_subdirectory( BUILD_KSVG ksvg )
diff --git a/kfax/CMakeLists.txt b/kfax/CMakeLists.txt
new file mode 100644
index 00000000..ef71229f
--- /dev/null
+++ b/kfax/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfax.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kfax.tif kfaxlogo.xpm DESTINATION ${DATA_INSTALL_DIR}/kfax/pics )
+install( FILES kfaxui.rc DESTINATION ${DATA_INSTALL_DIR}/kfax )
+
+
+#### kruler (executable) ########################
+
+tde_add_executable( kfax AUTOMOC
+ SOURCES
+ options.cpp kfax.cpp faxexpand.cpp faxinit.cpp
+ faxinput.cpp viewfax.cpp kfax_printsettings.cpp
+ LINK kdeui-shared kdeprint-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kfaxview/CMakeLists.txt b/kfaxview/CMakeLists.txt
new file mode 100644
index 00000000..1188aa63
--- /dev/null
+++ b/kfaxview/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_import( kviewshell )
+
+add_subdirectory( libkfaximage )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/libkfaximage
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kviewshell
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+tde_install_icons( kfaxview )
+install( FILES kfaxview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES ${CMAKE_SOURCE_DIR}/kviewshell/kviewshell.rc DESTINATION ${DATA_INSTALL_DIR}/kviewshell )
+install( FILES kfaxmultipage.desktop kfaxmultipage_tiff.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfaxviewpart (module) ######################
+
+tde_add_kpart( kfaxviewpart AUTOMOC
+ SOURCES faxmultipage.cpp faxrenderer.cpp
+ LINK kmultipage-shared kfaximage-static kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+#### kfaxview (executable) ######################
+
+tde_add_executable( kfaxview AUTOMOC
+ SOURCES main.cpp
+ LINK kviewshell-static kio-shared kparts-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kfaxview/libkfaximage/CMakeLists.txt b/kfaxview/libkfaximage/CMakeLists.txt
new file mode 100644
index 00000000..aebad1a6
--- /dev/null
+++ b/kfaxview/libkfaximage/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### kfaximage (library) ########################
+
+tde_add_library( kfaximage STATIC_PIC AUTOMOC
+ SOURCES kfaximage.cpp faxexpand.cpp faxinit.cpp
+)
diff --git a/kfile-plugins/CMakeLists.txt b/kfile-plugins/CMakeLists.txt
new file mode 100644
index 00000000..c35c329e
--- /dev/null
+++ b/kfile-plugins/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
+#
+#################################################
+
+add_subdirectory( dvi )
+add_subdirectory( png )
+add_subdirectory( ps )
+add_subdirectory( jpeg )
+add_subdirectory( xbm )
+add_subdirectory( xpm )
+add_subdirectory( bmp )
+add_subdirectory( tga )
+add_subdirectory( rgb )
+add_subdirectory( ico )
+add_subdirectory( pcx )
+add_subdirectory( pnm )
+add_subdirectory( dds )
+add_subdirectory( gif )
+add_subdirectory( raw )
+
+tde_conditional_add_subdirectory( WITH_TIFF tiff )
+tde_conditional_add_subdirectory( WITH_OPENEXR exr )
+tde_conditional_add_subdirectory( WITH_PDF pdf )
diff --git a/kfile-plugins/bmp/CMakeLists.txt b/kfile-plugins/bmp/CMakeLists.txt
new file mode 100644
index 00000000..c1c46db6
--- /dev/null
+++ b/kfile-plugins/bmp/CMakeLists.txt
@@ -0,0 +1,34 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+#### other data #################################
+
+install( FILES kfile_bmp.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_bmp (module) #########################
+
+tde_add_kpart( kfile_bmp AUTOMOC
+ SOURCES kfile_bmp.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/dds/CMakeLists.txt b/kfile-plugins/dds/CMakeLists.txt
new file mode 100644
index 00000000..77716a5d
--- /dev/null
+++ b/kfile-plugins/dds/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data ##################################
+
+install( FILES kfile_dds.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_dds (module) ##########################
+
+tde_add_kpart( kfile_dds AUTOMOC
+ SOURCES kfile_dds.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/dvi/CMakeLists.txt b/kfile-plugins/dvi/CMakeLists.txt
new file mode 100644
index 00000000..116d6032
--- /dev/null
+++ b/kfile-plugins/dvi/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_dvi.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_dvi (module) #########################
+
+tde_add_kpart( kfile_dvi AUTOMOC
+ SOURCES kfile_dvi.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/exr/CMakeLists.txt b/kfile-plugins/exr/CMakeLists.txt
new file mode 100644
index 00000000..84f526c5
--- /dev/null
+++ b/kfile-plugins/exr/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${OPENEXR_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_exr.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_exr (module) #########################
+
+tde_add_kpart( kfile_exr AUTOMOC
+ SOURCES kfile_exr.cpp
+ LINK kio-shared ${OPENEXR_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/exr/ConfigureChecks.cmake b/kfile-plugins/exr/ConfigureChecks.cmake
new file mode 100644
index 00000000..193173c2
--- /dev/null
+++ b/kfile-plugins/exr/ConfigureChecks.cmake
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# OpenEXR
+pkg_search_module( OPENEXR OpenEXR )
+if( NOT OPENEXR_FOUND )
+ tde_message_fatal( "OpenEXR is required, but was not found on your system" )
+endif( )
diff --git a/kfile-plugins/gif/CMakeLists.txt b/kfile-plugins/gif/CMakeLists.txt
new file mode 100644
index 00000000..f2fc4320
--- /dev/null
+++ b/kfile-plugins/gif/CMakeLists.txt
@@ -0,0 +1,34 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_gif.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_gif (module) #########################
+tde_add_kpart( kfile_gif AUTOMOC
+ SOURCES kfile_gif.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/ico/CMakeLists.txt b/kfile-plugins/ico/CMakeLists.txt
new file mode 100644
index 00000000..1fdbed2b
--- /dev/null
+++ b/kfile-plugins/ico/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_ico.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_ico (module) ########################
+
+tde_add_kpart( kfile_ico AUTOMOC
+ SOURCES kfile_ico.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/jpeg/CMakeLists.txt b/kfile-plugins/jpeg/CMakeLists.txt
new file mode 100644
index 00000000..a35543d7
--- /dev/null
+++ b/kfile-plugins/jpeg/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_jpeg.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_jpeg (module) ########################
+
+tde_add_kpart( kfile_jpeg AUTOMOC
+ SOURCES kfile_jpeg.cpp exif.cpp kfile_setcomment.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/pcx/CMakeLists.txt b/kfile-plugins/pcx/CMakeLists.txt
new file mode 100644
index 00000000..efabc58e
--- /dev/null
+++ b/kfile-plugins/pcx/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_pcx.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_pcx (module) #########################
+
+tde_add_kpart( kfile_pcx AUTOMOC
+ SOURCES kfile_pcx.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/pdf/CMakeLists.txt b/kfile-plugins/pdf/CMakeLists.txt
new file mode 100644
index 00000000..748b70ed
--- /dev/null
+++ b/kfile-plugins/pdf/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${POPPLER_QT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_pdf.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_pdf (module) #########################
+
+tde_add_kpart( kfile_pdf AUTOMOC
+ SOURCES kfile_pdf.cpp
+ LINK kio-shared ${POPPLER_QT_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/pdf/ConfigureChecks.cmake b/kfile-plugins/pdf/ConfigureChecks.cmake
new file mode 100644
index 00000000..28a617f1
--- /dev/null
+++ b/kfile-plugins/pdf/ConfigureChecks.cmake
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# poppler-qt
+pkg_search_module( POPPLER_QT poppler-qt )
+if( NOT POPPLER_QT_FOUND )
+ tde_message_fatal( "poppler-qt is required, but was not found on your system" )
+endif( )
diff --git a/kfile-plugins/png/CMakeLists.txt b/kfile-plugins/png/CMakeLists.txt
new file mode 100644
index 00000000..3281651a
--- /dev/null
+++ b/kfile-plugins/png/CMakeLists.txt
@@ -0,0 +1,34 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_png.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_png (module) #########################
+tde_add_kpart( kfile_png AUTOMOC
+ SOURCES kfile_png.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/pnm/CMakeLists.txt b/kfile-plugins/pnm/CMakeLists.txt
new file mode 100644
index 00000000..34e78ddf
--- /dev/null
+++ b/kfile-plugins/pnm/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_pnm.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_pnm (module) #########################
+
+tde_add_kpart( kfile_pnm AUTOMOC
+ SOURCES kfile_pnm.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/ps/CMakeLists.txt b/kfile-plugins/ps/CMakeLists.txt
new file mode 100644
index 00000000..c9ff9de9
--- /dev/null
+++ b/kfile-plugins/ps/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kghostview
+ ${CMAKE_SOURCE_DIR}/kghostview/dscparse
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_ps.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_ps (module) ########################
+
+tde_add_kpart( kfile_ps AUTOMOC
+ SOURCES kfile_ps.cpp
+ LINK dscparse-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/raw/CMakeLists.txt b/kfile-plugins/raw/CMakeLists.txt
new file mode 100644
index 00000000..9f7aa544
--- /dev/null
+++ b/kfile-plugins/raw/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_raw.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_raw (module) #########################
+
+tde_add_kpart( kfile_raw AUTOMOC
+ SOURCES kcamerarawplugin.cpp parse.c
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/rgb/CMakeLists.txt b/kfile-plugins/rgb/CMakeLists.txt
new file mode 100644
index 00000000..be9870d1
--- /dev/null
+++ b/kfile-plugins/rgb/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_rgb.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_rgb (module) #########################
+
+tde_add_kpart( kfile_rgb AUTOMOC
+ SOURCES kfile_rgb.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/tga/CMakeLists.txt b/kfile-plugins/tga/CMakeLists.txt
new file mode 100644
index 00000000..eddb0d44
--- /dev/null
+++ b/kfile-plugins/tga/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_tga.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_tga (module) #########################
+
+tde_add_kpart( kfile_tga AUTOMOC
+ SOURCES kfile_tga.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/tiff/CMakeLists.txt b/kfile-plugins/tiff/CMakeLists.txt
new file mode 100644
index 00000000..9cc70ef0
--- /dev/null
+++ b/kfile-plugins/tiff/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_tiff.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_tiff (module) ########################
+
+tde_add_kpart( kfile_tiff AUTOMOC
+ SOURCES kfile_tiff.cpp
+ LINK kio-shared ${TIFF_LIBRARY}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/tiff/ConfigureChecks.cmake b/kfile-plugins/tiff/ConfigureChecks.cmake
new file mode 100644
index 00000000..c7efb9b7
--- /dev/null
+++ b/kfile-plugins/tiff/ConfigureChecks.cmake
@@ -0,0 +1,21 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+# libtiff
+check_include_file( tiff.h HAVE_TIFF_H )
+if( HAVE_TIFF_H )
+ check_library_exists( tiff TIFFOpen "" HAVE_TIFF )
+endif( )
+if( HAVE_TIFF_H AND HAVE_TIFF )
+ set( TIFF_LIBRARY tiff )
+else( )
+ tde_message_fatal( "libtiff is required, but was not found on your system" )
+endif( )
diff --git a/kfile-plugins/xbm/CMakeLists.txt b/kfile-plugins/xbm/CMakeLists.txt
new file mode 100644
index 00000000..37a9aa6b
--- /dev/null
+++ b/kfile-plugins/xbm/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_xbm.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_xbm (module) ########################
+
+tde_add_kpart( kfile_xbm AUTOMOC
+ SOURCES kfile_xbm.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kfile-plugins/xpm/CMakeLists.txt b/kfile-plugins/xpm/CMakeLists.txt
new file mode 100644
index 00000000..0e401288
--- /dev/null
+++ b/kfile-plugins/xpm/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kfile_xpm.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+#### kfile_xpm (module) #########################
+
+tde_add_kpart( kfile_xpm AUTOMOC
+ SOURCES kfile_xpm.cpp
+ LINK kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kghostview/CMakeLists.txt b/kghostview/CMakeLists.txt
new file mode 100644
index 00000000..f984f119
--- /dev/null
+++ b/kghostview/CMakeLists.txt
@@ -0,0 +1,69 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( data )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/dscparse
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+tde_install_icons( kghostview )
+install( FILES kghostview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kghostview_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES kgv_part.rc kghostviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kghostview )
+install( FILES kghostview.kcfg DESTINATION ${KCFG_INSTALL_DIR} )
+install( FILES kghostview.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
+install( PROGRAMS update-to-xt-names.pl DESTINATION ${KCONF_UPDATE_INSTALL_DIR} )
+
+
+#### kghostviewlib (shared) #####################
+
+tde_add_library( kghostviewlib SHARED AUTOMOC
+ SOURCES
+ kgvshell.cpp kgvdocument.cpp kgv_miniwidget.cpp
+ marklist.cpp logwindow.cpp infodialog.cpp kgvpageview.cpp ps.c
+ kgv_view.cpp scrollbox.cpp kgvpagedecorator.cpp
+ kgvconfigdialog.cpp kgvmainwidget.cpp kdscerrordialog.cpp
+ displayoptions.cpp kpswidget.cpp fullscreenfilter.cpp
+ kgvfactory.cpp generalsettingswidget.ui gssettingswidget.ui
+ thumbnailservice.cpp configuration.kcfgc
+ LINK dscparse-static kdeprint-shared kparts-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+#### kghostviewpart (module) ####################
+
+tde_add_kpart( kghostviewpart AUTOMOC
+ SOURCES part_init.cpp
+ LINK kghostviewlib-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+#### kghostview (executable) ####################
+
+tde_add_executable( kghostview AUTOMOC
+ SOURCES main.cpp
+ LINK kghostviewlib-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kghostview/data/CMakeLists.txt b/kghostview/data/CMakeLists.txt
new file mode 100644
index 00000000..5ff908e4
--- /dev/null
+++ b/kghostview/data/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
+#
+#################################################
+
+install( FILES pdf_sec.ps DESTINATION ${DATA_INSTALL_DIR}/kghostview )
diff --git a/kghostview/dscparse/CMakeLists.txt b/kghostview/dscparse/CMakeLists.txt
new file mode 100644
index 00000000..a8136888
--- /dev/null
+++ b/kghostview/dscparse/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (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}
+ #${CMAKE_SOURCE_DIR}
+ #${CMAKE_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+#### dscparse (static) ##########################
+
+tde_add_library( dscparse STATIC_PIC
+ SOURCES dscparse.cpp dscparse_adapter.cpp
+)
diff --git a/kghostview/dscparse.cpp b/kghostview/dscparse/dscparse.cpp
index b5d2c3a7..b5d2c3a7 100644
--- a/kghostview/dscparse.cpp
+++ b/kghostview/dscparse/dscparse.cpp
diff --git a/kghostview/dscparse.h b/kghostview/dscparse/dscparse.h
index 10d2746c..10d2746c 100644
--- a/kghostview/dscparse.h
+++ b/kghostview/dscparse/dscparse.h
diff --git a/kghostview/dscparse_adapter.cpp b/kghostview/dscparse/dscparse_adapter.cpp
index b04e89bc..b04e89bc 100644
--- a/kghostview/dscparse_adapter.cpp
+++ b/kghostview/dscparse/dscparse_adapter.cpp
diff --git a/kghostview/dscparse_adapter.h b/kghostview/dscparse/dscparse_adapter.h
index c5c1cbf9..c5c1cbf9 100644
--- a/kghostview/dscparse_adapter.h
+++ b/kghostview/dscparse/dscparse_adapter.h