diff options
author | Andreas Pakulat <apaku@gmx.de> | 2009-10-30 18:18:16 +0000 |
---|---|---|
committer | Andreas Pakulat <apaku@gmx.de> | 2009-10-30 18:18:16 +0000 |
commit | 7c4c6e98bea50185a63287806453eab2587020a8 (patch) | |
tree | a9fee9c12a73b2f8527b383b7c6a8e6259665114 | |
parent | c03c94ddaafdbcc805b832ec0e275fc0ea32561f (diff) | |
download | extra-cmake-modules-7c4c6e98bea50185a63287806453eab2587020a8.tar.gz extra-cmake-modules-7c4c6e98bea50185a63287806453eab2587020a8.tar.bz2 |
Add FindKDevPlatform from kdevplatform/cmake/modules to be able to share this
among other places needing to find kdevplatform.
svn path=/trunk/KDE/kdelibs/; revision=1042792
-rw-r--r-- | modules/CMakeLists.txt | 1 | ||||
-rw-r--r-- | modules/FindKDevPlatform.cmake | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index d3ec88f3..99c30c5b 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -50,6 +50,7 @@ set(cmakeFiles CheckCXXSourceCompiles.cmake FindIOKit.cmake FindKDE4Internal.cmake FindKDE4Workspace.cmake + FindKDevPlatform.cmake FindKDEWIN32.cmake FindKDEWIN_Packager.cmake FindKDEWin.cmake diff --git a/modules/FindKDevPlatform.cmake b/modules/FindKDevPlatform.cmake new file mode 100644 index 00000000..1a771c52 --- /dev/null +++ b/modules/FindKDevPlatform.cmake @@ -0,0 +1,46 @@ +# +# Find the KDevelop Platform modules and sets various variables accordingly +# +# Example usage of this module: +# find_package(KDevPlatform 1.0.0 REQUIRED) +# +# The version number and REQUIRED flag are optional. You can set CMAKE_PREFIX_PATH +# variable to help it find the required files and directories + +# KDEVPLATFORM_FOUND - set to TRUE if the platform was found and the version is compatible FALSE otherwise +# +# KDEVPLATFORM_VERSION - The version number of kdevplatform +# KDEVPLATFORM_VERSION_MAJOR - The major version number of kdevplatform +# KDEVPLATFORM_VERSION_MINOR - The minor version number of kdevplatform +# KDEVPLATFORM_VERSION_PATCH - The patch version number of kdevplatform +# KDEVPLATFORM_INCLUDE_DIR - include dir of the platform, for example /usr/include/kdevplatform +# KDEVPLATFORM_INTERFACES_LIBRARIES - interfaces module library +# KDEVPLATFORM_LANGUAGE_LIBRARIES - language module library +# KDEVPLATFORM_OUTPUTVIEW_LIBRARIES - outputview module library +# KDEVPLATFORM_PROJECT_LIBRARIES - project module library +# KDEVPLATFORM_SUBLIME_LIBRARIES - sublime module library +# KDEVPLATFORM_SHELL_LIBRARIES - shell module library +# KDEVPLATFORM_TESTS_LIBRARIES - library to write tests for plugins, +# contains some useful tools and a way to replace parts of Core +# classes with custom implementations +# KDEVPLATFORM_UTIL_LIBRARIES - util module library +# KDEVPLATFORM_VCS_LIBRARIES - vcs module library +# KDEVPLATFORM_SOURCEFORMATTER_LIBRARIES - source formatter library +# KDEVPLATFORM_DEBUGGER_LIBRARIES - debugger module library +# +# The following macros are added (from KDevPlatformMacros.cmake): +# +# KDEVPLATFORM_ADD_APP_TEMPLATES( template1 ... templateN ) +# Use this to get packaged template archives for the given templates. +# Parameters should be the directories containing the templates. +# +# Copyright 2007 Andreas Pakulat <apaku@gmx.de> +# Redistribution and use is allowed according to the terms of the BSD license. + +set(_KDevPlatform_FIND_QUIETLY ${KDevPlatform_FIND_QUIETLY}) +find_package( KDevPlatform ${KDevPlatform_FIND_VERSION} NO_MODULE ) +set(KDevPlatform_FIND_QUIETLY ${_KDevPlatform_FIND_QUIETLY}) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(KDevPlatform DEFAULT_MSG KDevPlatform_CONFIG ) + |