summaryrefslogtreecommitdiffstats
path: root/languages/pascal
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 /languages/pascal
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 'languages/pascal')
-rw-r--r--languages/pascal/CMakeLists.txt51
-rw-r--r--languages/pascal/app_templates/CMakeLists.txt19
-rw-r--r--languages/pascal/app_templates/fpcgtk/CMakeLists.txt25
-rw-r--r--languages/pascal/app_templates/fpchello/CMakeLists.txt25
-rw-r--r--languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt25
-rw-r--r--languages/pascal/app_templates/pascalhello/CMakeLists.txt25
-rw-r--r--languages/pascal/compiler/CMakeLists.txt13
-rw-r--r--languages/pascal/compiler/dccoptions/CMakeLists.txt37
-rw-r--r--languages/pascal/compiler/fpcoptions/CMakeLists.txt37
-rw-r--r--languages/pascal/doc/CMakeLists.txt14
-rw-r--r--languages/pascal/file_templates/CMakeLists.txt14
11 files changed, 285 insertions, 0 deletions
diff --git a/languages/pascal/CMakeLists.txt b/languages/pascal/CMakeLists.txt
new file mode 100644
index 00000000..19ecf137
--- /dev/null
+++ b/languages/pascal/CMakeLists.txt
@@ -0,0 +1,51 @@
+#################################################
+#
+# (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( file_templates )
+add_subdirectory( app_templates )
+add_subdirectory( compiler )
+add_subdirectory( doc )
+
+# FIXME KDE_CXXFLAGS = $(USE_EXCEPTIONS)
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/lib/interfaces
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/external
+ ${CMAKE_SOURCE_DIR}/lib/util
+ ${CMAKE_SOURCE_DIR}/lib/antlr
+ ${CMAKE_SOURCE_DIR}/lib/catalog
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kdevpascalsupport.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES kdevpascalsupport.rc DESTINATION ${DATA_INSTALL_DIR}/kdevpascalsupport )
+install( FILES pascaltemplates DESTINATION ${DATA_INSTALL_DIR}/kdevabbrev/templates )
+
+
+##### libkdevpascalsupport (module) #############
+
+tde_add_kpart( libkdevpascalsupport AUTOMOC
+ SOURCES
+ pascalsupport_part.cpp PascalLexer.cpp PascalParser.cpp
+ PascalStoreWalker.cpp backgroundparser.cpp
+ configproblemreporter.ui problemreporter.cpp
+ LINK antlr-static kdevcatalog-shared kdevelop-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/languages/pascal/app_templates/CMakeLists.txt b/languages/pascal/app_templates/CMakeLists.txt
new file mode 100644
index 00000000..d493e7a1
--- /dev/null
+++ b/languages/pascal/app_templates/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (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( pascalhello )
+add_subdirectory( fpcgtk )
+add_subdirectory( fpchello )
+add_subdirectory( fpcsharedlib )
+
+install( FILES
+ pascal.appwizard
+ DESTINATION ${DATA_INSTALL_DIR}/kdevelop/profiles/IDE/CompiledLanguageIDE/PascalIDE )
diff --git a/languages/pascal/app_templates/fpcgtk/CMakeLists.txt b/languages/pascal/app_templates/fpcgtk/CMakeLists.txt
new file mode 100644
index 00000000..8a154204
--- /dev/null
+++ b/languages/pascal/app_templates/fpcgtk/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( fpcgtk.tar.gz ALL
+ COMMAND tar zcf fpcgtk.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ main.pp app.kdevelop
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/fpcgtk.tar.gz fpcgtk.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ fpcgtk.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/pascal/app_templates/fpchello/CMakeLists.txt b/languages/pascal/app_templates/fpchello/CMakeLists.txt
new file mode 100644
index 00000000..f51b2517
--- /dev/null
+++ b/languages/pascal/app_templates/fpchello/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( fpchello.tar.gz ALL
+ COMMAND tar zcf fpchello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ main.pp app.kdevelop
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/fpchello.tar.gz fpchello.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ fpchello.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt b/languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt
new file mode 100644
index 00000000..de4923f3
--- /dev/null
+++ b/languages/pascal/app_templates/fpcsharedlib/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( fpcsharedlib.tar.gz ALL
+ COMMAND tar zcf fpcsharedlib.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ main.pp app.kdevelop
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/fpcsharedlib.tar.gz fpcsharedlib.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ fpcsharedlib.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/pascal/app_templates/pascalhello/CMakeLists.txt b/languages/pascal/app_templates/pascalhello/CMakeLists.txt
new file mode 100644
index 00000000..0c130705
--- /dev/null
+++ b/languages/pascal/app_templates/pascalhello/CMakeLists.txt
@@ -0,0 +1,25 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_custom_target( pascalhello.tar.gz ALL
+ COMMAND tar zcf pascalhello.tar.gz -C ${CMAKE_CURRENT_SOURCE_DIR}
+ main.pp app.kdevelop
+)
+
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/pascalhello.tar.gz pascalhello.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard )
+
+
+install( FILES
+ pascalhello.kdevtemplate
+ DESTINATION ${DATA_INSTALL_DIR}/kdevappwizard/templates )
diff --git a/languages/pascal/compiler/CMakeLists.txt b/languages/pascal/compiler/CMakeLists.txt
new file mode 100644
index 00000000..56f84b6d
--- /dev/null
+++ b/languages/pascal/compiler/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (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( dccoptions )
+add_subdirectory( fpcoptions )
diff --git a/languages/pascal/compiler/dccoptions/CMakeLists.txt b/languages/pascal/compiler/dccoptions/CMakeLists.txt
new file mode 100644
index 00000000..ae6c6388
--- /dev/null
+++ b/languages/pascal/compiler/dccoptions/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (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_SOURCE_DIR}/lib/interfaces
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/extras
+ ${CMAKE_SOURCE_DIR}/lib/widgets
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kdevdccoptions.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### libkdevdccoptions (module) ################
+
+tde_add_kpart( libkdevdccoptions AUTOMOC
+ SOURCES dccoptionsplugin.cpp optiontabs.cpp
+ LINK kdevwidgets-shared kdevextras-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/languages/pascal/compiler/fpcoptions/CMakeLists.txt b/languages/pascal/compiler/fpcoptions/CMakeLists.txt
new file mode 100644
index 00000000..12c9ef89
--- /dev/null
+++ b/languages/pascal/compiler/fpcoptions/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (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_SOURCE_DIR}/lib/interfaces
+ ${CMAKE_SOURCE_DIR}/lib/interfaces/extras
+ ${CMAKE_SOURCE_DIR}/lib/widgets
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kdevfpcoptions.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### libkdevfpcoptions (module) ################
+
+tde_add_kpart( libkdevfpcoptions AUTOMOC
+ SOURCES fpcoptionsplugin.cpp optiontabs.cpp
+ LINK kdevwidgets-shared kdevextras-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/languages/pascal/doc/CMakeLists.txt b/languages/pascal/doc/CMakeLists.txt
new file mode 100644
index 00000000..ade55abb
--- /dev/null
+++ b/languages/pascal/doc/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (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
+ pascal_bugs_fp.toc
+ DESTINATION ${DATA_INSTALL_DIR}/kdevdocumentation/tocs )
diff --git a/languages/pascal/file_templates/CMakeLists.txt b/languages/pascal/file_templates/CMakeLists.txt
new file mode 100644
index 00000000..812d0398
--- /dev/null
+++ b/languages/pascal/file_templates/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (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
+ dpr pas-program pas-unit pp-program pp-unit
+ DESTINATION ${DATA_INSTALL_DIR}/kdevfilecreate/file-templates )