summaryrefslogtreecommitdiffstats
path: root/kpercentage
diff options
context:
space:
mode:
authorgregory guy <g-gregory@gmx.fr>2019-06-27 16:35:25 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-06-27 16:35:25 +0200
commitd4a1613e9f119ae68c695ab60f8d9856d1a54a52 (patch)
tree6de888ef76667e28c81832dc104c19b158859b9b /kpercentage
parent9fb4e1ccde0b89b413bfdc8ae62f8178ecad5483 (diff)
downloadtdeedu-d4a1613e9f119ae68c695ab60f8d9856d1a54a52.tar.gz
tdeedu-d4a1613e9f119ae68c695ab60f8d9856d1a54a52.zip
Conversion to the cmake building system.
Add includes to UI files to resolve FTBFS. Signed-off-by: gregory guy <g-gregory@gmx.fr> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kpercentage')
-rw-r--r--kpercentage/CMakeLists.txt1
-rw-r--r--kpercentage/kpercentage/CMakeLists.txt48
-rw-r--r--kpercentage/kpercentage/icons/CMakeLists.txt5
-rw-r--r--kpercentage/kpercentage/icons/actions/CMakeLists.txt1
-rw-r--r--kpercentage/kpercentage/pics/CMakeLists.txt11
5 files changed, 66 insertions, 0 deletions
diff --git a/kpercentage/CMakeLists.txt b/kpercentage/CMakeLists.txt
new file mode 100644
index 00000000..476754bc
--- /dev/null
+++ b/kpercentage/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory( kpercentage )
diff --git a/kpercentage/kpercentage/CMakeLists.txt b/kpercentage/kpercentage/CMakeLists.txt
new file mode 100644
index 00000000..79a57f3f
--- /dev/null
+++ b/kpercentage/kpercentage/CMakeLists.txt
@@ -0,0 +1,48 @@
+add_subdirectory( icons )
+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}
+ ${TDE_LIB_DIR}
+)
+
+
+##### kpercentage (executable)
+
+tde_add_executable( kpercentage AUTOMOC
+
+ SOURCES
+ kanimation.cpp
+ kanswer.cpp
+ kpercentmain.cpp
+ kpercentage.cpp
+ ksplashscreen.cpp
+ main.cpp
+ LINK
+ tdecore-shared
+ tdeui-shared
+ tdeio-shared
+
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### other data
+
+install(
+ FILES kpercentage.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR}
+)
+
+install(
+ FILES right.txt wrong.txt
+ DESTINATION ${DATA_INSTALL_DIR}/kpercentage
+)
diff --git a/kpercentage/kpercentage/icons/CMakeLists.txt b/kpercentage/kpercentage/icons/CMakeLists.txt
new file mode 100644
index 00000000..54771918
--- /dev/null
+++ b/kpercentage/kpercentage/icons/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_subdirectory( actions )
+
+##### icons
+
+tde_install_icons( )
diff --git a/kpercentage/kpercentage/icons/actions/CMakeLists.txt b/kpercentage/kpercentage/icons/actions/CMakeLists.txt
new file mode 100644
index 00000000..160df70d
--- /dev/null
+++ b/kpercentage/kpercentage/icons/actions/CMakeLists.txt
@@ -0,0 +1 @@
+tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kpercentage/icons )
diff --git a/kpercentage/kpercentage/pics/CMakeLists.txt b/kpercentage/kpercentage/pics/CMakeLists.txt
new file mode 100644
index 00000000..2b3aea4f
--- /dev/null
+++ b/kpercentage/kpercentage/pics/CMakeLists.txt
@@ -0,0 +1,11 @@
+file( GLOB _pics RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png )
+
+install(
+ FILES ${_pics}
+ DESTINATION ${DATA_INSTALL_DIR}/kpercentage/pics
+)
+
+install(
+ FILES right.story wrong.story
+ DESTINATION ${DATA_INSTALL_DIR}/kpercentage/story
+)