diff options
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)  | 
