1find_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 8include (FindPackageHandleStandardArgs) 9 10find_package_handle_standard_args (Yuidoc DEFAULT_MSG 11 YUIDOC_EXECUTABLE 12) 13 14# Get Yuidoc version 15if (YUIDOC_EXECUTABLE) 16 execute_process(COMMAND ${YUIDOC_EXECUTABLE} --version 17 ERROR_VARIABLE YUIDOC_VERSION) 18 if(YUIDOC_VERSION) 19 message ("INFO - Yuidoc version is " ${YUIDOC_VERSION}) 20 endif() 21endif () 22 23mark_as_advanced (YUIDOC_EXECUTABLE) 24