summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tqt3integration/CMakeLists.txt10
-rw-r--r--tqt3integration/ConfigureChecks.cmake20
-rw-r--r--tqt3integration/libtqtkde/CMakeLists.txt2
-rw-r--r--tqt3integration/utils/tqt/in/tqtkdeintegration_x11_0.cpp.cmake2
4 files changed, 31 insertions, 3 deletions
diff --git a/tqt3integration/CMakeLists.txt b/tqt3integration/CMakeLists.txt
index 07c10e17e..4ecacf158 100644
--- a/tqt3integration/CMakeLists.txt
+++ b/tqt3integration/CMakeLists.txt
@@ -9,6 +9,14 @@
#
#################################################
+
+##### configure checks ##########################
+
+include( ConfigureChecks.cmake )
+
+
+##### subdirectories ############################
+
add_subdirectory( libtqtkde )
add_subdirectory( module )
-add_subdirectory( utils ) \ No newline at end of file
+add_subdirectory( utils )
diff --git a/tqt3integration/ConfigureChecks.cmake b/tqt3integration/ConfigureChecks.cmake
new file mode 100644
index 000000000..9347391d4
--- /dev/null
+++ b/tqt3integration/ConfigureChecks.cmake
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2019 Slávek Banko
+# slavek (DOT) banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+
+##### check for tqt plugins dir #################
+
+execute_process(
+ COMMAND ${PKG_CONFIG_EXECUTABLE}
+ tqt-mt --variable=pluginsdir
+ OUTPUT_VARIABLE TQT_PLUGINS_DIR
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+)
diff --git a/tqt3integration/libtqtkde/CMakeLists.txt b/tqt3integration/libtqtkde/CMakeLists.txt
index 9c4c5318a..dbfb65ef5 100644
--- a/tqt3integration/libtqtkde/CMakeLists.txt
+++ b/tqt3integration/libtqtkde/CMakeLists.txt
@@ -30,5 +30,5 @@ tde_add_library( tqtkde SHARED AUTOMOC
VERSION 0.0.0
LINK tdeui-shared
DEPENDENCIES generate_tqt3_bindings
- DESTINATION "${PLUGIN_INSTALL_DIR}/plugins/integration/"
+ DESTINATION "${TQT_PLUGINS_DIR}/integration/"
)
diff --git a/tqt3integration/utils/tqt/in/tqtkdeintegration_x11_0.cpp.cmake b/tqt3integration/utils/tqt/in/tqtkdeintegration_x11_0.cpp.cmake
index b0d5fd517..bc6d9fda6 100644
--- a/tqt3integration/utils/tqt/in/tqtkdeintegration_x11_0.cpp.cmake
+++ b/tqt3integration/utils/tqt/in/tqtkdeintegration_x11_0.cpp.cmake
@@ -1 +1 @@
-#define TQTKDELIBDIR @PLUGIN_INSTALL_DIR@/plugins/integration
+#define TQTKDELIBDIR @TQT_PLUGINS_DIR@/integration