aboutsummaryrefslogtreecommitdiff
path: root/modules/FindKDE4Internal.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-03-02 22:03:54 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-03-02 22:03:54 +0000
commit1f92c73dba4b55d9f2306aeb7ba4de540151dbc8 (patch)
tree592787c41b9485de9268d3f30bdc1aa9b20061b8 /modules/FindKDE4Internal.cmake
parent11073b50b46982ba2507e0dafe33d9af2bf1bc99 (diff)
downloadextra-cmake-modules-1f92c73dba4b55d9f2306aeb7ba4de540151dbc8.tar.gz
extra-cmake-modules-1f92c73dba4b55d9f2306aeb7ba4de540151dbc8.tar.bz2
-prepare the KDE3 files for moving to cmake cvs
-added the variables formerly sitting in kdebase/cmake/modules/FindKDE4.cmake -added export_library_dependencies(KDELibsDependencies.cmake) command to kdelibs/CMakeLists.txt, this file will be installed and used later on by FindKDE4Internal.cmake when stuff != kdelibs is compiled Please have a look at KDELibsDependencies.cmake to see what it contains. The variables set there still have to be used in FindKDE4Internal.cmake for setting the KDE4_FOO_LIBRARIES() varaibles, I only did it unitl now for kdeui. Alex CCMAIL: montel@kde.org svn path=/trunk/KDE/kdelibs/; revision=515162
Diffstat (limited to 'modules/FindKDE4Internal.cmake')
-rw-r--r--modules/FindKDE4Internal.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 55bfdb74..8c2fd266 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -113,6 +113,30 @@ if(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h)
else(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h)
+ get_filename_component( kde_cmake_module_dir ${CMAKE_CURRENT_LIST_FILE} PATH)
+ # this file contains all dependencies of all libraries of kdelibs, Alex
+ include(${kde_cmake_module_dir}/KDELibsDependencies.cmake)
+
+# the following variables should be named KDE4_KIO_LIBRARIES etc
+# Alex
+
+ set(LIB_KDECORE ${QT_AND_KDECORE_LIBS} ${QT_QTGUI_LIBRARY} ${X11_X11_LIB} DCOP ${ZLIB_LIBRARY})
+
+ # kdeui_LIB_DEPENDS comes from KDELibsDependencies.cmake, Alex
+ set(LIB_KDEUI ${kdeui_LIB_DEPENDS} kdeui)
+
+message(STATUS "kdeui: ${LIB_KDEUI}")
+
+ set(LIB_KIO ${LIB_KDEUI} kio)
+
+ set(LIB_KPARTS ${LIB_KIO} kparts)
+
+ set(LIB_KUTILS ${LIB_KPARTS} kutils)
+
+ set(LIB_KDE3SUPPORT ${QT_QT3SUPPORT_LIBRARY} ${LIB_KUTILS} kde3support)
+
+
+
# ... but NOT otherwise
set( _KDE4_DCOPIDL2CPP_DEP )
set( _KDE4_KCONFIG_COMPILER_DEP)