Browse Source

Commit initial kdeartwork CMake support, courtesy of Golubev Alexander

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1259766 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 10 years ago
parent
commit
5379c37cfc
  1. 91
      CMakeLists.txt
  2. 81
      ConfigureChecks.cmake
  3. 82
      FindXscreensaver.cmake
  4. 28
      IconThemes/CMakeLists.txt
  5. 34
      config.h.cmake
  6. 17
      emoticons/BoxedEmoticonSet/CMakeLists.txt
  7. 23
      emoticons/CMakeLists.txt
  8. 14
      emoticons/GroupWise/CMakeLists.txt
  9. 18
      emoticons/KMess-Blue/CMakeLists.txt
  10. 18
      emoticons/KMess-Cartoon/CMakeLists.txt
  11. 18
      emoticons/KMess-Violet/CMakeLists.txt
  12. 26
      emoticons/KMess/CMakeLists.txt
  13. 17
      emoticons/ccmathteam.com/CMakeLists.txt
  14. 17
      emoticons/greggman.com/CMakeLists.txt
  15. 17
      emoticons/phpBB/CMakeLists.txt
  16. 17
      emoticons/plain/CMakeLists.txt
  17. 17
      emoticons/redones/CMakeLists.txt
  18. 16
      emoticons/set1/CMakeLists.txt
  19. 13
      icewm-themes/CMakeLists.txt
  20. 26
      icewm-themes/MenschMaschine/CMakeLists.txt
  21. 25
      icewm-themes/Model/CMakeLists.txt
  22. 17
      kscreensaver/CMakeLists.txt
  23. 145
      kscreensaver/kdesavers/CMakeLists.txt
  24. 17
      kscreensaver/kdesavers/data/CMakeLists.txt
  25. 33
      kscreensaver/kpartsaver/CMakeLists.txt
  26. 66
      kscreensaver/kxsconfig/CMakeLists.txt
  27. 52
      kscreensaver/xsavers/CMakeLists.txt
  28. 22
      kwin-styles/CMakeLists.txt
  29. 34
      kwin-styles/cde/CMakeLists.txt
  30. 28
      kwin-styles/cde/config/CMakeLists.txt
  31. 35
      kwin-styles/glow/CMakeLists.txt
  32. 28
      kwin-styles/glow/config/CMakeLists.txt
  33. 17
      kwin-styles/glow/themes/CMakeLists.txt
  34. 22
      kwin-styles/glow/themes/default/CMakeLists.txt
  35. 22
      kwin-styles/glow/themes/glass/CMakeLists.txt
  36. 22
      kwin-styles/glow/themes/glass_huge/CMakeLists.txt
  37. 22
      kwin-styles/glow/themes/glass_large/CMakeLists.txt
  38. 22
      kwin-styles/glow/themes/glass_verylarge/CMakeLists.txt
  39. 22
      kwin-styles/glow/themes/square/CMakeLists.txt
  40. 35
      kwin-styles/icewm/CMakeLists.txt
  41. 28
      kwin-styles/icewm/config/CMakeLists.txt
  42. 21
      kwin-styles/icewm/icewm-themes/CMakeLists.txt
  43. 32
      kwin-styles/kde1/CMakeLists.txt
  44. 32
      kwin-styles/kstep/CMakeLists.txt
  45. 33
      kwin-styles/openlook/CMakeLists.txt
  46. 52
      kwin-styles/riscos/CMakeLists.txt
  47. 12
      kwin-styles/smooth-blend/CMakeLists.txt
  48. 38
      kwin-styles/smooth-blend/client/CMakeLists.txt
  49. 32
      kwin-styles/smooth-blend/client/config/CMakeLists.txt
  50. 32
      kwin-styles/system/CMakeLists.txt
  51. 17
      kworldclock/CMakeLists.txt
  52. 18
      kworldclock/alt/CMakeLists.txt
  53. 18
      kworldclock/bio/CMakeLists.txt
  54. 18
      kworldclock/caida/CMakeLists.txt
  55. 18
      kworldclock/caida_bw/CMakeLists.txt
  56. 18
      kworldclock/mggd/CMakeLists.txt
  57. 18
      kworldclock/rainfall/CMakeLists.txt
  58. 15
      sounds/CMakeLists.txt
  59. 13
      styles/CMakeLists.txt
  60. 43
      styles/dotnet/CMakeLists.txt
  61. 45
      styles/phase/CMakeLists.txt
  62. 35
      styles/phase/config/CMakeLists.txt
  63. 42
      wallpapers/CMakeLists.txt

