aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2013-02-27 21:47:22 +0100
committerAlex Neundorf <neundorf@kde.org>2013-02-27 21:53:31 +0100
commitcc62e9ff12139bfd9dc80bd9d109e724e648e13e (patch)
tree7fd35c5ecb24728dfa71e21c70b76cccc74b8233
parent4a09c64aa457069b1a8b62d03941e0fc8bfc6b0f (diff)
downloadextra-cmake-modules-cc62e9ff12139bfd9dc80bd9d109e724e648e13e.tar.gz
extra-cmake-modules-cc62e9ff12139bfd9dc80bd9d109e724e648e13e.tar.bz2
increase version to 0.0.8
-port to CamelCased KF5 libs -add some documentation to FindKF5.cmake -get rid of KDEDIRS, introduce KF5_DIRS instead, a cmake-only variable, as supported by many Find-modules Alex
-rw-r--r--CMakeLists.txt2
-rw-r--r--find-modules/FindKF5.cmake63
2 files changed, 49 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10d012aa..abd96d77 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,7 @@ project(extra-cmake-modules)
set(ECM_MAJOR_VERSION 0)
set(ECM_MINOR_VERSION 0)
-set(ECM_PATCH_VERSION 7)
+set(ECM_PATCH_VERSION 8)
set(ECM_VERSION ${ECM_MAJOR_VERSION}.${ECM_MINOR_VERSION}.${ECM_PATCH_VERSION})
diff --git a/find-modules/FindKF5.cmake b/find-modules/FindKF5.cmake
index beb9bef6..2928ac78 100644
--- a/find-modules/FindKF5.cmake
+++ b/find-modules/FindKF5.cmake
@@ -1,8 +1,41 @@
-# Finds KDE frameworks 5 and its components, like e.g. karchive
+# Finds KDE frameworks 5 and its components, like e.g. KArchive
#
# KF5_INCLUDE_DIRS - the include dirs of all requested components
# KF5_<comp>_LIBRARIES - the libraries to link against of all requested components
# KF5_<comp>_FOUND - signals whether the requested component <comp> has been found
+#
+# Known "pseudo" components, these do not actually search any libraries, but offer other features.
+# Compiler - When specified, KDE-recommended compiler flags etc. are applied. See KDECompilerSettings.cmake.
+# CMake - When specified, KDE-recommended CMake settings are applied. See KDECMakeSettings.cmake.
+# InstallDirs - When specified, the set of install variables is loaded. See KDEInstallDirs.cmake.
+#
+# The following components do not have dependencies to any other components:
+# ItemModels
+# KArchive
+# KCodecs
+# KCoreAddons
+# KDBusAddons
+# KIdleTime
+# kjs
+# KPlotting
+# KWidgetsAddons
+# KWindowSystem
+# Solid
+# ThreadWeaver
+#
+# The following components have dependencies to some of the components above:
+# KAuth
+# KConfig
+#
+# When searching for multiple components, the first real component is searched as usual
+# using CMAKE_PREFIX_PATH and additionally in the environment variables KF5_DIRS.
+# All following components are searched only in the same prefix as the first one, and in those
+# contained in KF5_DIRS. This is to ensure that a matching set of KF5 libraries is found.
+
+# Copyright (c) 2013, Alexander Neundorf, <neundorf@kde.org>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
# hmm, any better ideas ?
set(KF5_VERSION_STRING "5.0.0")
@@ -10,21 +43,21 @@ set(KF5_VERSION_STRING "5.0.0")
# we probably only want to search known components, so people don't start
# misusing this file for searching their own libraries.
-set(knownComponentsTier1 itemmodels
- karchive
- kcodecs
- kcoreaddons
- kdbusaddons
- kidletime
+set(knownComponentsTier1 ItemModels
+ KArchive
+ KCodecs
+ KCoreAddons
+ KDBusAddons
+ KIdleTime
kjs
- kplotting
- kwidgetsaddons
- kwindowsystem
- solid
- threadweaver)
+ KPlotting
+ KWidgetsAddons
+ KWindowSystem
+ Solid
+ ThreadWeaver)
-set(knownComponentsTier2 kauth
- kconfig)
+set(knownComponentsTier2 KAuth
+ KConfig)
set(knownComponentsTier3 )
@@ -119,7 +152,7 @@ endmacro()
if(firstComponent)
- file(TO_CMAKE_PATH "$ENV{KDEDIRS}" _KDEDIRS)
+ file(TO_CMAKE_PATH "$ENV{KF5_DIRS}" _KDEDIRS)
set(_CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} )
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ${_KDEDIRS} )