2 # this module looks for asciidoc
4 # ASCIIDOC_EXECUTABLE - the full path to asciidoc
5 # ASCIIDOC_A2X_EXECUTABLE - the full path to asciidoc's a2x
6 # ASCIIDOC_FOUND - If false, don't attempt to use asciidoc.
9 # http://lissyx.dyndns.org/redmine/projects/qpdfpresenterconsole/repository/revisions/master/raw/cmake/FindAsciidoc.cmake
11 FIND_PROGRAM(ASCIIDOC_EXECUTABLE asciidoc)
12 FIND_PROGRAM(ASCIIDOC_A2X_EXECUTABLE a2x)
16 ASCIIDOC_A2X_EXECUTABLE
19 IF ((NOT ASCIIDOC_EXECUTABLE) OR (NOT ASCIIDOC_A2X_EXECUTABLE))
20 SET(ASCIIDOC_FOUND "NO")
21 ELSE ((NOT ASCIIDOC_EXECUTABLE) OR (NOT ASCIIDOC_A2X_EXECUTABLE))
22 SET(ASCIIDOC_FOUND "YES")
23 ENDIF ((NOT ASCIIDOC_EXECUTABLE) OR (NOT ASCIIDOC_A2X_EXECUTABLE))
25 IF (NOT ASCIIDOC_FOUND AND Asciidoc_FIND_REQUIRED)
26 MESSAGE(FATAL_ERROR "Could not find asciidoc")
27 ENDIF (NOT ASCIIDOC_FOUND AND Asciidoc_FIND_REQUIRED)