Initial commit - from Precise source
[freerdp-ubuntu-pcb-backport.git] / cmake / FindXmlto.cmake
1 # - Find xmlto
2 # Find the xmlto docbook xslt frontend
3 #
4 #  This module defines the following variables:
5 #     XMLTO_FOUND        - true if xmlto was found
6 #     XMLTO_EXECUTABLE   - Path to xmlto, if xmlto was found
7 #
8
9 #=============================================================================
10 # Copyright 2011 Nils Andresen <nils@nils-andresen.de>
11 #
12 # Licensed under the Apache License, Version 2.0 (the "License");
13 # you may not use this file except in compliance with the License.
14 # You may obtain a copy of the License at
15 #
16 #     http://www.apache.org/licenses/LICENSE-2.0
17 #
18 # Unless required by applicable law or agreed to in writing, software
19 # distributed under the License is distributed on an "AS IS" BASIS,
20 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 # See the License for the specific language governing permissions and
22 # limitations under the License.
23 #=============================================================================
24 set(XMLTO_FOUND false)
25
26 find_program(XMLTO_EXECUTABLE
27         NAMES xmlto
28         DOC   "docbook xslt frontend")
29
30 if(XMLTO_EXECUTABLE)
31         set(XMLTO_FOUND true)
32         message(STATUS "Found XMLTO: ${XMLTO_EXECUTABLE}")
33 endif()
34
35 mark_as_advanced(XMLTO_EXECUTABLE)