Browse Source

[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
tags/v3.5.13
samelian 9 years ago
parent
commit
76baa6e505
33 changed files with 964 additions and 0 deletions
  1. +15
    -0
      CMakeLists.txt
  2. +39
    -0
      kfax/CMakeLists.txt
  3. +53
    -0
      kfaxview/CMakeLists.txt
  4. +28
    -0
      kfaxview/libkfaximage/CMakeLists.txt
  5. +30
    -0
      kfile-plugins/CMakeLists.txt
  6. +34
    -0
      kfile-plugins/bmp/CMakeLists.txt
  7. +35
    -0
      kfile-plugins/dds/CMakeLists.txt
  8. +35
    -0
      kfile-plugins/dvi/CMakeLists.txt
  9. +38
    -0
      kfile-plugins/exr/CMakeLists.txt
  10. +16
    -0
      kfile-plugins/exr/ConfigureChecks.cmake
  11. +34
    -0
      kfile-plugins/gif/CMakeLists.txt
  12. +35
    -0
      kfile-plugins/ico/CMakeLists.txt
  13. +35
    -0
      kfile-plugins/jpeg/CMakeLists.txt
  14. +35
    -0
      kfile-plugins/pcx/CMakeLists.txt
  15. +38
    -0
      kfile-plugins/pdf/CMakeLists.txt
  16. +16
    -0
      kfile-plugins/pdf/ConfigureChecks.cmake
  17. +34
    -0
      kfile-plugins/png/CMakeLists.txt
  18. +35
    -0
      kfile-plugins/pnm/CMakeLists.txt
  19. +37
    -0
      kfile-plugins/ps/CMakeLists.txt
  20. +35
    -0
      kfile-plugins/raw/CMakeLists.txt
  21. +35
    -0
      kfile-plugins/rgb/CMakeLists.txt
  22. +35
    -0
      kfile-plugins/tga/CMakeLists.txt
  23. +37
    -0
      kfile-plugins/tiff/CMakeLists.txt
  24. +21
    -0
      kfile-plugins/tiff/ConfigureChecks.cmake
  25. +35
    -0
      kfile-plugins/xbm/CMakeLists.txt
  26. +35
    -0
      kfile-plugins/xpm/CMakeLists.txt
  27. +69
    -0
      kghostview/CMakeLists.txt
  28. +12
    -0
      kghostview/data/CMakeLists.txt
  29. +28
    -0
      kghostview/dscparse/CMakeLists.txt
  30. +0
    -0
      kghostview/dscparse/dscparse.cpp
  31. +0
    -0
      kghostview/dscparse/dscparse.h
  32. +0
    -0
      kghostview/dscparse/dscparse_adapter.cpp
  33. +0
    -0
      kghostview/dscparse/dscparse_adapter.h

+ 15
- 0
CMakeLists.txt View File

@@ -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 )


+ 39
- 0
kfax/CMakeLists.txt View File

@@ -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}
)

+ 53
- 0
kfaxview/CMakeLists.txt View File

@@ -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}
)

+ 28
- 0
kfaxview/libkfaximage/CMakeLists.txt View File

@@ -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
)

+ 30
- 0
kfile-plugins/CMakeLists.txt View File

@@ -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 )

+ 34
- 0
kfile-plugins/bmp/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/dds/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/dvi/CMakeLists.txt View File

@@ -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}
)

+ 38
- 0
kfile-plugins/exr/CMakeLists.txt View File

@@ -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}
)

+ 16
- 0
kfile-plugins/exr/ConfigureChecks.cmake View File

@@ -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( )

+ 34
- 0
kfile-plugins/gif/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/ico/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/jpeg/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/pcx/CMakeLists.txt View File

@@ -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}
)

+ 38
- 0
kfile-plugins/pdf/CMakeLists.txt View File

@@ -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}
)

+ 16
- 0
kfile-plugins/pdf/ConfigureChecks.cmake View File

@@ -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( )

+ 34
- 0
kfile-plugins/png/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/pnm/CMakeLists.txt View File

@@ -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}
)

+ 37
- 0
kfile-plugins/ps/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/raw/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/rgb/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/tga/CMakeLists.txt View File

@@ -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}
)

+ 37
- 0
kfile-plugins/tiff/CMakeLists.txt View File

@@ -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}
)

+ 21
- 0
kfile-plugins/tiff/ConfigureChecks.cmake View File

@@ -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( )

+ 35
- 0
kfile-plugins/xbm/CMakeLists.txt View File

@@ -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}
)

+ 35
- 0
kfile-plugins/xpm/CMakeLists.txt View File

@@ -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}
)

+ 69
- 0
kghostview/CMakeLists.txt View File

@@ -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}
)

+ 12
- 0
kghostview/data/CMakeLists.txt View File

@@ -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 )

+ 28
- 0
kghostview/dscparse/CMakeLists.txt View File

@@ -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
)

kghostview/dscparse.cpp → kghostview/dscparse/dscparse.cpp View File


kghostview/dscparse.h → kghostview/dscparse/dscparse.h View File


kghostview/dscparse_adapter.cpp → kghostview/dscparse/dscparse_adapter.cpp View File


kghostview/dscparse_adapter.h → kghostview/dscparse/dscparse_adapter.h View File


Loading…
Cancel
Save