91
CMakeLists.txt

@ -0,0 +1,91 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.8 )
##### general package setup #####################
project( kdeartwork )
set( PACKAGE kdeartwork )
set( VERSION "3.5.13" )
##### include essential cmake modules ###########
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckIncludeFileCXX )
include( CheckCXXSourceCompiles )
##### include our cmake modules #################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
##### setup install paths #######################
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff ############################
option( WITH_XSCREENSAVER "Enable xscreensavers support" ON )
option( WITH_LIBART "Enable libart support" ON )
option( WITH_OPENGL "Enable 3D GL modes" ON )
option( WITH_ARTS "Enable aRts support" OFF )
##### user requested modules ####################
option( BUILD_ALL "Build all" OFF )
option( BUILD_EMOTICONS "Build emoticons" ${BUILD_ALL} )
option( BUILD_ICEWM_THEMES "Build icewm-themes" ${BUILD_ALL} )
option( BUILD_ICON_THEMES "Build icon themes" ${BUILD_ALL} )
option( BUILD_KSCREENSAVER "Build kscreensaver" ${BUILD_ALL} )
option( BUILD_KWIN_STYLES "Build kwin styles" ${BUILD_ALL} )
option( BUILD_KWORLDCLOCK "Build kworldclock" ${BUILD_ALL} )
option( BUILD_SOUNDS "Build sounds" ${BUILD_ALL} )
option( BUILD_STYLES "Build styles" ${BUILD_ALL} )
option( BUILD_WALLPAPERS "Build wallpapers" ${BUILD_ALL} )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### kdenetwork directories ####################
tde_conditional_add_subdirectory( BUILD_EMOTICONS emoticons )
tde_conditional_add_subdirectory( BUILD_ICEWM_THEMES icewm-themes )
tde_conditional_add_subdirectory( BUILD_ICON_THEMES IconThemes )
tde_conditional_add_subdirectory( BUILD_KSCREENSAVER kscreensaver )
tde_conditional_add_subdirectory( BUILD_KWIN_STYLES kwin-styles )
tde_conditional_add_subdirectory( BUILD_KWORLDCLOCK kworldclock )
tde_conditional_add_subdirectory( BUILD_SOUNDS sounds )
tde_conditional_add_subdirectory( BUILD_STYLES styles )
tde_conditional_add_subdirectory( BUILD_WALLPAPERS wallpapers )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

81
ConfigureChecks.cmake

