Browse Source

[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
tags/v3.5.13
samelian 9 years ago
parent
commit
1519ab4cd1
4 changed files with 62 additions and 2 deletions
  1. +5
    -2
      CMakeLists.txt
  2. +1
    -0
      config.h.cmake
  3. +40
    -0
      kruler/CMakeLists.txt
  4. +16
    -0
      kruler/pics/CMakeLists.txt

+ 5
- 2
CMakeLists.txt View File

@@ -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 #####################


+ 1
- 0
config.h.cmake View File

@@ -0,0 +1 @@
#cmakedefine VERSION "@VERSION@"

+ 40
- 0
kruler/CMakeLists.txt View File

@@ -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}
)

+ 16
- 0
kruler/pics/CMakeLists.txt View File

@@ -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 )

Loading…
Cancel
Save