From 31ea982a12534702641dcb3c5514462d1a7fac8a Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Tue, 30 Jan 2007 20:59:20 +0000 Subject: -only look for the headers in the given install path -the same for binaries, but afterwards also in the standard dirs, not sure whether this should be kept... -remove usage of KDEDIR -improve docs Alex svn path=/trunk/KDE/kdelibs/; revision=628657 --- modules/FindKDE4Internal.cmake | 46 +++++++++--------------------------------- 1 file changed, 9 insertions(+), 37 deletions(-) (limited to 'modules') diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index b9656886..70e71e52 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -168,9 +168,10 @@ # are created. Currently it doesn't have any effect on other platforms. # # KDE4_ADD_EXECUTABLE (name [NOGUI] [RUN_UNINSTALLED] file1 ... fileN) -# Equivalent to ADD_EXECUTABLE(), but additionally adds support for KDE4_ENABLE_FINAL. -# If you don't need support for KDE4_ENABLE_FINAL, you can just use the -# normal ADD_EXECUTABLE(). +# Equivalent to ADD_EXECUTABLE(), but additionally adds some more features: +# -support for KDE4_ENABLE_FINAL +# -support for automoc +# -automatic RPATH handling # If the executable has to be run from the buildtree (e.g. unit tests and code generators # used later on when compiling), set the option RUN_UNINSTALLED. # If the executable doesn't have a GUI, use the option NOGUI. By default on OS X @@ -484,45 +485,16 @@ else (_kdeBootStrapping) get_filename_component(KDE4_LIB_DIR ${KDE4_KDECORE_LIBRARY} PATH ) - - # at first the KDE include direcory # kpassworddialog.h is new with KDE4 - find_path(KDE4_INCLUDE_DIR kpassworddialog.h - ${KDE4_INCLUDE_INSTALL_DIR} - $ENV{KDEDIR}/include - /opt/kde/include - /opt/kde4/include - /usr/local/include - /usr/include/ - /usr/include/kde - /usr/local/include/kde - ) - - find_program(KDE4_KCFGC_EXECUTABLE NAME kconfig_compiler PATHS - ${KDE4_BIN_INSTALL_DIR} - $ENV{KDEDIR}/bin - /opt/kde/bin - /opt/kde4/bin - NO_DEFAULT_PATH - ) + find_path(KDE4_INCLUDE_DIR kpassworddialog.h ${KDE4_INCLUDE_INSTALL_DIR} NO_DEFAULT_PATH ) + + find_program(KDE4_KCFGC_EXECUTABLE NAME kconfig_compiler PATHS ${KDE4_BIN_INSTALL_DIR} NO_DEFAULT_PATH ) find_program(KDE4_KCFGC_EXECUTABLE NAME kconfig_compiler ) - find_program(KDE4_MEINPROC_EXECUTABLE NAME meinproc PATHS - ${KDE4_BIN_INSTALL_DIR} - $ENV{KDEDIR}/bin - /opt/kde/bin - /opt/kde4/bin - NO_DEFAULT_PATH - ) + find_program(KDE4_MEINPROC_EXECUTABLE NAME meinproc PATHS ${KDE4_BIN_INSTALL_DIR} NO_DEFAULT_PATH ) find_program(KDE4_MEINPROC_EXECUTABLE NAME meinproc ) - find_program(KDE4_MAKEKDEWIDGETS_EXECUTABLE NAME makekdewidgets PATHS - ${KDE4_BIN_INSTALL_DIR} - $ENV{KDEDIR}/bin - /opt/kde/bin - /opt/kde4/bin - NO_DEFAULT_PATH - ) + find_program(KDE4_MAKEKDEWIDGETS_EXECUTABLE NAME makekdewidgets PATHS ${KDE4_BIN_INSTALL_DIR} NO_DEFAULT_PATH ) find_program(KDE4_MAKEKDEWIDGETS_EXECUTABLE NAME makekdewidgets ) endif (_kdeBootStrapping) -- cgit v1.2.1