summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-01-31 00:40:32 +0100
committerSlávek Banko <[email protected]>2019-01-31 00:40:32 +0100
commit3c9bcf21340c5923a46dff2baad419ef8865eb69 (patch)
tree67ec2050144fe0c0446998e9e3b071d42470aa87 /CMakeLists.txt
parentebf0115af1c52612e02fd8908b4240501bd34c60 (diff)
downloadtdelibs-3c9bcf21340c5923a46dff2baad419ef8865eb69.tar.gz
tdelibs-3c9bcf21340c5923a46dff2baad419ef8865eb69.zip
Use a common test for dbus detection and paths configuration.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt27
1 files changed, 2 insertions, 25 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 33d5357cc..60c6a60a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1121,33 +1121,10 @@ if( WITH_PCRE )
endif( )
-##### set DBUS file locations ##################
+##### check for dbus and set files location #####
-if( NOT DEFINED DBUS_SYSTEM_CONF_DIRECTORY )
- set (DBUS_SYSTEM_CONF_DIRECTORY "/etc/dbus-1/system.d/" )
- message( STATUS "Using " ${DBUS_SYSTEM_CONF_DIRECTORY} " for DBUS configuration files" )
-endif( NOT DEFINED DBUS_SYSTEM_CONF_DIRECTORY )
+tde_setup_dbus( dbus-1-tqt )
-if( NOT DEFINED DBUS_SERVICE_DIRECTORY )
- set (DBUS_SERVICE_DIRECTORY "/usr/share/dbus-1/system-services/" )
- message( STATUS "Using " ${DBUS_SERVICE_DIRECTORY} " for DBUS service files" )
-endif( NOT DEFINED DBUS_SERVICE_DIRECTORY )
-
-
-##### check for dbus-1 ###########################
-pkg_search_module( DBUS dbus-1 )
-if( NOT DBUS_FOUND )
- tde_message_fatal( "dbus-1 are required, but not found on your system" )
-endif( )
-
-
-##### check for dbus-1-tqt ###########################
-pkg_search_module( DBUS_TQT dbus-1-tqt )
-if( DBUS_TQT_FOUND )
- find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 )
-else()
- tde_message_fatal( "dbus-1-tqt are required, but not found on your system" )
-endif( )
list( APPEND TDECORE_LIBRARY_DIRS ${DBUS_TQT_LIBRARY_DIRS} )