summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-01 02:35:56 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-01 02:35:56 +0000
commit1519ab4cd15ba6c913570a6eef370e3e7667c060 (patch)
tree78850eca2f7ff068417917081788177b2df5f7c5
parentc3809fce15f966296c57961f0f4cf508b9b06dd4 (diff)
downloadtdegraphics-1519ab4cd15ba6c913570a6eef370e3e7667c060.tar.gz
tdegraphics-1519ab4cd15ba6c913570a6eef370e3e7667c060.zip
[kdegraphics/kruler] initial cmake support (made by Calvin Morrison)
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1223193 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--CMakeLists.txt7
-rw-r--r--config.h.cmake1
-rw-r--r--kruler/CMakeLists.txt40
-rw-r--r--kruler/pics/CMakeLists.txt16
4 files changed, 62 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e700795c..aaeb2d09 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
#################################################
#
-# (C) 2010 Serghei Amelian
+# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
@@ -13,6 +13,7 @@ cmake_minimum_required( VERSION 2.6 )
##### general package setup #####################
project( kdegraphics )
+set( VERSION 3.5.13 )
##### include essential cmake modules ###########
@@ -49,6 +50,7 @@ tde_setup_paths( )
option( BUILD_ALL "Build all" OFF )
option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
+option( BUILD_KRULER "Build kruler" ${BUILD_ALL} )
##### configure checks ##########################
@@ -75,9 +77,10 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
# endif()
-##### kdemultimedia directories ########################
+##### kdegraphics directories ###################
tde_conditional_add_subdirectory( BUILD_KVIEW kview )
+tde_conditional_add_subdirectory( BUILD_KRULER kruler )
##### write configure files #####################
diff --git a/config.h.cmake b/config.h.cmake
index e69de29b..a8661610 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -0,0 +1 @@
+#cmakedefine VERSION "@VERSION@"
diff --git a/kruler/CMakeLists.txt b/kruler/CMakeLists.txt
new file mode 100644
index 00000000..86a8b955
--- /dev/null
+++ b/kruler/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+#### other data #################################
+
+install( FILES kruler.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES eventsrc ${DATA_INSTALL_DIR}/kruler )
+install( FILES move.wav DESTINATION ${DATA_INSTALL_DIR}/kruler/sounds )
+install( FILES uninstall.desktop DESTINATION ${APPS_INSTALL_DIR}/Graphics RENAME kruler.desktop )
+
+
+#### kruler (executable) ########################
+
+tde_add_executable( kruler AUTOMOC
+ SOURCES klineal.cpp main.cpp
+ LINK kdeui-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kruler/pics/CMakeLists.txt b/kruler/pics/CMakeLists.txt
new file mode 100644
index 00000000..0dfc6ff3
--- /dev/null
+++ b/kruler/pics/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2010-2011 Calvin Morrison
+# mutantturkey@gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ kruler-east.png kruler-north.png kruler-south.png kruler-west.png
+ DESTINATION ${DATA_INSTALL_DIR}/kruler/pics )
+
+tde_install_icons( kruler )