From a087c957d6e0e31ca745670d6c22146315e470c8 Mon Sep 17 00:00:00 2001 From: Luigi Toscano Date: Mon, 10 May 2010 21:21:02 +0000 Subject: 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 --- modules/FindDocBookXSL.cmake | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/FindDocBookXSL.cmake (limited to 'modules/FindDocBookXSL.cmake') 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, +# +# 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) -- cgit v1.2.1