diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2012-11-18 15:33:48 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-11-18 15:33:48 +0100 |
commit | c4c9c9fd262dd8450c1cf4454183b03173a3b092 (patch) | |
tree | e03d0b806ab851d79324ac05bc6fe06cdfe1fc0d | |
parent | 75bf0c9d253aee7281a0d0d7e9f899d75a1bd04b (diff) | |
download | tdetoys-c4c9c9fd262dd8450c1cf4454183b03173a3b092.tar.gz tdetoys-c4c9c9fd262dd8450c1cf4454183b03173a3b092.zip |
Initial conversion to cmake
Thanks to Fat-Zer
43 files changed, 1237 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..8adb215 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,111 @@ +################################################# +# +# (C) 2012 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( tdeutils ) +set( VERSION R14 ) + + +##### include essential cmake modules ########### + +include( FindPkgConfig ) +include( CheckIncludeFile ) +include( CheckLibraryExists ) +include( CheckCSourceCompiles ) +include( CheckCXXSourceCompiles ) +# @Add othere required cmake modules here@ +# +# EXAMPLE: +# include( CheckTypeSize ) + + +##### 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 ############################ + +# @Add configuration options here@ +# +# EXAMPLE: +# option( WITH_T1LIB "Enable t1lib support" OFF ) + + +##### options comments ########################## + +# @Add configuration options descriptions here@ +# NOTE: They should be commented. +# EXAMPLE: +# # WITH_T1LIB affects <modules which affects this variable> +# # WITH_T1LIB description <a verbose description what functionality is +# addeded or removed by this option> + + +##### user requested modules #################### + +option( BUILD_ALL "Build all" OFF ) +option( BUILD_AMOR "Build amor" ${BUILD_ALL} ) +option( BUILD_DOC "Build doc" ${BUILD_ALL} ) +option( BUILD_EYESAPPLET "Build eyesapplet" ${BUILD_ALL} ) +option( BUILD_FIFTEENAPPLET "Build fifteenapplet" ${BUILD_ALL} ) +option( BUILD_KMOON "Build kmoon" ${BUILD_ALL} ) +option( BUILD_KODO "Build kodo" ${BUILD_ALL} ) +option( BUILD_KTEATIME "Build kteatime" ${BUILD_ALL} ) +option( BUILD_KTUX "Build ktux" ${BUILD_ALL} ) +option( BUILD_KWEATHER "Build kweather" ${BUILD_ALL} ) +option( BUILD_KWORLDWATCH "Build kworldwatch" ${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" ) + + +##### @TDE_MODULE_NAME@ directories ############ + +tde_conditional_add_subdirectory( BUILD_AMOR amor ) +tde_conditional_add_subdirectory( BUILD_DOC doc ) +tde_conditional_add_subdirectory( BUILD_EYESAPPLET eyesapplet ) +tde_conditional_add_subdirectory( BUILD_FIFTEENAPPLET fifteenapplet ) +tde_conditional_add_subdirectory( BUILD_KMOON kmoon ) +tde_conditional_add_subdirectory( BUILD_KODO kodo ) +tde_conditional_add_subdirectory( BUILD_KTEATIME kteatime ) +tde_conditional_add_subdirectory( BUILD_KTUX ktux ) +tde_conditional_add_subdirectory( BUILD_KWEATHER kweather ) +tde_conditional_add_subdirectory( BUILD_KWORLDWATCH kworldwatch ) + + +##### write configure files ##################### + +configure_file( config.h.cmake config.h @ONLY ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 0000000..47e3d9a --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,30 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### check for gcc visibility support ######### +# FIXME +# This should check for [T]Qt3 visibility support + +if( WITH_GCC_VISIBILITY ) + if( NOT UNIX ) + tde_message_fatal(FATAL_ERROR "\ngcc visibility support was requested, but your system is not *NIX" ) + endif( NOT UNIX ) + set( __KDE_HAVE_GCC_VISIBILITY 1 ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") + set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden") +endif( WITH_GCC_VISIBILITY ) + + +tde_setup_architecture_flags( ) + +# required stuff +find_package( TQt ) +find_package( TDE ) diff --git a/amor/CMakeLists.txt b/amor/CMakeLists.txt new file mode 100644 index 0000000..750b0b9 --- /dev/null +++ b/amor/CMakeLists.txt @@ -0,0 +1,56 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( data ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### amor (executable) ######################### + +tde_add_executable( amor AUTOMOC + SOURCES amordialog.cpp amor.cpp amorwidget.cpp + main.cpp amoranim.cpp amorpm.cpp + amorbubble.cpp amorconfig.cpp amortips.cpp + AmorIface.skel + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### includes ################################## + +install( FILES AmorIface.h + DESTINATION ${INCLUDE_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( amor ) + + +##### other data ################################ + +install( FILES amor.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + diff --git a/amor/data/CMakeLists.txt b/amor/data/CMakeLists.txt new file mode 100644 index 0000000..76ac033 --- /dev/null +++ b/amor/data/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( pics ) + +##### other data ################################ + +install( FILES blobrc ghostrc eyesrc bonhommerc + nekorc pingurc wormrc tips-en billyrc bsdrc + tuxrc taorc + DESTINATION ${DATA_INSTALL_DIR}/amor +) + +tde_install_symlink( tips-en ${DATA_INSTALL_DIR}/amor/tips ) diff --git a/amor/data/pics/CMakeLists.txt b/amor/data/pics/CMakeLists.txt new file mode 100644 index 0000000..f9d1b6f --- /dev/null +++ b/amor/data/pics/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( animated ) +add_subdirectory( preview ) +add_subdirectory( static ) diff --git a/amor/data/pics/animated/CMakeLists.txt b/amor/data/pics/animated/CMakeLists.txt new file mode 100644 index 0000000..ab2ba78 --- /dev/null +++ b/amor/data/pics/animated/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( blob ) +add_subdirectory( bonhomme ) +add_subdirectory( eyes ) +add_subdirectory( ghost ) +add_subdirectory( neko ) +add_subdirectory( pingu ) +add_subdirectory( tao ) +add_subdirectory( worm ) diff --git a/amor/data/pics/animated/blob/CMakeLists.txt b/amor/data/pics/animated/blob/CMakeLists.txt new file mode 100644 index 0000000..a9e297e --- /dev/null +++ b/amor/data/pics/animated/blob/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES blob_b1.png blob_b2.png + blob_BeamDown1.png blob_BeamDown2.png + blob_BeamDown3.png blob_BeamDown4.png + blob_BeamDown5.png blob_BeamDown6.png + blob_BeamDown7.png blob_BeamDown8.png + blob_BeamDown9.png blob_BeamUp10.png + blob_BeamUp1.png blob_BeamUp2.png + blob_BeamUp3.png blob_BeamUp4.png + blob_BeamUp5.png blob_BeamUp6.png + blob_BeamUp7.png blob_BeamUp8.png + blob_BeamUp9.png blob_e1.png blob_ex1.png + blob_f1.png blob_f2.png blob_f3.png + blob_fire10.png blob_fire11.png blob_fire2.png + blob_fire3.png blob_fire4.png blob_fire5.png + blob_fire6.png blob_fire7.png blob_fire8.png + blob_fire9.png blob_g1.png blob_g2.png + blob_gl1.png blob_gl2.png blob_gl3.png + blob_h1.png blob_h2.png blob_h3.png + blob_jet1.png blob_jet2.png blob_jet3.png + blob_jet4.png blob_l_jet1.png blob_l_jet2.png + blob_l_jet3.png blob_l_jet4.png + blob_l_turn1.png blob_l_turn2.png + blob_l_turn3.png blob_l_turn4.png blob.png + blob_r135.png blob_r180.png blob_r225.png + blob_r270.png blob_r315.png blob_r45.png + blob_r90.png blob_r_turn1.png blob_r_turn2.png + blob_r_turn3.png blob_r_turn4.png blob_s1.png + blob_s2.png blob_s3.png blob_sl1.png + blob_sl2.png blob_sl3.png blob_sl4.png + blob_z1.png blob_z2.png blob_z3.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/blob +) + diff --git a/amor/data/pics/animated/bonhomme/CMakeLists.txt b/amor/data/pics/animated/bonhomme/CMakeLists.txt new file mode 100644 index 0000000..4efa66d --- /dev/null +++ b/amor/data/pics/animated/bonhomme/CMakeLists.txt @@ -0,0 +1,24 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES b1.png b1-r.png b2.png b2-r.png + b3.png b3-r.png b4.png b4-r.png bcol1.png + bcol2.png bdrib1.png bdrib2.png bdrib3.png + bdrib4.png bdrib5.png bdrib6.png bdrib7.png + bdrop.png b-f2.png b-f.png bgo1.png bgo2.png + bgo3.png bgo4.png bgo5.png bgo6.png bgo7.png + bh1.png bpof1.png bpof2.png bpof3.png bpof4.png + bpof5.png bpof6.png sa1.png sa2a.png sa2b.png + sa2c.png sa2.png salut1.png salut.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/bonhomme +) + diff --git a/amor/data/pics/animated/eyes/CMakeLists.txt b/amor/data/pics/animated/eyes/CMakeLists.txt new file mode 100644 index 0000000..034ebb3 --- /dev/null +++ b/amor/data/pics/animated/eyes/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES eye_1.png eye_2.png eye_b.png + eye_d.png eye_e.png eye_h1.png eye_h2.png + eye_h3.png eye_h4.png eye_l.png eye_m1.png + eye_m2.png eye_m3.png eye_m4.png eye_m5.png + eye_m6.png eye_m7.png eye_s1.png eye_s2.png + eye_s3.png eye_s4.png eye_u.png eye_z1.png + eye_z2.png eye_z3.png eye_z4.png eye_z5.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/eyes +) + diff --git a/amor/data/pics/animated/ghost/CMakeLists.txt b/amor/data/pics/animated/ghost/CMakeLists.txt new file mode 100644 index 0000000..f5d460e --- /dev/null +++ b/amor/data/pics/animated/ghost/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES ghost_1.png ghost_2.png + ghost_e.png ghost_m1.png ghost_m2.png + ghost_m3.png ghost_m4.png ghost_m5.png + ghost_m6.png ghost_m7.png ghost_z1.png + ghost_z2.png ghost_z3.png ghost_z4.png + ghost_z5.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/ghost +) + diff --git a/amor/data/pics/animated/neko/CMakeLists.txt b/amor/data/pics/animated/neko/CMakeLists.txt new file mode 100644 index 0000000..6f8cd2f --- /dev/null +++ b/amor/data/pics/animated/neko/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES claw1.png claw2.png jump1.png + jump2.png jump3.png jump4.png jumpl1.png + jumpl2.png jumpl3.png jumpl4.png lick2.png + lick.png run1.png run2.png run3.png run4.png + scratch1.png scratch2.png scratch3.png + scratch4.png sitleft.png sit.png sleep1.png + sleep2.png surprise.png tail.png yawn.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/neko +) + diff --git a/amor/data/pics/animated/pingu/CMakeLists.txt b/amor/data/pics/animated/pingu/CMakeLists.txt new file mode 100644 index 0000000..df47cf9 --- /dev/null +++ b/amor/data/pics/animated/pingu/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES bash_l10.png bash_l11.png + bash_l12.png bash_l1.png bash_l2.png + bash_l3.png bash_l4.png bash_l5.png bash_l6.png + bash_l7.png bash_l8.png bash_l9.png + bash_r10.png bash_r11.png bash_r12.png + bash_r1.png bash_r2.png bash_r3.png bash_r4.png + bash_r5.png bash_r6.png bash_r7.png bash_r8.png + bash_r9.png blocker1.png blocker2.png + blocker3.png blocker4.png blocker5.png + blocker6.png bomber10.png bomber11.png + bomber12.png bomber13.png bomber14.png + bomber15.png bomber16.png bomber1.png + bomber2.png bomber3.png bomber4.png bomber5.png + bomber6.png bomber7.png bomber8.png bomber9.png + digger10.png digger11.png digger12.png + digger13.png digger14.png digger1.png + digger2.png digger3.png digger4.png digger5.png + digger6.png digger7.png digger8.png digger9.png + faller1.png faller2.png faller3.png faller4.png + faller5.png faller6.png faller7.png faller8.png + floater1.png floater2.png floater3.png + floater4.png floater5.png floater6.png + floater7.png floater8.png tumble1.png + tumble2.png tumble3.png tumble4.png tumble5.png + tumble6.png tumble7.png tumble8.png walk_l1.png + walk_l2.png walk_l3.png walk_l4.png walk_l5.png + walk_l6.png walk_l7.png walk_l8.png walk_r1.png + walk_r2.png walk_r3.png walk_r4.png walk_r5.png + walk_r6.png walk_r7.png walk_r8.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/pingu +) + diff --git a/amor/data/pics/animated/tao/CMakeLists.txt b/amor/data/pics/animated/tao/CMakeLists.txt new file mode 100644 index 0000000..d9b65a1 --- /dev/null +++ b/amor/data/pics/animated/tao/CMakeLists.txt @@ -0,0 +1,26 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES yy105.png yy120.png yy135.png + yy150.png yy15.png yy165.png yy180.png + yy195.png yy-1.png yy210.png yy225.png + yy240.png yy255.png yy270.png yy285.png + yy-2.png yy300.png yy30.png yy315.png yy330.png + yy345.png yy-3.png yy45.png yy-4.png yy-5.png + yy60.png yy-6.png yy75.png yy-7.png yy-8.png + yy90.png yy-9.png yy.png yyx10.png yyx12.png + yyx14.png yyx16.png yyx18.png yyx20.png + yyx22.png yyx24.png yyx26.png yyx28.png + yyx30.png yyx6.png yyx8.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/tao +) + diff --git a/amor/data/pics/animated/worm/CMakeLists.txt b/amor/data/pics/animated/worm/CMakeLists.txt new file mode 100644 index 0000000..a8ad247 --- /dev/null +++ b/amor/data/pics/animated/worm/CMakeLists.txt @@ -0,0 +1,24 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES w-a1.png w-a2.png w-b1.png + w-b2.png w-be1.png w-be2.png w-be3.png + w-be4.png w-d1.png w-d2.png w-d3.png w-d4.png + w-d5.png w-dr1.png w-e1.png w-l1.png w-l2.png + w-l3.png w-ml0.png w-ml1.png w-ml2.png + w-ml3.png w-mr0.png w-mr1.png w-mr2.png + w-mr3.png w-s1.png w-s2.png w-s3.png w-u1.png + w-u2.png w-u3.png w-wl1.png w-wl2.png w-wr1.png + w-wr2.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/animated/worm +) + diff --git a/amor/data/pics/preview/CMakeLists.txt b/amor/data/pics/preview/CMakeLists.txt new file mode 100644 index 0000000..905376d --- /dev/null +++ b/amor/data/pics/preview/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES billy.png bonhomme.png ghost.png + neko.png tux.png blob.png bsd.png eyes.png + tao.png worm.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/preview +) + diff --git a/amor/data/pics/static/CMakeLists.txt b/amor/data/pics/static/CMakeLists.txt new file mode 100644 index 0000000..770c2bb --- /dev/null +++ b/amor/data/pics/static/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES billy.png bsd.png tux.png + DESTINATION + ${DATA_INSTALL_DIR}/amor/pics/static +) + diff --git a/config.h.cmake b/config.h.cmake new file mode 100644 index 0000000..18a92ea --- /dev/null +++ b/config.h.cmake @@ -0,0 +1,2 @@ +#cmakedefine VERSION "@VERSION@" + diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..dc6bb77 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_auto_add_subdirectories( ) diff --git a/doc/amor/CMakeLists.txt b/doc/amor/CMakeLists.txt new file mode 100644 index 0000000..66361cb --- /dev/null +++ b/doc/amor/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION amor ) + diff --git a/doc/kmoon/CMakeLists.txt b/doc/kmoon/CMakeLists.txt new file mode 100644 index 0000000..45de9ed --- /dev/null +++ b/doc/kmoon/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kmoon ) + diff --git a/doc/kodo/CMakeLists.txt b/doc/kodo/CMakeLists.txt new file mode 100644 index 0000000..fd5ed4d --- /dev/null +++ b/doc/kodo/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kodo ) + diff --git a/doc/kteatime/CMakeLists.txt b/doc/kteatime/CMakeLists.txt new file mode 100644 index 0000000..3ada1bc --- /dev/null +++ b/doc/kteatime/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kteatime ) + diff --git a/doc/kweather/CMakeLists.txt b/doc/kweather/CMakeLists.txt new file mode 100644 index 0000000..6fde0e3 --- /dev/null +++ b/doc/kweather/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kweather ) + diff --git a/doc/kworldclock/CMakeLists.txt b/doc/kworldclock/CMakeLists.txt new file mode 100644 index 0000000..4c39234 --- /dev/null +++ b/doc/kworldclock/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_create_handbook( DESTINATION kworldclock ) + diff --git a/eyesapplet/CMakeLists.txt b/eyesapplet/CMakeLists.txt new file mode 100644 index 0000000..0e6ae2c --- /dev/null +++ b/eyesapplet/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### eyes_panelapplet (kpart) ################## + +tde_add_kpart( eyes_panelapplet AUTOMOC + SOURCES eyes.cpp + LINK tdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES eyesapplet.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) + diff --git a/fifteenapplet/CMakeLists.txt b/fifteenapplet/CMakeLists.txt new file mode 100644 index 0000000..e477012 --- /dev/null +++ b/fifteenapplet/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### fifteen_panelapplet (kpart) ############### + +tde_add_kpart( fifteen_panelapplet AUTOMOC + SOURCES fifteenapplet.cpp qttableview.cpp + LINK tdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES kfifteenapplet.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) + diff --git a/kmoon/CMakeLists.txt b/kmoon/CMakeLists.txt new file mode 100644 index 0000000..01cb512 --- /dev/null +++ b/kmoon/CMakeLists.txt @@ -0,0 +1,47 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( pics ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kmoon_panelapplet (kpart) ################# + +tde_add_kpart( kmoon_panelapplet AUTOMOC + SOURCES kmoonapplet.cpp phases.cpp kmoondlg.cpp + kmoonwidget.cpp + LINK tdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( kmoon ) + + +##### other data ################################ + +install( FILES kmoonapplet.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) + diff --git a/kmoon/pics/CMakeLists.txt b/kmoon/pics/CMakeLists.txt new file mode 100644 index 0000000..9c0a5ce --- /dev/null +++ b/kmoon/pics/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES moon1.png moon10.png moon11.png + moon12.png moon13.png moon14.png moon15.png + moon16.png moon17.png moon18.png moon19.png + moon2.png moon20.png moon21.png moon22.png + moon23.png moon24.png moon25.png moon26.png + moon27.png moon28.png moon29.png moon3.png + moon4.png moon5.png moon6.png moon7.png + moon8.png moon9.png + DESTINATION ${DATA_INSTALL_DIR}/kmoon/pics +) + diff --git a/kodo/CMakeLists.txt b/kodo/CMakeLists.txt new file mode 100644 index 0000000..4caaf27 --- /dev/null +++ b/kodo/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kodo (executable) ######################### + +tde_add_executable( kodo AUTOMOC + SOURCES main.cpp kodometer.cpp kimagenumber.cpp + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( kodo ) + + +##### other data ################################ + +install( FILES numbers.png + DESTINATION ${DATA_INSTALL_DIR}/kodo +) + +install( FILES kodo.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + diff --git a/kteatime/CMakeLists.txt b/kteatime/CMakeLists.txt new file mode 100644 index 0000000..6f5f353 --- /dev/null +++ b/kteatime/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kteatime (executable) ##################### + +tde_add_executable( kteatime AUTOMOC + SOURCES main.cpp toplevel.cpp tealist.cpp + timeedit.cpp + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( kteatime ) + +tde_install_icons( + DESTINATION ${DATA_INSTALL_DIR}/kteatime/icons ) + +##### other data ################################ + +install( FILES eventsrc + DESTINATION ${DATA_INSTALL_DIR}/kteatime +) + +install( FILES kteatime.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + diff --git a/ktux/CMakeLists.txt b/ktux/CMakeLists.txt new file mode 100644 index 0000000..384c8d5 --- /dev/null +++ b/ktux/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( sprites ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### ktux (executable) ######################### + +tde_add_executable( ktux AUTOMOC + SOURCES spriteanim.cpp spritemisc.cpp + spritepm.cpp sprite.cpp + LINK kio-shared kscreensaver-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( ktux ) + + +##### other data ################################ + +install( FILES ktux.desktop + DESTINATION + ${APPS_INSTALL_DIR}/System/ScreenSavers +) + diff --git a/ktux/sprites/CMakeLists.txt b/ktux/sprites/CMakeLists.txt new file mode 100644 index 0000000..eb878ee --- /dev/null +++ b/ktux/sprites/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES anim0001.png anim0002.png + anim0003.png anim0004.png anim0005.png + anim0006.png anim0007.png anim0008.png + anim0009.png anim0010.png bg.png flare0001.png + flare0002.png spriterc star0001.png + star0002.png + DESTINATION ${DATA_INSTALL_DIR}/ktux/sprites +) + diff --git a/kweather/CMakeLists.txt b/kweather/CMakeLists.txt new file mode 100644 index 0000000..a63f788 --- /dev/null +++ b/kweather/CMakeLists.txt @@ -0,0 +1,139 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( graphics ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kweatherreport (tdeinit) ################## + +tde_add_tdeinit_executable( kweatherreport AUTOMOC + SOURCES reportmain.cpp weatherservice.stub + reportview.cpp + LINK tdeui-shared khtml-shared +) + + +##### kweatherservice (executable) ############## + +tde_add_executable( kweatherservice AUTOMOC + SOURCES main.cpp metar_parser.cpp + weatherlib.cpp weatherservice.cpp + weatherservice.skel stationdatabase.cpp + sun.cpp weatherservice.stub + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### sun_test (test) ########################### +# FIXME: add correct test targets support +# +# tde_add_executable( sun_test AUTOMOC +# SOURCES sun_test.cpp sun.cpp +# ) +# +# add_test( NAME sun_test-test +# COMMAND sun_test) +# +# +##### stationdatabase_test (test) ############### +# +# tde_add_executable( stationdatabase_test AUTOMOC +# SOURCES stationdatabase_test.cpp +# stationdatabase.cpp +# ) +# +# add_test( NAME stationdatabase_test-test +# COMMAND stationdatabase_test) +# +# +##### metar_parser_test (test) ################## +# +# tde_add_executable( metar_parser_test AUTOMOC +# SOURCES metar_parser_test.cpp metar_parser.cpp +# stationdatabase.cpp sun.cpp +# ) +# +# add_test( NAME metar_parser_test-test +# COMMAND metar_parser_test) +# + +##### weather_panelapplet (kpart) ############### + +tde_add_kpart( weather_panelapplet AUTOMOC + SOURCES reportview.cpp kweather.cpp + dockwidget.cpp weatherIface.skel + weatherservice.stub weatherbutton.cpp + LINK khtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_weather (kpart) ####################### + +tde_add_kpart( kcm_weather AUTOMOC + SOURCES kcmweather.cpp prefdialogdata.ui + weatherservice.stub + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kcm_weatherservice (kpart) ################ + +tde_add_kpart( kcm_weatherservice AUTOMOC + SOURCES kcmweatherservice.cpp + serviceconfigwidget.cpp serviceconfigdata.ui + weatherservice.stub + LINK tdeui-shared khtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( kweather ) + + +##### other data ################################ + +install( FILES weather_stations.desktop + DESTINATION ${DATA_INSTALL_DIR}/kweatherservice +) + +install( FILES stations.dat + DESTINATION ${DATA_INSTALL_DIR}/kweatherservice +) + +install( FILES kweather.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) + +install( + FILES + kweatherservice.desktop + kcmweather.desktop + kcmweatherservice.desktop + DESTINATION ${SERVICES_INSTALL_DIR} +) + diff --git a/kweather/graphics/CMakeLists.txt b/kweather/graphics/CMakeLists.txt new file mode 100644 index 0000000..c7d04bd --- /dev/null +++ b/kweather/graphics/CMakeLists.txt @@ -0,0 +1,26 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES overcast.png sunny.png dunno.png + cloudy1.png cloudy2.png cloudy3.png cloudy4.png + cloudy5.png fog.png hail.png light_rain.png + mist.png shower1.png shower2.png shower3.png + sleet.png snow1.png snow2.png snow3.png + snow4.png snow5.png tstorm1.png tstorm2.png + tstorm3.png cloudy1_night.png cloudy2_night.png + cloudy3_night.png cloudy4_night.png + fog_night.png mist_night.png shower1_night.png + shower2_night.png snow1_night.png + snow2_night.png snow3_night.png sunny_night.png + tstorm1_night.png tstorm2_night.png + DESTINATION ${DATA_INSTALL_DIR}/kweather +) + diff --git a/kweather/metar_parser.cpp b/kweather/metar_parser.cpp index b6715f0..b576f60 100644 --- a/kweather/metar_parser.cpp +++ b/kweather/metar_parser.cpp @@ -18,7 +18,9 @@ email : jratke@comcast.net * * ***************************************************************************/ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif // HAVE_CONFIG_H #include <tqdatetime.h> #include <kdebug.h> diff --git a/kweather/weatherlib.cpp b/kweather/weatherlib.cpp index 59a10dc..d8b93db 100644 --- a/kweather/weatherlib.cpp +++ b/kweather/weatherlib.cpp @@ -15,7 +15,10 @@ email : geiseri@msoe.edu * * ***************************************************************************/ +#ifdef HAVE_CONFIG_H #include "config.h" +#endif // HAVE_CONFIG_H + #include <tqfile.h> #include <tqdatetime.h> #include <tqtextstream.h> diff --git a/kworldwatch/CMakeLists.txt b/kworldwatch/CMakeLists.txt new file mode 100644 index 0000000..f8d4700 --- /dev/null +++ b/kworldwatch/CMakeLists.txt @@ -0,0 +1,78 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( maps ) +add_subdirectory( pics ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### ww (static) ############################### + +tde_add_library( ww STATIC_PIC AUTOMOC + SOURCES maploader.cpp mapwidget.cpp astro.c + sunclock.c about.ui cities.cpp zoneclock.cpp + flags.cpp flow.cpp clock.ui +) + + +##### kworldclock (executable) ################## + +tde_add_executable( kworldclock AUTOMOC + SOURCES main.cpp + LINK kio-shared ww-static + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### ww_panelapplet (kpart) #################### + +tde_add_kpart( ww_panelapplet AUTOMOC + SOURCES applet.cpp + LINK kio-shared ww-static + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( kworldclock ) + + +##### other data ################################ + +install( FILES kworldclock.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( FILES kdeworld.desktop + DESTINATION + ${DATA_INSTALL_DIR}/kdesktop/programs +) + +install( FILES zone.tab + DESTINATION ${DATA_INSTALL_DIR}/kworldclock +) + +install( FILES kwwapplet.desktop + DESTINATION ${DATA_INSTALL_DIR}/kicker/applets +) + diff --git a/kworldwatch/maps/CMakeLists.txt b/kworldwatch/maps/CMakeLists.txt new file mode 100644 index 0000000..6fcf3ba --- /dev/null +++ b/kworldwatch/maps/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( depths ) +add_subdirectory( flatworld ) diff --git a/kworldwatch/maps/depths/CMakeLists.txt b/kworldwatch/maps/depths/CMakeLists.txt new file mode 100644 index 0000000..44405bc --- /dev/null +++ b/kworldwatch/maps/depths/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES depths.desktop 400.jpg 800.jpg + DESTINATION + ${DATA_INSTALL_DIR}/kworldclock/maps/depths +) + diff --git a/kworldwatch/maps/flatworld/CMakeLists.txt b/kworldwatch/maps/flatworld/CMakeLists.txt new file mode 100644 index 0000000..25085a9 --- /dev/null +++ b/kworldwatch/maps/flatworld/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES flatworld.desktop 200.jpg 400.jpg + 800.jpg 1200.jpg 1600.jpg + DESTINATION + ${DATA_INSTALL_DIR}/kworldclock/maps/flatworld +) + diff --git a/kworldwatch/mapwidget.cpp b/kworldwatch/mapwidget.cpp index 93bca75..75141b3 100644 --- a/kworldwatch/mapwidget.cpp +++ b/kworldwatch/mapwidget.cpp @@ -25,7 +25,10 @@ /* ** Bug reports and questions can be sent to kde-devel@kde.org */ + +#ifdef HAVE_CONFIG_H #include "config.h" +#endif // HAVE_CONFIG_H #include <time.h> #include <stdlib.h> diff --git a/kworldwatch/pics/CMakeLists.txt b/kworldwatch/pics/CMakeLists.txt new file mode 100644 index 0000000..8400c1f --- /dev/null +++ b/kworldwatch/pics/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2012 Golubev Alexander +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES flag.png flag-mask.xpm + flag-red.png flag-blue.png flag-green.png + DESTINATION + ${DATA_INSTALL_DIR}/kworldclock/pics +) + diff --git a/kworldwatch/zoneclock.cpp b/kworldwatch/zoneclock.cpp index 5e50100..5a60394 100644 --- a/kworldwatch/zoneclock.cpp +++ b/kworldwatch/zoneclock.cpp @@ -25,7 +25,10 @@ /* ** Bug reports and questions can be sent to kde-devel@kde.org */ + +#ifdef HAVE_CONFIG_H #include "config.h" +#endif // HAVE_CONFIG_H #include <stdlib.h> #include <time.h> |