From d4a1613e9f119ae68c695ab60f8d9856d1a54a52 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Thu, 27 Jun 2019 16:35:25 +0200 Subject: Conversion to the cmake building system. Add includes to UI files to resolve FTBFS. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy Signed-off-by: Slávek Banko --- kverbos/CMakeLists.txt | 1 + kverbos/kverbos/CMakeLists.txt | 70 ++++++++++++++++++++++++++++++++++ kverbos/kverbos/data/CMakeLists.txt | 1 + kverbos/kverbos/data/de/CMakeLists.txt | 4 ++ kverbos/kverbos/data/en/CMakeLists.txt | 4 ++ kverbos/kverbos/icons/CMakeLists.txt | 1 + 6 files changed, 81 insertions(+) create mode 100644 kverbos/CMakeLists.txt create mode 100644 kverbos/kverbos/CMakeLists.txt create mode 100644 kverbos/kverbos/data/CMakeLists.txt create mode 100644 kverbos/kverbos/data/de/CMakeLists.txt create mode 100644 kverbos/kverbos/data/en/CMakeLists.txt create mode 100644 kverbos/kverbos/icons/CMakeLists.txt (limited to 'kverbos') diff --git a/kverbos/CMakeLists.txt b/kverbos/CMakeLists.txt new file mode 100644 index 00000000..087bdf6b --- /dev/null +++ b/kverbos/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory( kverbos ) diff --git a/kverbos/kverbos/CMakeLists.txt b/kverbos/kverbos/CMakeLists.txt new file mode 100644 index 00000000..84caaa76 --- /dev/null +++ b/kverbos/kverbos/CMakeLists.txt @@ -0,0 +1,70 @@ +add_subdirectory( icons ) +add_subdirectory( data ) + +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} +) + + +##### kverbos (executable) + +tde_add_executable( kverbos AUTOMOC + + SOURCES + qresult.ui + qerfassen.ui + qverbedit.ui + qverbosoptions.ui + qlernen.ui + kfeedercontrol.cpp + kresult.cpp + verbspanish.cpp + kverbosuser.cpp + kerfassen.cpp + kverbedit.cpp + kverbosoptions.cpp + kstartuplogo.cpp + kverbosview.cpp + kverbosdoc.cpp + kverbos.cpp + main.cpp + prefs.kcfgc + LINK + tdecore-shared + tdeui-shared + tdeio-shared + + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### other data + +install( + FILES startuplogo.png + DESTINATION ${DATA_INSTALL_DIR}/kverbos/pics +) + +install( + FILES kverbosui.rc + DESTINATION ${DATA_INSTALL_DIR}/kverbos +) + +install( + FILES kverbos.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} +) + +install( + FILES kverbos.kcfg + DESTINATION ${KCFG_INSTALL_DIR} +) diff --git a/kverbos/kverbos/data/CMakeLists.txt b/kverbos/kverbos/data/CMakeLists.txt new file mode 100644 index 00000000..6d0aa9f3 --- /dev/null +++ b/kverbos/kverbos/data/CMakeLists.txt @@ -0,0 +1 @@ +tde_auto_add_subdirectories( ) diff --git a/kverbos/kverbos/data/de/CMakeLists.txt b/kverbos/kverbos/data/de/CMakeLists.txt new file mode 100644 index 00000000..c16790e7 --- /dev/null +++ b/kverbos/kverbos/data/de/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + FILES verbos.verbos + DESTINATION ${DATA_INSTALL_DIR}/kverbos/data/de +) diff --git a/kverbos/kverbos/data/en/CMakeLists.txt b/kverbos/kverbos/data/en/CMakeLists.txt new file mode 100644 index 00000000..ee194c9c --- /dev/null +++ b/kverbos/kverbos/data/en/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + FILES verbos.verbos + DESTINATION ${DATA_INSTALL_DIR}/kverbos/data/en +) diff --git a/kverbos/kverbos/icons/CMakeLists.txt b/kverbos/kverbos/icons/CMakeLists.txt new file mode 100644 index 00000000..63f765b3 --- /dev/null +++ b/kverbos/kverbos/icons/CMakeLists.txt @@ -0,0 +1 @@ +tde_install_icons( ) -- cgit v1.2.1