diff options
-rw-r--r-- | CMakeLists.txt | 7 | ||||
-rw-r--r-- | config.h.cmake | 1 | ||||
-rw-r--r-- | kruler/CMakeLists.txt | 40 | ||||
-rw-r--r-- | kruler/pics/CMakeLists.txt | 16 |
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 ) |