@ -0,0 +1,81 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
if( BUILD_KSCREENSAVER )
# limits.h (kscreensaver/kdesavers)
check_include_file_cxx( limits HAVE_NUMERIC_LIMITS )
# memory.h (kscreensaver/xsavers)
check_include_file( memory.h HAVE_MEMORY_H )
# X11/dirent.h (kscreensaver/xsavers)
check_include_file( X11/dirent.h HAVE_DIRENT_H )
# sys/ndir.h (kscreensaver/xsavers)
check_include_file( sys/ndir.h HAVE_SYS_NDIR_H )
# sys/dir.h (kscreensaver/xsavers)
check_include_file( sys/dir.h HAVE_SYS_DIR_H )
# ndir.h (kscreensaver/xsavers)
check_include_file( ndir.h HAVE_NDIR_H )
# OpenGL(kscreensaver/kdesavers)
if( WITH_OPENGL )
find_package( OpenGL REQUIRED )
if( NOT OPENGL_FOUND )
tde_message_fatal( "OpenGL is required, but was not found on your system" )
endif( NOT OPENGL_FOUND )
# for kscreensaver/xsavers
set( HAVE_GL ${OPENGL_FOUND} )
# GL/xmesa.h (kscreensaver/xsavers)
check_include_file( GL/xmesa.h HAVE_GL_XMESA_H )
# GL/glut.h (kscreensaver/xsavers)
check_include_file( GL/glut.h HAVE_GL_XMESA_H )
endif( WITH_OPENGL )
# libart(kscreensaver/kdesavers)
if( WITH_LIBART )
pkg_search_module( LIBART libart libart_lgpl libart-2.0 )
if( NOT LIBART_FOUND )
tde_message_fatal( "libart is required, but was not found on your system" )
endif( NOT LIBART_FOUND )
endif( WITH_LIBART )
# arts(kscreensaver/kdesavers)
if( WITH_ARTS )
pkg_search_module( ARTS arts )
if( NOT ARTS_FOUND )
message( FATAL_ERROR "\naRts is requested, but was not found on your system" )
endif( )
endif( WITH_ARTS )
# xscreensavers(kscreensaver/kxsconfig)
if( WITH_XSCREENSAVER )
find_package( X11 )
if( NOT X11_FOUND OR NOT X11_Xt_FOUND )
message( FATAL_ERROR
"\nX11 and Xt library is required for xscreensaver support, but it was not found on your system" )
endif( )
include( FindXscreensaver.cmake ) # not really good practise
if( NOT XSCREENSAVER_FOUND )
message( FATAL_ERROR "\nxscreensaver is requested, but was not found on your system" )
endif( )
endif( WITH_XSCREENSAVER )
endif( BUILD_KSCREENSAVER )
# required stuff
find_package( TQt )
find_package( TDE )

82
FindXscreensaver.cmake

@ -0,0 +1,82 @@
#Macro to find xscreensaver directory
# Copyright (c) 2006, Laurent Montel, <montel@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
# got from kde4
if (NOT XSCREENSAVER_FOUND)
set(xscreensaver_alldirs)
set(xscreensaver_checkdirs ${TDE_INCLUDE_DIR}
/usr/
/usr/local/
/opt/local/
/usr/X11R6/
/opt/kde/
/opt/kde3/
/usr/kde/
/usr/local/kde/
/usr/local/xscreensaver/
/usr/openwin/lib/xscreensaver/
/etc/ )
foreach(suffix lib${LIB_SUFFIX}/xscreensaver lib${LIB_SUFFIX}/misc/xscreensaver lib/xscreensaver lib64/xscreensaver libexec/xscreensaver
bin/xscreensaver-hacks hacks)
foreach(xscreensaver_path ${xscreensaver_checkdirs} )
set(xscreensaver_alldirs ${xscreensaver_alldirs} ${xscreensaver_path}/${suffix})
endforeach(xscreensaver_path ${xscreensaver_checkdirs} )
endforeach(suffix lib${LIB_SUFFIX}/xscreensaver lib/xscreensaver lib64/xscreensaver libexec/xscreensaver bin/xscreensaver-hacks hacks)
FIND_PATH(XSCREENSAVER_DIR deco ${xscreensaver_alldirs})
set(XSCREENSAVER_CONFIG_DIR)
FIND_PATH(XSCREENSAVER_CONFIG_DECO config/deco.xml
${TDE_INCLUDE_DIR}
/usr/
/usr/local/
/opt/local/
/usr/X11R6/
/opt/kde/
/opt/kde3/
/usr/kde/
/usr/share/xscreensaver/
/usr/local/kde/
/usr/local/xscreensaver/
/usr/openwin/lib/xscreensaver/
/etc/
)
#MESSAGE(STATUS "XSCREENSAVER_CONFIG_DIR :<${XSCREENSAVER_CONFIG_DIR}>")
if(XSCREENSAVER_CONFIG_DECO)
set(XSCREENSAVER_CONFIG_DIR "${XSCREENSAVER_CONFIG_DECO}/config/")
#MESSAGE(STATUS "XSCREENSAVER_CONFIG_DIR <${XSCREENSAVER_CONFIG_DIR}>")
endif(XSCREENSAVER_CONFIG_DECO)
# Try and locate XScreenSaver config when path doesn't include config
if(NOT XSCREENSAVER_CONFIG_DIR)
FIND_PATH(XSCREENSAVER_CONFIG_DIR deco.xml
/etc/xscreensaver
)
endif(NOT XSCREENSAVER_CONFIG_DIR)
endif(NOT XSCREENSAVER_FOUND)
#MESSAGE(STATUS "XSCREENSAVER_CONFIG_DIR :<${XSCREENSAVER_CONFIG_DIR}>")
#MESSAGE(STATUS "XSCREENSAVER_DIR :<${XSCREENSAVER_DIR}>")
# Need to fix hack
if(XSCREENSAVER_DIR AND XSCREENSAVER_CONFIG_DIR)
set(XSCREENSAVER_FOUND TRUE)
endif(XSCREENSAVER_DIR AND XSCREENSAVER_CONFIG_DIR)
if (XSCREENSAVER_FOUND)
if (NOT Xscreensaver_FIND_QUIETLY)
message(STATUS "Found SCREENSAVER_CONFIG_DIR <${XSCREENSAVER_CONFIG_DIR}>")
endif (NOT Xscreensaver_FIND_QUIETLY)
else (XSCREENSAVER_FOUND)
if (Xscreensaver_FIND_REQUIRED)
message(FATAL_ERROR "XScreenSaver not found")
endif (Xscreensaver_FIND_REQUIRED)
endif (XSCREENSAVER_FOUND)
MARK_AS_ADVANCED(XSCREENSAVER_DIR XSCREENSAVER_CONFIG_DIR)

