summaryrefslogtreecommitdiffstats
path: root/kpacman
diff options
context:
space:
mode:
Diffstat (limited to 'kpacman')
-rw-r--r--kpacman/CMakeLists.txt65
-rw-r--r--kpacman/keys.cpp2
-rw-r--r--kpacman/kpacman.cpp2
-rw-r--r--kpacman/kpacman.desktop4
-rw-r--r--kpacman/kpacmanview.cpp2
-rw-r--r--kpacman/referee.cpp2
-rw-r--r--kpacman/score.cpp2
-rw-r--r--kpacman/status.cpp2
8 files changed, 79 insertions, 2 deletions
diff --git a/kpacman/CMakeLists.txt b/kpacman/CMakeLists.txt
new file mode 100644
index 0000000..985e259
--- /dev/null
+++ b/kpacman/CMakeLists.txt
@@ -0,0 +1,65 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${TDEGAMES_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+ ${TDEGAMES_LIBRARY_DIRS}
+)
+
+add_definitions( -fpermissive )
+
+
+##### kpacman (executable)
+
+tde_add_executable( ${PROJECT_NAME} AUTOMOC
+
+ SOURCES
+ kpacmanview.cpp
+ referee.cpp
+ status.cpp
+ painter.cpp
+ score.cpp
+ pacman.cpp
+ monster.cpp
+ keys.cpp
+ fruit.cpp
+ energizer.cpp
+ board.cpp
+ bitfont.cpp
+ kpacman.cpp
+ main.cpp
+ LINK
+ tdeui-shared
+ tdecore-shared
+ ${TDEGAMES_LIBRARIES}
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES kpacmanui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
+)
+
+install(
+ FILES kpacmanrc
+ DESTINATION ${CONFIG_INSTALL_DIR}
+)
+
+
+tde_create_translated_desktop( ${PROJECT_NAME}.desktop )
+
+
+##### icons
+
+tde_install_icons( ${PROJECT_NAME} )
diff --git a/kpacman/keys.cpp b/kpacman/keys.cpp
index 5ec37c8..d26c263 100644
--- a/kpacman/keys.cpp
+++ b/kpacman/keys.cpp
@@ -188,3 +188,5 @@ void PKeys::ok()
accept();
}
+
+#include "keys.moc"
diff --git a/kpacman/kpacman.cpp b/kpacman/kpacman.cpp
index 7ae55e2..9083728 100644
--- a/kpacman/kpacman.cpp
+++ b/kpacman/kpacman.cpp
@@ -472,3 +472,5 @@ void KpacmanApp::slotStatusMsg(const TQString &text)
statusBar()->clear();
statusBar()->changeItem(text, ID_STATUS_MSG);
}
+
+#include "kpacman.moc"
diff --git a/kpacman/kpacman.desktop b/kpacman/kpacman.desktop
index 97c88c3..72503ff 100644
--- a/kpacman/kpacman.desktop
+++ b/kpacman/kpacman.desktop
@@ -1,4 +1,3 @@
-# KDE Config File
[Desktop Entry]
Type=Application
Exec=kpacman -caption "%c" %i %m
@@ -7,6 +6,7 @@ MiniIcon=kpacman.png
X-DocPath=kpacman/index.html
Comment=
Comment[de]=
-Terminal=0
+Terminal=false
Name=Kpacman
Name[de]=Kpacman
+Categories=Qt;TDE;Game;ArcadeGame;
diff --git a/kpacman/kpacmanview.cpp b/kpacman/kpacmanview.cpp
index e2a48da..cf89358 100644
--- a/kpacman/kpacmanview.cpp
+++ b/kpacman/kpacmanview.cpp
@@ -159,3 +159,5 @@ void KpacmanView::resizeEvent( TQResizeEvent * )
score->setGeometry(0, 0, referee->width(), bitfont->height()*3+referee->height()+status->height());
score->setBackgroundColor(BLACK);
}
+
+#include "kpacmanview.moc"
diff --git a/kpacman/referee.cpp b/kpacman/referee.cpp
index dbdeca7..6051365 100644
--- a/kpacman/referee.cpp
+++ b/kpacman/referee.cpp
@@ -1389,3 +1389,5 @@ void Referee::focusOutEvent(TQFocusEvent *)
emit focusedGamePause();
}
}
+
+#include "referee.moc"
diff --git a/kpacman/score.cpp b/kpacman/score.cpp
index 9706966..c4f86b8 100644
--- a/kpacman/score.cpp
+++ b/kpacman/score.cpp
@@ -624,3 +624,5 @@ TQFileInfo Score::locateHighscoreFilePath()
return privateHighscoreFileInfo;
}
+
+#include "score.moc"
diff --git a/kpacman/status.cpp b/kpacman/status.cpp
index 7ec7ebb..65fb7f0 100644
--- a/kpacman/status.cpp
+++ b/kpacman/status.cpp
@@ -350,3 +350,5 @@ void Status::setLevel(int Level)
actualLevel = (level > (int) levelPix->count()) ? (int) levelPix->count() : level;
repaint();
}
+
+#include "status.moc"