summaryrefslogtreecommitdiffstats
path: root/kfile-plugins
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-07 20:40:46 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-07 20:40:46 +0000
commit76baa6e505aa4e0d404a2b81addcc3f2599075fe (patch)
tree8684ca2e01e57d4df075b19387bb77dea01733a7 /kfile-plugins
parent7e5679fbd107db459c18b567e30846a9982dfa94 (diff)
downloadtdegraphics-76baa6e505aa4e0d404a2b81addcc3f2599075fe.tar.gz
tdegraphics-76baa6e505aa4e0d404a2b81addcc3f2599075fe.zip
[kdegraphics] added cmake support for kfax, kfaxview, kghostview, and kfile-plugins
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230814 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins')
-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
22 files changed, 720 insertions, 0 deletions
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}
+)