28
IconThemes/CMakeLists.txt

@ -0,0 +1,28 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
set(ICON_THEMES Locolor ikons kdeclassic slick kids )
set(ICON_TYPES actions apps devices filesystems mimetypes)
set(ICON_SIZES 16x16 22x22 32x32 48x48 64x64 128x128 scalable)
set(ICON_SUFFIXES png mng svg svgz)
foreach (theme ${ICON_THEMES})
install(FILES ${theme}/index.theme DESTINATION ${ICON_INSTALL_DIR}/${theme} )
foreach(size ${ICON_SIZES})
foreach(type ${ICON_TYPES})
foreach(suffix ${ICON_SUFFIXES})
FILE(GLOB files "${theme}/${size}/${type}/*.${suffix}" )
install(FILES ${files} DESTINATION ${ICON_INSTALL_DIR}/${theme}/${size}/${type}/)
endforeach(suffix ${ICON_SUFFIXES})
endforeach(type ${ICON_TYPES})
endforeach(size ${ICON_SIZES})
endforeach (theme ${ICON_THEMES})

34
config.h.cmake

@ -0,0 +1,34 @@
#define VERSION "@VERSION@"
#cmakedefine HAVE_NUMERIC_LIMITS 1
/* Defines where xscreensaver stores it's config files */
#define XSCREENSAVER_CONFIG_DIR "@XSCREENSAVER_CONFIG_DIR@"
/* Defines where xscreensaver stores its graphic hacks */
#define XSCREENSAVER_HACKS_DIR "@XSCREENSAVER_DIR@"
/* Defines if you have GL (Mesa, OpenGL, ...) */
#cmakedefine HAVE_GL 1
/* Defines if you have GL/xmesa.h header file. */
#cmakedefine HAVE_GL_XMESA_H 1
/* Defines if you have GL/glut.h header file. */
#cmakedefine HAVE_GL_XMESA_H 1
/* Defines if you have X11/dirent.h header file. */
#cmakedefine HAVE_DIRENT_H 1
/* Defines if you have sys/ndir.h header file. */
#cmakedefine HAVE_SYS_NDIR_H 1
/* Defines if you have sys/dir.h header file. */
#cmakedefine HAVE_SYS_DIR_H 1
/* Defines if you have ndir.h header file. */
#cmakedefine HAVE_NDIR_H 1
/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H 1

17
emoticons/BoxedEmoticonSet/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
angry.png bigsmile.png confused.png cry.png
oh.png sad.png shade.png smile.png tongue.png
wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/Boxed )

