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-28 13:45:47 +0200
commitaca01d5a8b7d3de53fa34696e18c91db720a5ab6 (patch)
tree6b9b83c599cc5db58df8041ca5cf812e00bbd25e /kpercentage
parent88af19c041ad4f1139f6f0a35cd1a4fe2018425f (diff)
downloadtdeedu-aca01d5a8b7d3de53fa34696e18c91db720a5ab6.tar.gz
tdeedu-aca01d5a8b7d3de53fa34696e18c91db720a5ab6.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> (cherry picked from commit d4a1613e9f119ae68c695ab60f8d9856d1a54a52)
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
+)