summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-22 20:48:13 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-22 20:48:13 +0000
commit644a960605d4a23b766076bde2bc05e731c447ae (patch)
treeb25cc5a264954cba6aec8a1b9e3f949375b41a32 /ConfigureChecks.cmake
parent73cc29bc4e6ae64b39c59211cc105383cb9e4b96 (diff)
downloadtdebase-644a960605d4a23b766076bde2bc05e731c447ae.tar.gz
tdebase-644a960605d4a23b766076bde2bc05e731c447ae.zip
kdebase: use pkgconfig to find dbus-tqt
Thanks to "Nix" for the patch! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1242784 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index f35de0c3a..9f525878d 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -189,9 +189,10 @@ if( BUILD_KDM OR BUILD_KSMSERVER )
endif( )
# check for dbus-tqt
+ pkg_check_modules( DBUS_TQT REQUIRED dbus-tqt )
tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
- set( CMAKE_REQUIRED_INCLUDES ${QT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS} )
- set( CMAKE_REQUIRED_LIBRARIES ${TQT_LDFLAGS} )
+ set( CMAKE_REQUIRED_INCLUDES ${DBUS_TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS} ${QT_INCLUDE_DIRS})
+ set( CMAKE_REQUIRED_LIBRARIES ${DBUS_TQT_LDFLAGS} ${TQT_LDFLAGS} ${QT_LDFLAGS} )
check_cxx_source_compiles("
#include <tqt.h>
#include <dbus/connection.h>