23
emoticons/CMakeLists.txt

@ -0,0 +1,23 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( BoxedEmoticonSet )
add_subdirectory( ccmathteam.com )
add_subdirectory( greggman.com )
add_subdirectory( GroupWise )
add_subdirectory( KMess )
add_subdirectory( KMess-Blue )
add_subdirectory( KMess-Cartoon )
add_subdirectory( KMess-Violet )
add_subdirectory( phpBB )
add_subdirectory( plain )
add_subdirectory( redones )
add_subdirectory( set1 )

14
emoticons/GroupWise/CMakeLists.txt

@ -0,0 +1,14 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/GroupWise )

18
emoticons/KMess-Blue/CMakeLists.txt

@ -0,0 +1,18 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
angry.png confused.png cry.png
embarassed.png omg.png sad.png
shade.png smile.png teeth.png
tongue.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/KMess-Blue )

18
emoticons/KMess-Cartoon/CMakeLists.txt

@ -0,0 +1,18 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
angel.png angry.png confused.png cry.png
devil.png embarrassed.png omg.png sad.png
shade.png smile.png teeth.png tongue.png
ugly.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/KMess-Cartoon )

18
emoticons/KMess-Violet/CMakeLists.txt

@ -0,0 +1,18 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
angry.png confused.png cry.png
embarassed.png omg.png sad.png
shade.png smile.png teeth.png
tongue.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/KMess-Violet )

26
emoticons/KMess/CMakeLists.txt

@ -0,0 +1,26 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
angel.png angry.png bat.png beer.png
boy.png cake.png camera.png cat.png
clock.png cocktail.png confused.png
cry.png cup.png devil.png dog.png
dude_hug.png embarassed.png email.png
film.png girl.png girl_hug.png kiss.png
lightbulb.png love.png messenger.png
note.png omg.png phone.png present.png
rose.png sad.png shade.png smile.png
star.png teeth.png thumbs_down.png
thumbs_up.png tongue.png unlove.png
wilted_rose.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/KMess )

17
emoticons/ccmathteam.com/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
biggrin.png confused.png cry.png devil.png
oh.png smile.png sunglasses.png tongue.png
unhappy.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/ccmathteam.com )

17
emoticons/greggman.com/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
biggrin.png confused.png kiss.png oh.png
smile.png sunglasses.png tongue.png unhappy.png
vampire.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/greggman.com )

17
emoticons/phpBB/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
biggrin.png confused.png cry.png devil.png
oh.png smile.png sunglasses.png tongue.png
unhappy.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/phpBB )

17
emoticons/plain/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
biggrin.png confused.png cry.png oh.png
smile.png sunglasses.png tongue.png
unhappy.png wink.png pig.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/Plain )

17
emoticons/redones/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
angel.png biggrin.png confused.png cry.png
oh.png smile.png sunglasses.png tongue.png
unhappy.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/RedOnes )

16
emoticons/set1/CMakeLists.txt

@ -0,0 +1,16 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
emoticons.xml
biggrin.png cry.png oh.png sleep.png smile.png
tongue.png unhappy.png wink.png
DESTINATION ${SHARE_INSTALL_PREFIX}/emoticons/tweakers.net )

13
icewm-themes/CMakeLists.txt

@ -0,0 +1,13 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( MenschMaschine )
add_subdirectory( Model )

26
icewm-themes/MenschMaschine/CMakeLists.txt

@ -0,0 +1,26 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
closeA.xpm closeI.xpm frameAB.xpm
frameABL.xpm frameABR.xpm frameAL.xpm
frameAR.xpm frameAT.xpm frameATL.xpm
frameATR.xpm frameIB.xpm frameIBL.xpm
frameIBR.xpm frameIL.xpm frameIR.xpm
frameIT.xpm frameITL.xpm frameITR.xpm
maximizeA.xpm maximizeI.xpm menuButtonA.xpm
menuButtonI.xpm minimizeA.xpm minimizeI.xpm
restoreA.xpm restoreI.xpm titleAB.xpm
titleAL.xpm titleAM.xpm titleAR.xpm
titleAT.xpm titleIB.xpm titleIL.xpm
titleIM.xpm titleIR.xpm titleIT.xpm
default.theme
DESTINATION ${DATA_INSTALL_DIR}/kwin/icewm-themes/MenschMaschine )

