summaryrefslogtreecommitdiffstats
path: root/kdeprint
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint')
-rw-r--r--kdeprint/CMakeLists.txt129
-rw-r--r--kdeprint/cups/CMakeLists.txt98
-rw-r--r--kdeprint/cups/cupsdconf2/CMakeLists.txt58
-rw-r--r--kdeprint/ext/CMakeLists.txt51
-rw-r--r--kdeprint/filters/CMakeLists.txt23
-rw-r--r--kdeprint/lpdunix/CMakeLists.txt53
-rw-r--r--kdeprint/lpr/CMakeLists.txt81
-rw-r--r--kdeprint/management/CMakeLists.txt112
-rw-r--r--kdeprint/pics/CMakeLists.txt41
-rw-r--r--kdeprint/rlpr/CMakeLists.txt55
-rw-r--r--kdeprint/tools/CMakeLists.txt12
-rw-r--r--kdeprint/tools/escputil/CMakeLists.txt46
12 files changed, 759 insertions, 0 deletions
diff --git a/kdeprint/CMakeLists.txt b/kdeprint/CMakeLists.txt
new file mode 100644
index 000000000..d4c2ed26d
--- /dev/null
+++ b/kdeprint/CMakeLists.txt
@@ -0,0 +1,129 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( management )
+add_subdirectory( lpdunix )
+if( CUPS_FOUND )
+ add_subdirectory( cups )
+endif( CUPS_FOUND )
+add_subdirectory( lpr )
+add_subdirectory( rlpr )
+add_subdirectory( ext )
+add_subdirectory( filters )
+add_subdirectory( pics )
+add_subdirectory( tools )
+
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdefx
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfile
+ ${CMAKE_SOURCE_DIR}/kded
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kprinter.h kprintaction.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+install( FILES
+ kprintdialogpage.h kpreloadobject.h kmmanager.h
+ kmprinter.h kmobject.h kprintdialog.h driver.h
+ kmjobmanager.h kmjob.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kdeprint )
+
+
+##### other data ################################
+
+install( FILES kprintpreviewui.rc DESTINATION ${CONFIG_INSTALL_DIR}/ui )
+install( FILES testprint.ps specials.desktop DESTINATION ${DATA_INSTALL_DIR}/kdeprint )
+install( FILES kdeprintd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+install( FILES kdeprintrc DESTINATION ${CONFIG_INSTALL_DIR} )
+install( FILES kdeprintrc.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update )
+
+
+##### driverparse ###############################
+
+set( target driverparse )
+
+tde_add_library( ${target} STATIC_PIC
+ SOURCES driverparse.c
+)
+
+
+##### kded_kdeprintd ############################
+
+set( target kded_kdeprintd )
+
+set( ${target}_SRCS
+ kdeprintd.cpp kprintprocess.cpp kdeprintd.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kio-shared kdeinit_kded-shared
+ DEPENDENCIES dcopidl dcopidl2cpp
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+#### kdeprint ###################################
+
+set( target kdeprint )
+
+set( ${target}_SRCS
+ kmfactory.cpp kmjob.cpp kmjobmanager.cpp kmmanager.cpp
+ kmprinter.cpp kmuimanager.cpp kmvirtualmanager.cpp
+ driver.cpp driveritem.cpp droptionview.cpp driverview.cpp
+ kmdbentry.cpp kprintpreview.cpp kprintdialog.cpp
+ kprinter.cpp kprinterimpl.cpp kprintdialogpage.cpp
+ kpcopiespage.cpp kpdriverpage.cpp kprinterpropertydialog.cpp
+ kpgeneralpage.cpp kpqtpage.cpp kmthreadjob.cpp
+ kpipeprocess.cpp kpfilterpage.cpp kmspecialmanager.cpp
+ kdeprintcheck.cpp plugincombobox.cpp kpreloadobject.cpp
+ kfilelist.cpp kprintaction.cpp kpfileselectpage.cpp
+ treecombobox.cpp kxmlcommand.cpp util.cpp printerfilter.cpp
+ marginpreview.cpp marginvaluewidget.cpp marginwidget.cpp
+ kpmarginpage.cpp messagewindow.cpp posterpreview.cpp
+ kpposterpage.cpp foomatic2loader.cpp fooparser.cpp
+ fooscanner.cpp ppdparser.cpp ppdscanner.cpp ppdloader.cpp
+ kmfactory.skel
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 4.2.0
+ LINK kio-shared
+ DEPENDENCIES dcopidl dcopidl2cpp
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+set_target_properties( ${target}-shared PROPERTIES COMPILE_FLAGS -D_KDEPRINT_COMPILE )
diff --git a/kdeprint/cups/CMakeLists.txt b/kdeprint/cups/CMakeLists.txt
new file mode 100644
index 000000000..195b396d6
--- /dev/null
+++ b/kdeprint/cups/CMakeLists.txt
@@ -0,0 +1,98 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( cupsdconf2 )
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+ -D_KDEPRINT_COMPILE
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdecore/network
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfile
+ ${CMAKE_SOURCE_DIR}/kdeprint
+ ${CMAKE_SOURCE_DIR}/kdeprint/management
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES cups.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins )
+install( FILES preview.png preview-mini.png DESTINATION ${DATA_INSTALL_DIR}/kdeprint )
+
+
+#### kdeprint_cups ##############################
+
+set( target kdeprint_cups )
+
+set( ${target}_SRCS
+ cupsinfos.cpp ipprequest.cpp kmcupsfactory.cpp
+ kmcupsjobmanager.cpp kmcupsmanager.cpp kmcupsuimanager.cpp
+ kmpropbanners.cpp kmwbanners.cpp kmwipp.cpp kmwippselect.cpp
+ kcupsprinterimpl.cpp kmcupsconfigwidget.cpp kmconfigcups.cpp
+ kmconfigcupsdir.cpp kmwippprinter.cpp kmwfax.cpp kmwquota.cpp
+ kmpropquota.cpp kmwusers.cpp kmpropusers.cpp kpschedulepage.cpp
+ image.cpp imagepreview.cpp imageposition.cpp kpimagepage.cpp
+ kptextpage.cpp kphpgl2page.cpp cupsaddsmb2.cpp
+ kmwother.cpp ippreportdlg.cpp kptagspage.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint_management-shared ${CUPS_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+#### make_driver_db_cups ########################
+
+set( target make_driver_db_cups )
+
+set( ${target}_SRCS
+ make_driver_db_cups.c
+)
+
+tde_add_executable( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK driverparse-static kdefakes-shared ${ZLIB_LIBRARIES} ${DL_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+#### cupsdoprint ################################
+
+set( target cupsdoprint )
+
+set( ${target}_SRCS
+ cupsdoprint.c
+)
+
+tde_add_executable( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK kdefakes-shared ${CUPS_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kdeprint/cups/cupsdconf2/CMakeLists.txt b/kdeprint/cups/cupsdconf2/CMakeLists.txt
new file mode 100644
index 000000000..19e8cbe46
--- /dev/null
+++ b/kdeprint/cups/cupsdconf2/CMakeLists.txt
@@ -0,0 +1,58 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfile
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kde_logo.png cups_logo.png cupsd.conf.template
+ DESTINATION ${DATA_INSTALL_DIR}/kdeprint )
+
+
+#### cupsdconf ##################################
+
+set( target cupsdconf )
+
+set( ${target}_SRCS
+ cupsdconf.cpp cupsddialog.cpp cupsdpage.cpp cupsdcomment.cpp
+ cupsdsplash.cpp cupsdserverpage.cpp cupsdlogpage.cpp
+ cupsdjobspage.cpp cupsdfilterpage.cpp qdirlineedit.cpp
+ cupsddirpage.cpp portdialog.cpp cupsdnetworkpage.cpp
+ editlist.cpp cupsdbrowsingpage.cpp browsedialog.cpp
+ cupsdsecuritypage.cpp locationdialog.cpp addressdialog.cpp
+ cups-util.c qdirmultilineedit.cpp sizewidget.cpp main.cpp
+)
+
+tde_add_kdeinit_executable( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kio-shared ${CUPS_LIBRARIES}
+)
diff --git a/kdeprint/ext/CMakeLists.txt b/kdeprint/ext/CMakeLists.txt
new file mode 100644
index 000000000..fbc633e55
--- /dev/null
+++ b/kdeprint/ext/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+ -D_KDEPRINT_COMPILE
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kdeprint
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES ext.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins )
+
+
+##### kdeprint_ext ##############################
+
+set( target kdeprint_ext )
+
+set( ${target}_SRCS
+ kmextfactory.cpp kmextmanager.cpp kextprinterimpl.cpp
+ kmextuimanager.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kdeprint/filters/CMakeLists.txt b/kdeprint/filters/CMakeLists.txt
new file mode 100644
index 000000000..a19bb1f93
--- /dev/null
+++ b/kdeprint/filters/CMakeLists.txt
@@ -0,0 +1,23 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ enscript.desktop enscript.xml psnup.desktop psnup.xml
+ imagetops.desktop imagetops.xml pdfwrite.desktop
+ pdfwrite.xml psbook1.desktop psbook1.xml psbook2.desktop
+ psbook2.xml psbook.desktop psbook.xml psselect.desktop
+ psselect.xml ps2pdf.desktop ps2pdf.xml pdf2ps.desktop
+ pdf2ps.xml poster.desktop poster.xml
+ DESTINATION ${DATA_INSTALL_DIR}/kdeprint/filters )
+
+install( PROGRAMS imagetops DESTINATION ${BIN_INSTALL_DIR} )
diff --git a/kdeprint/lpdunix/CMakeLists.txt b/kdeprint/lpdunix/CMakeLists.txt
new file mode 100644
index 000000000..0dfee8ebf
--- /dev/null
+++ b/kdeprint/lpdunix/CMakeLists.txt
@@ -0,0 +1,53 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+ -D_KDEPRINT_COMPILE
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kdeprint
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES lpdunix.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins )
+
+
+#### kdeprint_lpdunix ###########################
+
+set( target kdeprint_lpdunix )
+
+set( ${target}_SRCS
+ kmlpdunixfactory.cpp kmlpdunixmanager.cpp
+ klpdunixprinterimpl.cpp kmlpdunixuimanager.cpp
+)
+
+tde_add_kpart( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kdeprint/lpr/CMakeLists.txt b/kdeprint/lpr/CMakeLists.txt
new file mode 100644
index 000000000..7af784249
--- /dev/null
+++ b/kdeprint/lpr/CMakeLists.txt
@@ -0,0 +1,81 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+ -D_KDEPRINT_COMPILE
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kdeprint
+ ${CMAKE_SOURCE_DIR}/kdeprint/management
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ printcapentry.h lprhandler.h lprsettings.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kdeprint/lpr )
+
+
+##### other data ################################
+
+install( FILES lpr.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins )
+install( FILES apsdriver1 apsdriver2 lprngtooldriver1 DESTINATION ${DATA_INSTALL_DIR}/kdeprint )
+
+
+#### kdeprint_lpr ###############################
+
+set( target kdeprint_lpr )
+
+set( ${target}_SRCS
+ printcapreader.cpp lprhandler.cpp matichandler.cpp
+ klprfactory.cpp kmlprmanager.cpp kmlpruimanager.cpp
+ lpchelper.cpp lpqhelper.cpp kmlprjobmanager.cpp
+ matichelper.cpp klprprinterimpl.cpp printcapentry.cpp
+ lprsettings.cpp kmconfiglpr.cpp apshandler.cpp
+ lprngtoolhandler.cpp editentrydialog.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint_management-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+#### make_driver_db_lpr #########################
+
+set( target make_driver_db_lpr )
+
+set( ${target}_SRCS
+ make_driver_db_lpr.c
+)
+
+tde_add_executable( ${target}
+ SOURCES ${${target}_SRCS}
+ LINK driverparse-static kdefakes-shared ${DL_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kdeprint/management/CMakeLists.txt b/kdeprint/management/CMakeLists.txt
new file mode 100644
index 000000000..a3d578d3d
--- /dev/null
+++ b/kdeprint/management/CMakeLists.txt
@@ -0,0 +1,112 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+ -D_KDEPRINT_COMPILE
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdefx
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kio
+ ${CMAKE_SOURCE_DIR}/kio/kio
+ ${CMAKE_SOURCE_DIR}/kio/kfile
+ ${CMAKE_SOURCE_DIR}/kdeprint
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kmmainview.h kmjobviewer.h kmprinterpage.h
+ kiconselectaction.h kmtimer.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kdeprint )
+
+
+##### other data ################################
+
+install( FILES
+ tileup.png tiledown.png side.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdeprint )
+
+
+#### kdeprint_management ########################
+
+set( target kdeprint_management )
+
+set( ${target}_SRCS
+ kmdbcreator.cpp kmdriverdb.cpp kmdriverdbwidget.cpp
+ kmiconview.cpp kminfopage.cpp kmmainview.cpp kmpages.cpp
+ kmprinterview.cpp kmjobviewer.cpp jobitem.cpp kmpropwidget.cpp
+ kmpropcontainer.cpp kmpropertypage.cpp kmpropgeneral.cpp
+ cjanuswidget.cpp kmpropmembers.cpp kmpropbackend.cpp
+ kmpropdriver.cpp kmlistview.cpp kminstancepage.cpp
+ kmtimer.cpp kmwizard.cpp kmwizardpage.cpp kmwinfopage.cpp
+ kmwpassword.cpp kmwsocketutil.cpp kmwbackend.cpp
+ kmwsocket.cpp kmwdriver.cpp kmwdriverselect.cpp
+ kmwdrivertest.cpp kmwinfobase.cpp kmwname.cpp kmwend.cpp
+ kmwclass.cpp kmwlpd.cpp kmwfile.cpp kmdriverdialog.cpp
+ kmwsmb.cpp smbview.cpp kmconfigdialog.cpp kmconfigpage.cpp
+ kmconfiggeneral.cpp kmspecialprinterdlg.cpp kmwlocal.cpp
+ kiconselectaction.cpp kmconfigpreview.cpp sidepixmap.cpp
+ pluginaction.cpp kxmlcommanddlg.cpp kxmlcommandselector.cpp
+ kmconfigcommand.cpp kmconfigfilter.cpp kmconfigfonts.cpp
+ kmconfigjobs.cpp networkscanner.cpp
+)
+
+tde_add_library( ${target} SHARED AUTOMOC
+ SOURCES ${${target}_SRCS}
+ VERSION 4.2.0
+ LINK kdeprint-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+#### libkdeprint_management_module ##############
+
+set( target libkdeprint_management_module )
+
+set( ${target}_SRCS
+ kdeprint_management_module.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint_management-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+#### kaddprinterwizard ##########################
+
+set( target kaddprinterwizard )
+
+set( ${target}_SRCS
+ kaddprinterwizard.cpp
+)
+
+tde_add_kdeinit_executable( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint-shared
+)
diff --git a/kdeprint/pics/CMakeLists.txt b/kdeprint/pics/CMakeLists.txt
new file mode 100644
index 000000000..ed6478325
--- /dev/null
+++ b/kdeprint/pics/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+##### other data ################################
+
+install( FILES
+ kdeprint_collate.png kdeprint_collate_reverse.png
+ kdeprint_color.png kdeprint_duplex_none.png
+ kdeprint_duplex_long.png kdeprint_duplex_short.png
+ kdeprint_grayscale.png kdeprint_landscape.png
+ kdeprint_nup1.png kdeprint_nup2.png kdeprint_nup4.png
+ kdeprint_portrait.png kdeprint_revlandscape.png
+ kdeprint_revportrait.png kdeprint_uncollate.png
+ kdeprint_uncollate_reverse.png kdeprint_nupother.png
+ kdeprint_prettyprint.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdeprint/pics )
+
+tde_install_icons(
+ kdeprint_job kdeprint_job_error kdeprint_job_process
+ kdeprint_job_stopped kdeprint_printer kdeprint_printer_class
+ kdeprint_printer_class_stopped kdeprint_printer_defect
+ kdeprint_printer_remote kdeprint_printer_remote_stopped
+ kdeprint_printer_stopped kdeprint_printer_remote_process
+ kdeprint_printer_process kdeprint_printer_class_process
+ kdeprint_computer kdeprint_printer_infos history
+ kdeprint_printer_users filterstop kdeprint_job_completed
+ kdeprint_job_cancelled package_utilities kdeprint_enableprinter
+ kdeprint_stopprinter kdeprint_addprinter kdeprint_addpseudo
+ kdeprint_configmgr kdeprint_configsrv kdeprint_defaulthard
+ kdeprint_defaultsoft kdeprint_report kdeprint_testprinter
+ kdeprint_uploadsmb kdeprint_restartsrv kdeprint_inklevel
+ kdeprint_printstate kdeprint_queuestate
+ DESTINATION ${DATA_INSTALL_DIR}/kdeprint/icons )
diff --git a/kdeprint/rlpr/CMakeLists.txt b/kdeprint/rlpr/CMakeLists.txt
new file mode 100644
index 000000000..683bbdb0e
--- /dev/null
+++ b/kdeprint/rlpr/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+ -D_KDEPRINT_COMPILE
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/dcop
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+ ${CMAKE_SOURCE_DIR}/kdeprint
+ ${CMAKE_SOURCE_DIR}/kdeprint/management
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES rlpr.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins )
+
+
+##### kdeprint_rlpr #############################
+
+set( target kdeprint_rlpr )
+
+set( ${target}_SRCS
+ kmrlprfactory.cpp kmrlprmanager.cpp krlprprinterimpl.cpp
+ kmrlpruimanager.cpp kmwrlpr.cpp kmproprlpr.cpp
+ kmproxywidget.cpp kmconfigproxy.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint_management-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kdeprint/tools/CMakeLists.txt b/kdeprint/tools/CMakeLists.txt
new file mode 100644
index 000000000..4c2682eee
--- /dev/null
+++ b/kdeprint/tools/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( escputil )
diff --git a/kdeprint/tools/escputil/CMakeLists.txt b/kdeprint/tools/escputil/CMakeLists.txt
new file mode 100644
index 000000000..e38a04210
--- /dev/null
+++ b/kdeprint/tools/escputil/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2010 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions(
+ ${TQT_CFLAGS_OTHER}
+)
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdecore
+ ${CMAKE_SOURCE_DIR}/kdeui
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES escputil.desktop DESTINATION ${DATA_INSTALL_DIR}/kdeprint/tools )
+
+
+##### kdeprint_tool_escputil ####################
+
+set( target kdeprint_tool_escputil )
+
+set( ${target}_SRCS
+ escpwidget.cpp
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeui-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)