summaryrefslogtreecommitdiffstats
path: root/kghostview
diff options
context:
space:
mode:
Diffstat (limited to 'kghostview')
-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
7 files changed, 109 insertions, 0 deletions
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