25
icewm-themes/Model/CMakeLists.txt

@ -0,0 +1,25 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
closeA.xpm closeI.xpm frameAB.xpm
frameABL.xpm frameABR.xpm frameAL.xpm
frameAR.xpm frameAT.xpm frameATL.xpm
frameATR.xpm frameIB.xpm frameIBL.xpm
frameIBR.xpm frameIL.xpm frameIR.xpm
frameIT.xpm frameITL.xpm frameITR.xpm
maximizeA.xpm maximizeI.xpm menuButtonA.xpm
menuButtonI.xpm minimizeA.xpm minimizeI.xpm
restoreA.xpm restoreI.xpm titleAB.xpm
titleAL.xpm titleAM.xpm titleAT.xpm
titleIB.xpm titleIL.xpm titleIM.xpm
titleIT.xpm default.theme
DESTINATION ${DATA_INSTALL_DIR}/kwin/icewm-themes/Model )

17
kscreensaver/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( kdesavers )
add_subdirectory( kpartsaver)
if( WITH_XSCREENSAVER )
add_subdirectory( kxsconfig )
add_subdirectory( xsavers )
endif( WITH_XSCREENSAVER )

145
kscreensaver/kdesavers/CMakeLists.txt

@ -0,0 +1,145 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
# ##### The "normal" screensavers ###############
set( kbanner_SOURCES banner.cpp )
set( kbanner_DESKTOP KBanner.desktop )
set( kpolygon_SOURCES polygon.cpp )
set( kpolygon_DESKTOP KPolygon.desktop )
set( klines_SOURCES lines.cpp )
set( klines_DESKTOP KLines-saver.desktop )
set( klorenz_SOURCES lorenz.cpp )
set( klorenz_DESKTOP KLorenz.desktop )
set( kslideshow_SOURCES slideshow.cpp slideshowcfg.ui )
set( kslideshow_DESKTOP KSlideshow.desktop )
set( kblob_SOURCES blob.cpp )
set( kblob_DESKTOP KBlob.desktop )
set( kvm_SOURCES kvm.cpp vm.c vm_random.c )
set( kvm_DESKTOP KVm.desktop )
set( kslideshow_LINK kio-shared )
set( NORMAL_SCREENSAVERS
kbanner kpolygon kslideshow klines klorenz kblob kvm )
##### X11 screensavers ##########################
set( kscience_SOURCES science.cpp )
set( kscience_DESKTOP KScience.desktop )
set( X11_SCREENSAVERS kscience)
##### The GL screensavers #######################
set( kfountain_SOURCES fountain.cpp fountaincfg.ui )
set( kfountain_DESKTOP KFountain.desktop )
set( kwave_SOURCES wave.cpp wavecfg.ui )
set( kwave_DESKTOP KWave.desktop )
set( kgravity_SOURCES gravity.cpp gravitycfg.ui )
set( kgravity_DESKTOP KGravity.desktop )
set( kflux_SOURCES Flux.cpp )
set( kflux_DESKTOP KFlux.desktop )
set( keuphoria_SOURCES Euphoria.cpp )
set( keuphoria_DESKTOP KEuphoria.desktop )
set( ksolarwinds_SOURCES SolarWinds.cpp )
set( ksolarwinds_DESKTOP KSolarWinds.desktop )
set( krotation_SOURCES rotation.cpp rotationcfg.ui sspreviewarea.cpp
rkodesolver.cpp vec3.cpp )
set( krotation_DESKTOP KRotation.desktop )
set( kpendulum_SOURCES pendulum.cpp pendulumcfg.ui sspreviewarea.cpp
rkodesolver.cpp )
set( kpendulum_DESKTOP KPendulum.desktop )
set( OPENGL_SCREENSAVERS kfountain kwave kgravity kflux keuphoria ksolarwinds
krotation kpendulum )
##### The GL-Arts screensavers ##################
set( kfiresaver_SOURCES firesaversetup.ui firesaverparticle.cpp
firesaverwriter.cpp firesaver.cpp )
set( kfiresaver_DESKTOP KFiresaver.desktop )
set( kfiresaver_LINK artskde-shared )
set( GL_ARTS_SCREENSAVERS kfiresaver )
##### The LIBART screensavers ###################
set( kclock_SOURCES kclock.cpp )
set( kclock_DESKTOP KClock.desktop )
set( LIBART_SCREENSAVERS kclock )
##### LIBART conditions #########################
if( WITH_LIBART )
list( APPEND SCREENSAVERS ${LIBART_SCREENSAVERS} )
include_directories( ${LIBART_INCLUDE_DIRS} )
link_directories( ${LIBART_LIBRARY_DIRS} )
foreach( saver ${LIBART_SCREENSAVERS} )
list ( APPEND ${saver}_LINK ${LIBART_LIBRARIES} )
endforeach( saver ${LIBART_SCREENSAVERS} )
endif( WITH_LIBART )
##### GL conditions #############################
if( WITH_OPENGL )
if( WITH_ARTS )
list( APPEND OPENGL_SCREENSAVERS ${GL_ARTS_SCREENSAVERS} )
endif( WITH_ARTS )
list( APPEND SCREENSAVERS ${OPENGL_SCREENSAVERS} )
include_directories( ${OPENGL_INCLUDE_DIRS} )
link_directories( ${OPENGL_LIBRARY_DIRS} )
foreach( saver ${OPENGL_SCREENSAVERS} )
list ( APPEND ${saver}_LINK ${OPENGL_LIBRARIES} )
endforeach( saver ${OPENGL_SCREENSAVERS} )
endif( WITH_OPENGL )
##### add normal screensavers ###################
# FIXME: check for X includes/libraries
# this screensavers will work only in X
list( APPEND SCREENSAVERS ${X11_SCREENSAVERS} )
list( APPEND SCREENSAVERS ${NORMAL_SCREENSAVERS} )
##### create install/compile rules ##############
foreach( saver ${SCREENSAVERS} )
tde_add_executable( ${saver}.kss AUTOMOC
SOURCES ${${saver}_SOURCES}
LINK kscreensaver-shared kdeui-shared ${${saver}_LINK}
DESTINATION ${BIN_INSTALL_DIR}
)
install( FILES ${${saver}_DESKTOP}
DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
endforeach( saver ${SCREENSAVERS} )
##### install various data ######################
install( FILES image.png kscience.png particle.png
DESTINATION ${DATA_INSTALL_DIR}/kscreensaver )
# Actually the only screensaver tha uses this data is kfiresaver
add_subdirectory( data )

17
kscreensaver/kdesavers/data/CMakeLists.txt

@ -0,0 +1,17 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
install( FILES
kfs_particle.png kfs_particle_flare.png
kfs_particle_diastar.png kfs_kde.png
kfs_tux.png kfs_letters1.png kfs_letters2.png
kfs_letters.desc kfs_explode.ogg kfs_debris.ogg
DESTINATION ${DATA_INSTALL_DIR}/kfiresaver )

33
kscreensaver/kpartsaver/CMakeLists.txt

@ -0,0 +1,33 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### desktop files #############################
install( FILES kpartsaver.desktop
DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
##### kpart_cde ##################################
tde_add_executable( kpartsaver.kss AUTOMOC
SOURCES kpartsaver.cpp configwidget.ui
LINK kscreensaver-shared kio-shared
DESTINATION ${BIN_INSTALL_DIR}
)

66
kscreensaver/kxsconfig/CMakeLists.txt

@ -0,0 +1,66 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# 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}
${X11_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${X11_LIBRARY_DIR}
)
##### kxsconfig #################################
set( target kxsconfig )
set( ${target}_SRCS
kxscontrol.cpp kxsitem.cpp kxsxml.cpp kxsconfig.cpp )
tde_add_executable( ${target} AUTOMOC
SOURCES ${${target}_SRCS}
LINK kio-shared ${X11_Xt_LIB}
DESTINATION ${BIN_INSTALL_DIR}
)
##### kxsrun ####################################
set( target kxsrun )
set( ${target}_SRCS
kxsrun.cpp kxscontrol.cpp kxsitem.cpp kxsxml.cpp )
tde_add_executable( ${target} AUTOMOC
SOURCES ${${target}_SRCS}
LINK kio-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### install desktops ##########################
# code from kde4
FILE(GLOB _desktopfiles "ScreenSavers/*.desktop" )
foreach(_currentdesktopfile ${_desktopfiles})
STRING(REGEX REPLACE ".desktop" "" _newitem "${_currentdesktopfile}" )
#MESSAGE(STATUS "newItem <${_newitem}>")
GET_FILENAME_COMPONENT(_screensaverName ${_newitem} NAME_WE)
#MESSAGE(STATUS "name without extension
find_file(XSCREENSAVER_FILE_FOUND ${_screensaverName}.xml PATHS ${XSCREENSAVER_CONFIG_DIR} )
if(XSCREENSAVER_FILE_FOUND)
MESSAGE(STATUS "xscreensaver name ${_screensaverName} found")
install(FILES ${_currentdesktopfile} DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
else(XSCREENSAVER_FILE_FOUND)
MESSAGE(STATUS "xscreensaver name ${_screensaverName} not found")
endif(XSCREENSAVER_FILE_FOUND)
unset(XSCREENSAVER_FILE_FOUND CACHE)
endforeach(_currentdesktopfile ${_desktopfiles})

52
kscreensaver/xsavers/CMakeLists.txt

@ -0,0 +1,52 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### shared source ##########################
set( BASE_SRCS main.cpp demowin.cpp saver.cpp helpers.cpp )
set( XL_SRCS xlock.cpp )
##### kswarm #################################
tde_add_executable( kswarm.kss AUTOMOC
SOURCES swarm.cpp ${BASE_SRCS} ${XL_SRCS}
LINK kdeui-shared
DESTINATION ${BIN_INSTALL_DIR}
)
install( FILES KSwarm.desktop DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
##### kswarm #################################
if( WITH_OPENGL )
include_directories( ${OPENGL_INCLUDE_DIRS} )
link_directories( ${OPENGL_LIBRARY_DIRS} )
tde_add_executable( kspace.kss AUTOMOC
SOURCES space.cpp ${BASE_SRCS} ${XL_SRCS}
LINK kdeui-shared ${OPENGL_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
install( FILES KSpace.desktop DESTINATION ${APPS_INSTALL_DIR}/System/ScreenSavers )
endif( WITH_OPENGL )

22
kwin-styles/CMakeLists.txt

@ -0,0 +1,22 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include( "${TDE_CMAKE_DIR}/kwin.cmake" )
add_subdirectory( cde )
add_subdirectory( glow )
add_subdirectory( icewm )
add_subdirectory( kde1 )
add_subdirectory( kstep )
add_subdirectory( openlook )
add_subdirectory( riscos )
add_subdirectory( smooth-blend )
add_subdirectory( system )

34
kwin-styles/cde/CMakeLists.txt

@ -0,0 +1,34 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( config )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES cde.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin )
##### kwin3_cde ##################################
tde_add_kpart( kwin3_cde AUTOMOC
SOURCES cdeclient.cpp
LINK kdecorations-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

28
kwin-styles/cde/config/CMakeLists.txt

@ -0,0 +1,28 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### kwin_cde_config (module) ###################
tde_add_kpart( kwin_cde_config AUTOMOC
SOURCES config.cpp
LINK kdeui-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)

35
kwin-styles/glow/CMakeLists.txt

@ -0,0 +1,35 @@
#################################################
#
# (C) 2011 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( config )
add_subdirectory( themes )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES glow.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin )
##### kwin3_glow ################################
tde_add_kpart( kwin3_glow AUTOMOC
SOURCES glowbutton.cpp glowclient.cpp
LINK kdecorations-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)