summaryrefslogtreecommitdiffstats
path: root/kregexpeditor
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-11-10 20:47:02 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-11-10 20:47:02 -0600
commitc1a8ee04fbfe9851c1f788bcdcf3a5339ce1e478 (patch)
treeb60bf0191b08974e1ad29fd808d298aaeb29ef5a /kregexpeditor
parent42177b2709de3eb2ef8ecde7d2a027fbb05a218c (diff)
downloadtdeutils-c1a8ee04fbfe9851c1f788bcdcf3a5339ce1e478.tar.gz
tdeutils-c1a8ee04fbfe9851c1f788bcdcf3a5339ce1e478.zip
Initial conversion to cmake.
Thanks to Fat-Zer.
Diffstat (limited to 'kregexpeditor')
-rw-r--r--kregexpeditor/CMakeLists.txt110
-rw-r--r--kregexpeditor/KMultiFormListBox/CMakeLists.txt40
-rw-r--r--kregexpeditor/KWidgetStreamer/CMakeLists.txt35
-rw-r--r--kregexpeditor/picts/CMakeLists.txt20
-rw-r--r--kregexpeditor/predefined/CMakeLists.txt12
-rw-r--r--kregexpeditor/predefined/General/CMakeLists.txt16
-rw-r--r--kregexpeditor/test-without-dl/CMakeLists.txt36
7 files changed, 269 insertions, 0 deletions
diff --git a/kregexpeditor/CMakeLists.txt b/kregexpeditor/CMakeLists.txt
new file mode 100644
index 0000000..da87046
--- /dev/null
+++ b/kregexpeditor/CMakeLists.txt
@@ -0,0 +1,110 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( KWidgetStreamer )
+add_subdirectory( KMultiFormListBox )
+add_subdirectory( picts )
+add_subdirectory( predefined )
+
+# FIXME: add optional test compilation
+# add_subdirectory( test-without-dl )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/KWidgetStreamer
+ ${CMAKE_CURRENT_SOURCE_DIR}/KMultiFormListBox
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_CURRENT_BINARY_DIR}/KWidgetStreamer
+)
+
+add_definitions(
+ -DQT_NO_CAST_ASCII
+)
+
+
+##### kregexpeditor (executable) ################
+
+tde_add_executable( kregexpeditor AUTOMOC
+ SOURCES main.cpp
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+ LINK kregexpeditorcommon-shared
+)
+
+
+
+##### kregexpeditorcommon (shared) ##############
+
+tde_add_library( kregexpeditorcommon SHARED AUTOMOC
+ SOURCES kregexpeditorgui.cpp editorwindow.cpp
+ regexpwidget.cpp drag.cpp concwidget.cpp
+ zerowidgets.cpp dragaccepter.cpp
+ repeatwidget.cpp characterswidget.cpp
+ altnwidget.cpp limitedcharlineedit.cpp
+ textregexp.cpp textrangeregexp.cpp
+ concregexp.cpp altnregexp.cpp
+ positionregexp.cpp dotregexp.cpp
+ repeatregexp.cpp textwidget.cpp
+ selectablelineedit.cpp
+ multicontainerwidget.cpp
+ scrollededitorwindow.cpp compoundwidget.cpp
+ singlecontainerwidget.cpp widgetfactory.cpp
+ dcbutton.cpp gen_qregexplexer.cpp
+ gen_qregexpparser.cc charselector.cpp
+ lookaheadregexp.cpp lookaheadwidget.cpp
+ regexp.cpp infopage.cpp
+ kregexpeditorprivate.cpp compoundregexp.cpp
+ auxbuttons.cpp myfontmetrics.cpp
+ regexpbuttons.cpp userdefinedregexps.cpp
+ verifier.cpp verifybuttons.cpp errormap.cpp
+ qtregexphighlighter.cpp regexpconverter.cpp
+ qtregexpconverter.cpp
+ emacsregexpconverter.cpp
+ regexphighlighter.cpp util.cpp
+ VERSION 1.0.0
+ LINK kio-shared kmultiformlistbox-static
+ kwidgetstreamer-static
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+
+
+##### kregexpeditorgui (kpart) ##################
+
+tde_add_kpart( kregexpeditorgui AUTOMOC
+ SOURCES kregexpeditorfactory.cpp
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+ LINK kregexpeditorcommon-shared
+)
+
+
+##### icons #####################################
+
+tde_install_icons( )
+
+
+##### other data ################################
+
+install( FILES kregexpeditor.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install( FILES kregexpeditorgui.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}
+)
+
diff --git a/kregexpeditor/KMultiFormListBox/CMakeLists.txt b/kregexpeditor/KMultiFormListBox/CMakeLists.txt
new file mode 100644
index 0000000..03ef2c9
--- /dev/null
+++ b/kregexpeditor/KMultiFormListBox/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kregexpeditor/KWidgetStreamer
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DQT_NO_CAST_ASCII
+)
+
+
+##### kmultiformlistbox (static) ################
+
+tde_add_library( kmultiformlistbox STATIC_PIC AUTOMOC
+ SOURCES ccp.cpp kmultiformlistboxentry.cpp
+ kmultiformlistbox.cpp
+ kmultiformlistbox-multivisible.cpp
+ kmultiformlistboxfactory.cpp indexWindow.cpp
+ kmultiformlistbox-windowed.cpp
+ widgetwindow.cpp windowlistboxitem.cpp
+)
+
diff --git a/kregexpeditor/KWidgetStreamer/CMakeLists.txt b/kregexpeditor/KWidgetStreamer/CMakeLists.txt
new file mode 100644
index 0000000..9f738b9
--- /dev/null
+++ b/kregexpeditor/KWidgetStreamer/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kregexpeditor/KMultiFormListBox
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+add_definitions(
+ -DQT_NO_CAST_ASCII
+)
+
+
+##### kwidgetstreamer (static) ##################
+
+tde_add_library( kwidgetstreamer STATIC_PIC AUTOMOC
+ SOURCES kwidgetstreamer.cpp
+)
+
diff --git a/kregexpeditor/picts/CMakeLists.txt b/kregexpeditor/picts/CMakeLists.txt
new file mode 100644
index 0000000..06d4f8b
--- /dev/null
+++ b/kregexpeditor/picts/CMakeLists.txt
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES altn.png begline.png compound.png
+ neglookahead.png poslookahead.png select.png
+ wordboundary.png anychar.png characters.png
+ endline.png nonwordboundary.png repeat.png
+ text.png error.png autoverify.png verify.png
+ DESTINATION
+ ${DATA_INSTALL_DIR}/kregexpeditor/pics
+)
+
diff --git a/kregexpeditor/predefined/CMakeLists.txt b/kregexpeditor/predefined/CMakeLists.txt
new file mode 100644
index 0000000..aafce4c
--- /dev/null
+++ b/kregexpeditor/predefined/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( General )
diff --git a/kregexpeditor/predefined/General/CMakeLists.txt b/kregexpeditor/predefined/General/CMakeLists.txt
new file mode 100644
index 0000000..9c8bc3e
--- /dev/null
+++ b/kregexpeditor/predefined/General/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES spaces.regexp anything.regexp
+ DESTINATION
+ ${DATA_INSTALL_DIR}/kregexpeditor/predefined/general
+)
+
diff --git a/kregexpeditor/test-without-dl/CMakeLists.txt b/kregexpeditor/test-without-dl/CMakeLists.txt
new file mode 100644
index 0000000..82fed32
--- /dev/null
+++ b/kregexpeditor/test-without-dl/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2012 Golubev Alexander
+# fatzer2 (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${CMAKE_BINARY_DIR}/kregexpeditor
+)
+
+
+##### regexptest (test) #########################
+
+tde_add_executable( regexptest AUTOMOC
+ SOURCES main.cpp
+ DESTINATION ${BIN_INSTALL_DIR}
+ LINK tdeui-shared kregexpeditorcommon-shared
+)
+
+add_test( NAME regexptest-test
+ COMMAND regexptest)
+