summaryrefslogtreecommitdiffstats
path: root/kdevdesigner
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 20:22:40 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 20:22:40 +0000
commitcf21ddc3cce570e574364e841758b59c0f8e8e04 (patch)
tree9f79e4569bb2991b4de8c25dd23795126ac0914c /kdevdesigner
parentf9c30e41d26594598abaa8315c4488b6c5ff38ea (diff)
downloadtdevelop-cf21ddc3cce570e574364e841758b59c0f8e8e04.tar.gz
tdevelop-cf21ddc3cce570e574364e841758b59c0f8e8e04.zip
[kdevelop] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1216516 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdevdesigner')
-rw-r--r--kdevdesigner/CMakeLists.txt15
-rw-r--r--kdevdesigner/designer/CMakeLists.txt105
-rw-r--r--kdevdesigner/shared/CMakeLists.txt26
-rw-r--r--kdevdesigner/src/CMakeLists.txt36
-rw-r--r--kdevdesigner/uilib/CMakeLists.txt27
5 files changed, 209 insertions, 0 deletions
diff --git a/kdevdesigner/CMakeLists.txt b/kdevdesigner/CMakeLists.txt
new file mode 100644
index 00000000..9584f4c7
--- /dev/null
+++ b/kdevdesigner/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (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( shared )
+add_subdirectory( uilib )
+add_subdirectory( designer )
+add_subdirectory( src )
diff --git a/kdevdesigner/designer/CMakeLists.txt b/kdevdesigner/designer/CMakeLists.txt
new file mode 100644
index 00000000..dfd7f914
--- /dev/null
+++ b/kdevdesigner/designer/CMakeLists.txt
@@ -0,0 +1,105 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions( -DDESIGNER -UQT_NO_ASCII_CAST )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/kdevdesigner/shared
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/external
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kdevdesigner_part.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+install( FILES
+ kdevdesigner_part.rc kdevdesigner_part_sh.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kdevdesignerpart )
+
+
+##### libkdevdesignerpart (module) ##############
+
+set( SRCS
+ about.ui dbconnection.ui gotolinedialog.ui
+ newform.ui actionlistview.cpp asciivalidator.cpp
+ command.cpp connectionitems.cpp connectiontable.cpp
+ customwidgeteditor.ui formsettings.ui
+ multilineeditor.ui customwidgeteditorimpl.cpp
+ database.cpp dbconnectioneditor.ui iconvieweditor.ui
+ paletteeditor.ui dbconnectionimpl.cpp dbconnectionsimpl.cpp
+ dbconnections.ui listboxeditor.ui paletteeditoradvanced.ui
+ defs.cpp designerapp.cpp designerappiface.cpp
+ editfunctionsimpl.cpp filechooser.cpp formfile.cpp
+ formsettingsimpl.cpp formwindow.cpp hierarchyview.cpp
+ iconvieweditorimpl.cpp layout.cpp listboxdnd.cpp
+ kdevdesigner_part.cpp actiondnd.cpp actioneditorimpl.cpp
+ listboxeditorimpl.cpp listboxrename.cpp listdnd.cpp
+ listeditor.ui pixmapcollectioneditor.ui listviewdnd.cpp
+ listvieweditorimpl.cpp mainwindow.cpp listvieweditor.ui
+ pixmapfunction.ui startdialog.ui mainwindowactions.cpp
+ menubareditor.cpp metadatabase.cpp multilineeditorimpl.cpp
+ newformimpl.cpp orderindicator.cpp myiconloader.cpp
+ outputwindow.cpp paletteeditoradvancedimpl.cpp
+ paletteeditorimpl.cpp pixmapchooser.cpp
+ pixmapcollection.cpp popupmenueditor.cpp previewframe.cpp
+ preferences.ui tableeditor.ui designeraction.cpp
+ previewwidget.ui variabledialog.ui actioneditor.ui
+ previewwidgetimpl.cpp project.cpp projectsettingsimpl.cpp
+ projectsettings.ui wizardeditor.ui configtoolboxdialog.ui
+ propertyeditor.cpp propertyobject.cpp qcompletionedit.cpp
+ replacedialog.ui connectiondialog.ui editfunctions.ui
+ resource.cpp sizehandle.cpp sourceeditor.cpp
+ richtextfontdialog.ui createtemplate.ui finddialog.ui
+ sourcefile.cpp startdialogimpl.cpp styledbutton.cpp
+ syntaxhighlighter_html.cpp tableeditorimpl.cpp
+ timestamp.cpp variabledialogimpl.cpp widgetaction.cpp
+ widgetfactory.cpp wizardeditorimpl.cpp workspace.cpp
+)
+
+tde_moc( SRCS
+ actiondnd.h actioneditorimpl.h actionlistview.h
+ asciivalidator.h command.h connectionitems.h
+ connectiontable.h customwidgeteditorimpl.h database.h
+ dbconnectionimpl.h dbconnectionsimpl.h editfunctionsimpl.h
+ filechooser.h formfile.h formsettingsimpl.h
+ formwindow.h hierarchyview.h iconvieweditorimpl.h
+ layout.h listboxdnd.h listboxeditorimpl.h listboxrename.h
+ listdnd.h listviewdnd.h listvieweditorimpl.h mainwindow.h
+ menubareditor.h multilineeditorimpl.h newformimpl.h
+ orderindicator.h outputwindow.h paletteeditoradvancedimpl.h
+ paletteeditorimpl.h pixmapchooser.h popupmenueditor.h
+ previewframe.h previewwidgetimpl.h project.h
+ projectsettingsimpl.h propertyeditor.h qcompletionedit.h
+ sizehandle.h sourceeditor.h sourcefile.h startdialogimpl.h
+ styledbutton.h tableeditorimpl.h timestamp.h
+ variabledialogimpl.h widgetaction.h widgetfactory.h
+ wizardeditorimpl.h workspace.h
+ )
+
+
+tde_add_kpart( libkdevdesignerpart AUTOMOC
+ SOURCES ${SRCS}
+ LINK
+ kdevqui-static shared-static kinterfacedesigner-static
+ kio-shared kparts-shared qassistantclient
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kdevdesigner/shared/CMakeLists.txt b/kdevdesigner/shared/CMakeLists.txt
new file mode 100644
index 00000000..46c5e8f6
--- /dev/null
+++ b/kdevdesigner/shared/CMakeLists.txt
@@ -0,0 +1,26 @@
+#################################################
+#
+# (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_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/external
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### shared (static) ########################
+
+tde_add_library( shared STATIC_PIC
+ SOURCES
+ domtool.cpp parser.cpp ui2uib.cpp uib.cpp
+ widgetdatabase.cpp
+)
diff --git a/kdevdesigner/src/CMakeLists.txt b/kdevdesigner/src/CMakeLists.txt
new file mode 100644
index 00000000..726a91d1
--- /dev/null
+++ b/kdevdesigner/src/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (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_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kdevdesigner.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kdevdesigner_shell.rc DESTINATION ${DATA_INSTALL_DIR}/kdevdesigner )
+
+
+##### kdevdesigner (executable) #################
+
+tde_add_executable( kdevdesigner AUTOMOC
+ SOURCES main.cpp kdevdesigner.cpp
+ LINK kparts-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kdevdesigner/uilib/CMakeLists.txt b/kdevdesigner/uilib/CMakeLists.txt
new file mode 100644
index 00000000..3aa1c78f
--- /dev/null
+++ b/kdevdesigner/uilib/CMakeLists.txt
@@ -0,0 +1,27 @@
+#################################################
+#
+# (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_SOURCE_DIR}/kdevdesigner/shared
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kdevqui (static) ##########################
+
+set( SRCS database.cpp qwidgetfactory.cpp )
+
+tde_moc( SRCS database2.h )
+
+tde_add_library( kdevqui STATIC_PIC
+ SOURCES ${SRCS}
+)