summaryrefslogtreecommitdiffstats
path: root/kimgio
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-05 19:41:05 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-10-05 19:41:05 +0000
commit7ffba8afee76edba6433d97864119501731742e8 (patch)
tree38b5eb5bd019b77b33f7ad8d7de7ef7666ebe8b1 /kimgio
parent0db4822126702d04068c5761e63ed9684a08981b (diff)
downloadtdelibs-7ffba8afee76edba6433d97864119501731742e8.tar.gz
tdelibs-7ffba8afee76edba6433d97864119501731742e8.zip
[kdelibs] added initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1182854 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kimgio')
-rw-r--r--kimgio/CMakeLists.txt181
1 files changed, 181 insertions, 0 deletions
diff --git a/kimgio/CMakeLists.txt b/kimgio/CMakeLists.txt
new file mode 100644
index 00000000..a0ea0dbd
--- /dev/null
+++ b/kimgio/CMakeLists.txt
@@ -0,0 +1,181 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+set( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${USE_EXCEPTIONS} )
+
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdecore
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kimg_eps ##################################
+
+set( target kimg_eps )
+
+tde_add_kpart( ${target}
+ SOURCES eps.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_xview ################################
+
+set( target kimg_xview )
+
+tde_add_kpart( ${target}
+ SOURCES xview.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_tiff #################################
+
+if( TIFF_FOUND )
+ set( target kimg_tiff )
+ tde_add_kpart( ${target}
+ SOURCES tiffr.cpp
+ LINK kdecore-shared ${TIFF_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+ install( FILES tiff.kimgio DESTINATION ${SERVICES_INSTALL_DIR} )
+endif( TIFF_FOUND )
+
+
+##### kimg_ico ##################################
+
+set( target kimg_ico )
+
+tde_add_kpart( ${target}
+ SOURCES ico.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_jp2 ##################################
+
+if( JASPER_FOUND )
+ set( target kimg_jp2 )
+ tde_add_kpart( ${target}
+ SOURCES jp2.cpp
+ LINK kdecore-shared ${JASPER_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+ install( FILES jp2.kimgio DESTINATION ${SERVICES_INSTALL_DIR} )
+endif( JASPER_FOUND )
+
+
+##### kimg_pcx ##################################
+
+set( target kimg_pcx )
+tde_add_kpart( ${target}
+ SOURCES pcx.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_tga ##################################
+
+set( target kimg_tga )
+tde_add_kpart( ${target}
+ SOURCES tga.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_rgb ##################################
+
+set( target kimg_rgb )
+tde_add_kpart( ${target}
+ SOURCES rgb.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_xcf ##################################
+
+set( target kimg_xcf )
+tde_add_kpart( ${target}
+ SOURCES xcf.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_dds ##################################
+
+set( target kimg_dds )
+tde_add_kpart( ${target}
+ SOURCES dds.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kimg_exr ##################################
+
+if( OPENEXR_FOUND )
+ set( target kimg_exr )
+ tde_add_kpart( ${target}
+ SOURCES exr.cpp
+ LINK kdecore-shared ${OPENEXR_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ )
+ # FIXME COMPILE_FLAGS must be written a little better
+ set_target_properties( ${target}-module PROPERTIES COMPILE_FLAGS -I${OPENEXR_INCLUDE_DIRS} )
+ install( FILES exr.kimgio DESTINATION ${SERVICES_INSTALL_DIR} )
+endif( OPENEXR_FOUND )
+
+
+##### kimg_psd ##################################
+
+set( target kimg_psd )
+tde_add_kpart( ${target}
+ SOURCES psd.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+##### kimg_hdr ##################################
+
+set( target kimg_hdr )
+tde_add_kpart( ${target}
+ SOURCES hdr.cpp
+ LINK kdecore-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES
+ png.kimgio xpm.kimgio bmp.kimgio pbm.kimgio pgm.kimgio
+ ppm.kimgio xbm.kimgio jpeg.kimgio xv.kimgio eps.kimgio
+ ico.kimgio gif.kimgio pcx.kimgio tga.kimgio rgb.kimgio
+ xcf.kimgio dds.kimgio mng.kimgio psd.kimgio hdr.kimgio
+ DESTINATION ${SERVICES_INSTALL_DIR} )