1 find_program (YUIDOC_EXECUTABLE NAMES yuidoc 2 HINTS $ENV{YUIDOC_DIR} 3 PATHS usr usr/local 4 PATH_SUFFIXES bin 5 DOC "Yuidoc documentation generator" 6 ) 7 8 include (FindPackageHandleStandardArgs) 9 10 find_package_handle_standard_args (Yuidoc DEFAULT_MSG 11 YUIDOC_EXECUTABLE 12 ) 13 14 # Get Yuidoc version 15 if (YUIDOC_EXECUTABLE) 16 execute_process(COMMAND ${YUIDOC_EXECUTABLE} --version 17 ERROR_VARIABLE YUIDOC_VERSION) 18 message ("INFO - Yuidoc version is " ${YUIDOC_VERSION}) 19 endif () 20 21 mark_as_advanced (YUIDOC_EXECUTABLE) 22