diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2016-02-25 06:23:55 +0300 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-03-14 23:04:46 +0100 |
commit | 22eaaf46994712a7ea19be99d49c5ceb889470bd (patch) | |
tree | 6813293435ece498f1d90a99adfa5e9a49c875fe /kasteroids | |
parent | fa5d2dca53e1046fe38ac7cf0210d45ad5cc5107 (diff) | |
download | tdegames-22eaaf46994712a7ea19be99d49c5ceb889470bd.tar.gz tdegames-22eaaf46994712a7ea19be99d49c5ceb889470bd.zip |
Initial cmake conversion
(cherry picked from commit c70db62d3671e524d23ac974d296eb218159b000)
Diffstat (limited to 'kasteroids')
-rw-r--r-- | kasteroids/CMakeLists.txt | 50 | ||||
-rw-r--r-- | kasteroids/sounds/CMakeLists.txt | 5 | ||||
-rw-r--r-- | kasteroids/sprites/CMakeLists.txt | 22 | ||||
-rw-r--r-- | kasteroids/sprites/bits/CMakeLists.txt | 18 | ||||
-rw-r--r-- | kasteroids/sprites/exhaust/CMakeLists.txt | 3 | ||||
-rw-r--r-- | kasteroids/sprites/missile/CMakeLists.txt | 3 | ||||
-rw-r--r-- | kasteroids/sprites/powerups/CMakeLists.txt | 7 | ||||
-rw-r--r-- | kasteroids/sprites/rock1/CMakeLists.txt | 34 | ||||
-rw-r--r-- | kasteroids/sprites/rock2/CMakeLists.txt | 34 | ||||
-rw-r--r-- | kasteroids/sprites/rock3/CMakeLists.txt | 34 | ||||
-rw-r--r-- | kasteroids/sprites/shield/CMakeLists.txt | 9 | ||||
-rw-r--r-- | kasteroids/sprites/ship/CMakeLists.txt | 66 |
12 files changed, 285 insertions, 0 deletions
diff --git a/kasteroids/CMakeLists.txt b/kasteroids/CMakeLists.txt new file mode 100644 index 00000000..ecdbdbb5 --- /dev/null +++ b/kasteroids/CMakeLists.txt @@ -0,0 +1,50 @@ +# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer + +add_subdirectory( sprites ) +add_subdirectory( sounds ) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libtdegames + ${CMAKE_SOURCE_DIR}/libtdegames/highscore + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kasteroids (executable) ################### + +tde_add_executable( kasteroids AUTOMOC + SOURCES main.cpp view.cpp ledmeter.cpp toplevel.cpp settings.kcfgc + LINK tdecore-shared tdeui-shared tdeio-shared tdegames-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons ##################################### + +tde_install_icons( kasteroids ) + + +##### other data ################################ +install( FILES kasteroids.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( FILES kasteroidsui.rc + DESTINATION ${DATA_INSTALL_DIR}/kasteroids +) + +install( FILES kasteroids.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) + +install( FILES bg.png + DESTINATION ${DATA_INSTALL_DIR}/kasteroids/sprites +) diff --git a/kasteroids/sounds/CMakeLists.txt b/kasteroids/sounds/CMakeLists.txt new file mode 100644 index 00000000..c0a7d768 --- /dev/null +++ b/kasteroids/sounds/CMakeLists.txt @@ -0,0 +1,5 @@ +# This file is genereted by trinity-automake-cmake-convert script by Fat-Zer + +install( FILES Explosion.wav + DESTINATION ${DATA_INSTALL_DIR}/kasteroids/sounds +) diff --git a/kasteroids/sprites/CMakeLists.txt b/kasteroids/sprites/CMakeLists.txt new file mode 100644 index 00000000..e0a2fc60 --- /dev/null +++ b/kasteroids/sprites/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2016 Alexander Golubev +# fatzer2 (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +set ( KASTEROID_SPRITES_DIR ${DATA_INSTALL_DIR}/kasteroids/sprites ) + +add_subdirectory( bits ) +add_subdirectory( missile ) +add_subdirectory( rock1 ) +add_subdirectory( rock2 ) +add_subdirectory( rock3 ) +add_subdirectory( ship ) +add_subdirectory( shield ) +add_subdirectory( powerups ) +add_subdirectory( exhaust ) diff --git a/kasteroids/sprites/bits/CMakeLists.txt b/kasteroids/sprites/bits/CMakeLists.txt new file mode 100644 index 00000000..61df8b30 --- /dev/null +++ b/kasteroids/sprites/bits/CMakeLists.txt @@ -0,0 +1,18 @@ +install (FILES +bits0000.png +bits0001.png +bits0002.png +bits0003.png +bits0004.png +bits0005.png +bits0006.png +bits0007.png +bits0008.png +bits0009.png +bits0010.png +bits0011.png +bits0012.png +bits0013.png +bits0014.png +bits0015.png +DESTINATION ${KASTEROID_SPRITES_DIR}/bits ) diff --git a/kasteroids/sprites/exhaust/CMakeLists.txt b/kasteroids/sprites/exhaust/CMakeLists.txt new file mode 100644 index 00000000..fabe134e --- /dev/null +++ b/kasteroids/sprites/exhaust/CMakeLists.txt @@ -0,0 +1,3 @@ +install (FILES +exhaust.png +DESTINATION ${KASTEROID_SPRITES_DIR}/exhaust ) diff --git a/kasteroids/sprites/missile/CMakeLists.txt b/kasteroids/sprites/missile/CMakeLists.txt new file mode 100644 index 00000000..5791fcef --- /dev/null +++ b/kasteroids/sprites/missile/CMakeLists.txt @@ -0,0 +1,3 @@ +install (FILES +missile.png +DESTINATION ${KASTEROID_SPRITES_DIR}/missile ) diff --git a/kasteroids/sprites/powerups/CMakeLists.txt b/kasteroids/sprites/powerups/CMakeLists.txt new file mode 100644 index 00000000..b8acaaa9 --- /dev/null +++ b/kasteroids/sprites/powerups/CMakeLists.txt @@ -0,0 +1,7 @@ +install (FILES +brake.png +energy.png +shield.png +shoot.png +teleport.png +DESTINATION ${KASTEROID_SPRITES_DIR}/powerups ) diff --git a/kasteroids/sprites/rock1/CMakeLists.txt b/kasteroids/sprites/rock1/CMakeLists.txt new file mode 100644 index 00000000..3b482894 --- /dev/null +++ b/kasteroids/sprites/rock1/CMakeLists.txt @@ -0,0 +1,34 @@ +install (FILES +rock10000.png +rock10001.png +rock10002.png +rock10003.png +rock10004.png +rock10005.png +rock10006.png +rock10007.png +rock10008.png +rock10009.png +rock10010.png +rock10011.png +rock10012.png +rock10013.png +rock10014.png +rock10015.png +rock10016.png +rock10017.png +rock10018.png +rock10019.png +rock10020.png +rock10021.png +rock10022.png +rock10023.png +rock10024.png +rock10025.png +rock10026.png +rock10027.png +rock10028.png +rock10029.png +rock10030.png +rock10031.png +DESTINATION ${KASTEROID_SPRITES_DIR}/rock1 ) diff --git a/kasteroids/sprites/rock2/CMakeLists.txt b/kasteroids/sprites/rock2/CMakeLists.txt new file mode 100644 index 00000000..0667bbf2 --- /dev/null +++ b/kasteroids/sprites/rock2/CMakeLists.txt @@ -0,0 +1,34 @@ +install (FILES +rock20000.png +rock20001.png +rock20002.png +rock20003.png +rock20004.png +rock20005.png +rock20006.png +rock20007.png +rock20008.png +rock20009.png +rock20010.png +rock20011.png +rock20012.png +rock20013.png +rock20014.png +rock20015.png +rock20016.png +rock20017.png +rock20018.png +rock20019.png +rock20020.png +rock20021.png +rock20022.png +rock20023.png +rock20024.png +rock20025.png +rock20026.png +rock20027.png +rock20028.png +rock20029.png +rock20030.png +rock20031.png +DESTINATION ${KASTEROID_SPRITES_DIR}/rock2 ) diff --git a/kasteroids/sprites/rock3/CMakeLists.txt b/kasteroids/sprites/rock3/CMakeLists.txt new file mode 100644 index 00000000..213c6fe5 --- /dev/null +++ b/kasteroids/sprites/rock3/CMakeLists.txt @@ -0,0 +1,34 @@ +install (FILES +rock30000.png +rock30001.png +rock30002.png +rock30003.png +rock30004.png +rock30005.png +rock30006.png +rock30007.png +rock30008.png +rock30009.png +rock30010.png +rock30011.png +rock30012.png +rock30013.png +rock30014.png +rock30015.png +rock30016.png +rock30017.png +rock30018.png +rock30019.png +rock30020.png +rock30021.png +rock30022.png +rock30023.png +rock30024.png +rock30025.png +rock30026.png +rock30027.png +rock30028.png +rock30029.png +rock30030.png +rock30031.png +DESTINATION ${KASTEROID_SPRITES_DIR}/rock3 ) diff --git a/kasteroids/sprites/shield/CMakeLists.txt b/kasteroids/sprites/shield/CMakeLists.txt new file mode 100644 index 00000000..23b02165 --- /dev/null +++ b/kasteroids/sprites/shield/CMakeLists.txt @@ -0,0 +1,9 @@ +install (FILES +shield0000.png +shield0001.png +shield0002.png +shield0003.png +shield0004.png +shield0005.png +shield0006.png +DESTINATION ${KASTEROID_SPRITES_DIR}/shield ) diff --git a/kasteroids/sprites/ship/CMakeLists.txt b/kasteroids/sprites/ship/CMakeLists.txt new file mode 100644 index 00000000..81153bc5 --- /dev/null +++ b/kasteroids/sprites/ship/CMakeLists.txt @@ -0,0 +1,66 @@ +install (FILES +ship0000.png +ship0001.png +ship0002.png +ship0003.png +ship0004.png +ship0005.png +ship0006.png +ship0007.png +ship0008.png +ship0009.png +ship0010.png +ship0011.png +ship0012.png +ship0013.png +ship0014.png +ship0015.png +ship0016.png +ship0017.png +ship0018.png +ship0019.png +ship0020.png +ship0021.png +ship0022.png +ship0023.png +ship0024.png +ship0025.png +ship0026.png +ship0027.png +ship0028.png +ship0029.png +ship0030.png +ship0031.png +ship0032.png +ship0033.png +ship0034.png +ship0035.png +ship0036.png +ship0037.png +ship0038.png +ship0039.png +ship0040.png +ship0041.png +ship0042.png +ship0043.png +ship0044.png +ship0045.png +ship0046.png +ship0047.png +ship0048.png +ship0049.png +ship0050.png +ship0051.png +ship0052.png +ship0053.png +ship0054.png +ship0055.png +ship0056.png +ship0057.png +ship0058.png +ship0059.png +ship0060.png +ship0061.png +ship0062.png +ship0063.png +DESTINATION ${KASTEROID_SPRITES_DIR}/ship ) |