diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-07-17 12:41:20 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-07-17 12:41:20 (GMT) |
commit | 7eb86d1e3cd69d8e23709b1bfd17f7a3f1ba6166 (patch) | |
tree | ebe6a840c8f8977b1432cbc8e34bd0583c2d38f8 /Modules/FindKDE3.cmake | |
parent | e69958c3cf6974009fd26785b4938003d70f8450 (diff) | |
download | CMake-7eb86d1e3cd69d8e23709b1bfd17f7a3f1ba6166.zip CMake-7eb86d1e3cd69d8e23709b1bfd17f7a3f1ba6166.tar.gz CMake-7eb86d1e3cd69d8e23709b1bfd17f7a3f1ba6166.tar.bz2 |
ENH: don't hardcode the /lib/kde3/ directory for the libtool files, but make
it adjustable and detect if libkdecore.so is a 64bit library
Alex
Diffstat (limited to 'Modules/FindKDE3.cmake')
-rw-r--r-- | Modules/FindKDE3.cmake | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake index bca71de..d8ef875 100644 --- a/Modules/FindKDE3.cmake +++ b/Modules/FindKDE3.cmake @@ -76,8 +76,6 @@ FIND_PACKAGE(Qt3 REQUIRED) FIND_PACKAGE(X11 REQUIRED) -SET(QT_AND_KDECORE_LIBS ${QT_LIBRARIES} kdecore) - #add some KDE specific stuff SET(KDE3_DEFINITIONS -DQT_CLEAN_NAMESPACE -D_GNU_SOURCE) @@ -168,8 +166,18 @@ FIND_LIBRARY(KDE3_KDECORE_LIBRARY NAMES kdecore FIND_LIBRARY(KDE3_KDECORE_LIBRARY NAMES kdecore) +SET(QT_AND_KDECORE_LIBS ${QT_LIBRARIES} ${KDE3_KDECORE_LIBRARY}) + GET_FILENAME_COMPONENT(KDE3_LIB_DIR ${KDE3_KDECORE_LIBRARY} PATH ) +IF(NOT KDE3_LIBTOOL_DIR) + IF(KDE3_KDECORE_LIBRARY MATCHES lib64) + SET(KDE3_LIBTOOL_DIR /lib64/kde3) + ELSE(KDE3_KDECORE_LIBRARY MATCHES lib64) + SET(KDE3_LIBTOOL_DIR /lib/kde3) + ENDIF(KDE3_KDECORE_LIBRARY MATCHES lib64) +ENDIF(NOT KDE3_LIBTOOL_DIR) + #now search for the dcop utilities FIND_PROGRAM(KDE3_DCOPIDL_EXECUTABLE NAMES dcopidl PATHS $ENV{KDEDIR}/bin |