summaryrefslogtreecommitdiffstats
path: root/kmrml
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-08 15:49:56 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-08 15:49:56 +0000
commit96411d66c8095128af871a82ba2895c61dab3281 (patch)
treec0cf5c800fd5b6e44c7bf9c05a9f197d8db1e525 /kmrml
parent5c3f3c34c2f56660f935451776e76e552c7af305 (diff)
downloadtdegraphics-96411d66c8095128af871a82ba2895c61dab3281.tar.gz
tdegraphics-96411d66c8095128af871a82ba2895c61dab3281.zip
[kdegraphics] added cmake support for kgamma, kiconedit, and kmrml
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230898 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmrml')
-rw-r--r--kmrml/CMakeLists.txt14
-rw-r--r--kmrml/ConfigureChecks.cmake13
-rw-r--r--kmrml/kmrml/CMakeLists.txt62
-rw-r--r--kmrml/kmrml/kcontrol/CMakeLists.txt38
-rw-r--r--kmrml/kmrml/lib/CMakeLists.txt26
-rw-r--r--kmrml/kmrml/server/CMakeLists.txt35
6 files changed, 188 insertions, 0 deletions
diff --git a/kmrml/CMakeLists.txt b/kmrml/CMakeLists.txt
new file mode 100644
index 00000000..3401365d
--- /dev/null
+++ b/kmrml/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+add_subdirectory ( kmrml )
diff --git a/kmrml/ConfigureChecks.cmake b/kmrml/ConfigureChecks.cmake
new file mode 100644
index 00000000..51a3c9fb
--- /dev/null
+++ b/kmrml/ConfigureChecks.cmake
@@ -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
+#
+#################################################
+
+check_include_file( stdlib.h HAVE_STDLIB_H )
+check_include_file( unistd.h HAVE_UNISTD_H )
diff --git a/kmrml/kmrml/CMakeLists.txt b/kmrml/kmrml/CMakeLists.txt
new file mode 100644
index 00000000..3d491827
--- /dev/null
+++ b/kmrml/kmrml/CMakeLists.txt
@@ -0,0 +1,62 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( lib )
+add_subdirectory( kcontrol )
+add_subdirectory( server )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/lib
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES mrml.protocol mrml_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES mrml.desktop DESTINATION ${MIME_INSTALL_DIR}/text )
+install( FILES mrml-servicemenu.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
+
+
+#### kio_mrml (module) ##########################
+
+tde_add_kpart( kio_mrml AUTOMOC
+ SOURCES mrml.cpp
+ LINK kmrmlstuff-static kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### libkmrmlpart (module) #######################
+
+tde_add_kpart( libkmrmlpart AUTOMOC
+ SOURCES
+ mrml_part.cpp mrml_view.cpp loader.cpp mrml_elements.cpp
+ mrml_creator.cpp browser.cpp algorithmdialog.cpp collectioncombo.cpp
+ algorithmcombo.cpp propertysheet.cpp
+ LINK kmrmlstuff-static kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### mrmlsearch (kdeinit) ######################
+
+tde_add_kdeinit_executable( mrmlsearch AUTOMOC
+ SOURCES mrmlsearch.cpp
+ LINK kmrmlstuff-static kdecore-shared
+)
diff --git a/kmrml/kmrml/kcontrol/CMakeLists.txt b/kmrml/kmrml/kcontrol/CMakeLists.txt
new file mode 100644
index 00000000..6db11a40
--- /dev/null
+++ b/kmrml/kmrml/kcontrol/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../lib
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+#### other data #################################
+
+INSTALL( FILES kcmkmrml.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+#### kcm_kmrml (module) ###########################
+
+tde_add_kpart( kcm_kmrml AUTOMOC
+ SOURCES
+ kcmkmrml.cpp mainpage.cpp indexer.cpp
+ serverconfigwidget.ui indexcleaner.cpp
+ LINK
+ kmrmlstuff-static kparts-shared kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kmrml/kmrml/lib/CMakeLists.txt b/kmrml/kmrml/lib/CMakeLists.txt
new file mode 100644
index 00000000..fb51a3ac
--- /dev/null
+++ b/kmrml/kmrml/lib/CMakeLists.txt
@@ -0,0 +1,26 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+#
+# 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}
+)
+
+
+#### kcmkgamma (static) #########################
+
+tde_add_library( kmrmlstuff STATIC_PIC AUTOMOC
+ SOURCES
+ kmrml_config.cpp mrml_shared.cpp
+ mrml_utils.cpp watcher_stub.cpp
+)
diff --git a/kmrml/kmrml/server/CMakeLists.txt b/kmrml/kmrml/server/CMakeLists.txt
new file mode 100644
index 00000000..430f2c39
--- /dev/null
+++ b/kmrml/kmrml/server/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/lib
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+#### other data #################################
+
+INSTALL( FILES daemonwatcher.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+#### kded_daemonwatcher (module) ################
+
+tde_add_kpart( kded_daemonwatcher AUTOMOC
+ SOURCES watcher.cpp watcher.skel
+ LINK kmrmlstuff-static kparts-shared kio-shared kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)