summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindYuidoc.cmake
blob: 23175ce28de839ba8e645701fe84dca6fd750ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
find_program (YUIDOC_EXECUTABLE NAMES yuidoc
  HINTS $ENV{YUIDOC_DIR}
    PATHS usr usr/local
  PATH_SUFFIXES bin
  DOC "Yuidoc documentation generator"
)

include (FindPackageHandleStandardArgs)

find_package_handle_standard_args (Yuidoc DEFAULT_MSG
  YUIDOC_EXECUTABLE
)

# Get Yuidoc version
if (YUIDOC_EXECUTABLE)
  execute_process(COMMAND ${YUIDOC_EXECUTABLE} --version
                  ERROR_VARIABLE YUIDOC_VERSION)
  message ("INFO - Yuidoc version is " ${YUIDOC_VERSION})
endif ()

mark_as_advanced (YUIDOC_EXECUTABLE)