diff options
author | Luigi Toscano <luigi.toscano@tiscali.it> | 2010-05-10 21:21:02 +0000 |
---|---|---|
committer | Luigi Toscano <luigi.toscano@tiscali.it> | 2010-05-10 21:21:02 +0000 |
commit | a087c957d6e0e31ca745670d6c22146315e470c8 (patch) | |
tree | 432ce15459d7463ce26b4a01acddc86e697d6b47 /modules/FindDocBookXSL.cmake | |
parent | 1377da074cbeec64b7846e9e9a2b89abbe5a897f (diff) | |
download | extra-cmake-modules-a087c957d6e0e31ca745670d6c22146315e470c8.tar.gz extra-cmake-modules-a087c957d6e0e31ca745670d6c22146315e470c8.tar.bz2 |
New dependencies: DocBook XML, DocBook XSL.
Approved on kde-core-devel and kde-buildsystem. This is the first
step to remove the embedded (outdated) copies of DocBook XML DTDs
and DocBook XSL stylesheet from kdelibs/kdoctools.
svn path=/trunk/KDE/kdelibs/; revision=1125172
Diffstat (limited to 'modules/FindDocBookXSL.cmake')
-rw-r--r-- | modules/FindDocBookXSL.cmake | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/FindDocBookXSL.cmake b/modules/FindDocBookXSL.cmake new file mode 100644 index 00000000..44f69699 --- /dev/null +++ b/modules/FindDocBookXSL.cmake @@ -0,0 +1,25 @@ +# Try to find DocBook XSL stylesheet +# Once done, it will define: +# +# DOCBOOKXSL_FOUND - system has the required DocBook XML DTDs +# DOCBOOKXSL_DIR - the directory containing the stylesheets +# used to process DocBook XML +# +# Copyright (c) 2010, Luigi Toscano, <luigi.toscano@tiscali.it> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + +find_path (DOCBOOKXSL_DIR VERSION + PATHS ${CMAKE_SYSTEM_PREFIX_PATH} + PATH_SUFFIXES + share/xml/docbook/stylesheet/docbook-xsl + share/sgml/docbook/xsl-stylesheets + share/xml/docbook/stylesheet/nwalsh/current +) + +find_package_handle_standard_args (DocBookXSL + "Could NOT find DocBook XSL stylesheets" + DOCBOOKXSL_DIR) + +mark_as_advanced (DOCBOOKXSL_DIR) |