diff options
author | gregory guy <g-gregory@gmx.fr> | 2019-06-27 16:35:25 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-06-28 13:45:47 +0200 |
commit | aca01d5a8b7d3de53fa34696e18c91db720a5ab6 (patch) | |
tree | 6b9b83c599cc5db58df8041ca5cf812e00bbd25e /kanagram/src | |
parent | 88af19c041ad4f1139f6f0a35cd1a4fe2018425f (diff) | |
download | tdeedu-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 'kanagram/src')
-rw-r--r-- | kanagram/src/CMakeLists.txt | 68 | ||||
-rw-r--r-- | kanagram/src/leitnersystemview.cpp | 2 |
2 files changed, 69 insertions, 1 deletions
diff --git a/kanagram/src/CMakeLists.txt b/kanagram/src/CMakeLists.txt new file mode 100644 index 00000000..18ff7c85 --- /dev/null +++ b/kanagram/src/CMakeLists.txt @@ -0,0 +1,68 @@ +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} +) + +##### kanagram (executable) + +tde_add_executable( kanagram AUTOMOC + + SOURCES + mainsettingswidget.ui + vocabsettingswidget.ui + vocabeditwidget.ui + newstuffwidget.ui + main.cpp + kanagram.cpp + kanagramgame.cpp + fontutils.cpp + mainsettings.cpp + vocabsettings.cpp + vocabedit.cpp + keduvocdocument.cpp + keduvocexpression.cpp + keduvockvtmlreader.cpp + keduvockvtmlwriter.cpp + leitnerbox.cpp + leitnersystem.cpp + multiplechoice.cpp + grammarmanager.cpp + leitnersystemview.cpp + newstuffdialog.cpp + newstuff.cpp + kanagramsettings.kcfgc + LINK + tdecore-shared + tdeui-shared + tdeio-shared + tdenewstuff-shared + artskde-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### icons + +tde_install_icons( ) + + +##### other data + +install( + FILES kanagram.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES kanagram.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) diff --git a/kanagram/src/leitnersystemview.cpp b/kanagram/src/leitnersystemview.cpp index b2d757d8..dbcbfbcc 100644 --- a/kanagram/src/leitnersystemview.cpp +++ b/kanagram/src/leitnersystemview.cpp @@ -212,5 +212,5 @@ void LeitnerSystemView::mousePressEvent(TQMouseEvent* e) updateContents(); } } - +#include "leitnersystemview.moc" |