summaryrefslogtreecommitdiffstats
path: root/kompare
diff options
context:
space:
mode:
authorSerghei Amelian <serghei.amelian@gmail.com>2012-02-14 20:55:22 +0200
committerSerghei Amelian <serghei.amelian@gmail.com>2012-02-14 20:55:22 +0200
commitadee843c4d5c8fbce75abd3a768d643392e4ea90 (patch)
tree6b4ab90028fc79ca1cfaeda61c0f66aaef7ed9fe /kompare
parentbfb0bc00e959ed3cac6cf4e517a24de50446be50 (diff)
downloadtdesdk-adee843c4d5c8fbce75abd3a768d643392e4ea90.tar.gz
tdesdk-adee843c4d5c8fbce75abd3a768d643392e4ea90.zip
[tdesdk/cmake] added forgotten files
Diffstat (limited to 'kompare')
-rw-r--r--kompare/CMakeLists.txt55
-rw-r--r--kompare/interfaces/CMakeLists.txt28
-rw-r--r--kompare/komparenavtreepart/CMakeLists.txt36
-rw-r--r--kompare/komparepart/CMakeLists.txt46
-rw-r--r--kompare/libdialogpages/CMakeLists.txt26
-rw-r--r--kompare/libdiff2/CMakeLists.txt31
-rw-r--r--kompare/pics/CMakeLists.txt12
7 files changed, 234 insertions, 0 deletions
diff --git a/kompare/CMakeLists.txt b/kompare/CMakeLists.txt
new file mode 100644
index 00000000..42d5d457
--- /dev/null
+++ b/kompare/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( interfaces )
+add_subdirectory( libdiff2 )
+add_subdirectory( libdialogpages )
+add_subdirectory( komparenavtreepart )
+add_subdirectory( komparepart )
+add_subdirectory( pics )
+
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/libdiff2
+ ${CMAKE_CURRENT_SOURCE_DIR}/libdialogpages
+ ${CMAKE_CURRENT_SOURCE_DIR}/komparenavtreepart
+ ${CMAKE_CURRENT_SOURCE_DIR}/komparepart
+ ${CMAKE_CURRENT_SOURCE_DIR}/interfaces
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kompare.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kompareui.rc DESTINATION ${DATA_INSTALL_DIR}/kompare )
+
+install( FILES
+ komparenavigationpart.desktop kompareviewpart.desktop
+ DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+
+
+##### kompare (executable) ######################
+
+tde_add_executable( kompare AUTOMOC
+ SOURCES
+ main.cpp kompare_shell.cpp kompareurldialog.cpp
+ LINK
+ dialogpages-static kompareinterface-shared kio-shared
+ kparts-shared ktexteditor-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kompare/interfaces/CMakeLists.txt b/kompare/interfaces/CMakeLists.txt
new file mode 100644
index 00000000..bd6583e2
--- /dev/null
+++ b/kompare/interfaces/CMakeLists.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kompareinterface (shared) #################
+
+tde_add_library( kompareinterface SHARED
+ SOURCES kompareinterface.cpp
+ LINK ${TQT_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kompare/komparenavtreepart/CMakeLists.txt b/kompare/komparenavtreepart/CMakeLists.txt
new file mode 100644
index 00000000..32af4732
--- /dev/null
+++ b/kompare/komparenavtreepart/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2012 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}/../libdiff2
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES komparenavtreepart.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### libkomparenavtreepart (module) ############
+
+tde_add_kpart( libkomparenavtreepart AUTOMOC
+ SOURCES komparenavtreepart.cpp
+ LINK diff2-static kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kompare/komparepart/CMakeLists.txt b/kompare/komparepart/CMakeLists.txt
new file mode 100644
index 00000000..00fe0e04
--- /dev/null
+++ b/kompare/komparepart/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2012 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}/../libdiff2
+ ${CMAKE_CURRENT_SOURCE_DIR}/../libdialogpages
+ ${CMAKE_CURRENT_SOURCE_DIR}/../interfaces
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES komparepart.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+install( FILES komparepartui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kompare )
+
+
+##### libkomparepart (module) ###################
+
+tde_add_kpart( libkomparepart AUTOMOC
+ SOURCES
+ kompare_part.cpp kompareconnectwidget.cpp komparesplitter.cpp
+ komparelistview.cpp kompareprefdlg.cpp komparesaveoptionsbase.ui
+ komparesaveoptionswidget.cpp
+ LINK
+ dialogpages-static diff2-static kompareinterface-shared
+ kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kompare/libdialogpages/CMakeLists.txt b/kompare/libdialogpages/CMakeLists.txt
new file mode 100644
index 00000000..40f61bd2
--- /dev/null
+++ b/kompare/libdialogpages/CMakeLists.txt
@@ -0,0 +1,26 @@
+#################################################
+#
+# (C) 2012 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}/../libdiff2
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### dialogpages (static) ######################
+
+tde_add_library( dialogpages STATIC_PIC AUTOMOC
+ SOURCES
+ settingsbase.cpp diffsettings.cpp filessettings.cpp viewsettings.cpp
+ pagebase.cpp diffpage.cpp filespage.cpp viewpage.cpp
+)
diff --git a/kompare/libdiff2/CMakeLists.txt b/kompare/libdiff2/CMakeLists.txt
new file mode 100644
index 00000000..65dd77e1
--- /dev/null
+++ b/kompare/libdiff2/CMakeLists.txt
@@ -0,0 +1,31 @@
+#################################################
+#
+# (C) 2012 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_CURRENT_SOURCE_DIR}/../libdialogpages
+ ${CMAKE_CURRENT_SOURCE_DIR}/../komparepart
+ ${CMAKE_CURRENT_SOURCE_DIR}/../interfaces
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### diff2 (static) ############################
+
+tde_add_library( diff2 STATIC_PIC AUTOMOC
+ SOURCES
+ kompareprocess.cpp komparemodellist.cpp diffmodellist.cpp
+ diffmodel.cpp difference.cpp diffhunk.cpp levenshteintable.cpp
+ parser.cpp parserbase.cpp cvsdiffparser.cpp diffparser.cpp
+ perforceparser.cpp
+)
diff --git a/kompare/pics/CMakeLists.txt b/kompare/pics/CMakeLists.txt
new file mode 100644
index 00000000..96bca44c
--- /dev/null
+++ b/kompare/pics/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( )