Warning, /office/calligra/cmake/modules/FindPstoeditSvgOutput.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find Pstoedit with svg output plugin 0002 # Once done this will define 0003 # 0004 # PstoeditSvgOutput_FOUND - system has pstoedit with svg output plugin 0005 # PSTOEDIT_EXECUTABLE - path of the pstoedit executable 0006 # PSTOEDIT_VERSION - the version string, like "3.45" 0007 0008 find_program(PSTOEDIT_EXECUTABLE NAMES pstoedit) 0009 0010 include(MacroEnsureVersion) 0011 0012 if(PSTOEDIT_EXECUTABLE) 0013 execute_process(COMMAND ${PSTOEDIT_EXECUTABLE} -help 0014 ERROR_VARIABLE _PSTOEDIT_VERSION OUTPUT_VARIABLE _PSTOEDIT_PLUGINS 0015 ) 0016 string (REGEX MATCH "[0-9]\\.[0-9]+" PSTOEDIT_VERSION "${_PSTOEDIT_VERSION}") 0017 string (REGEX MATCH "plot-svg" PSTOEDIT_SVG_PLUGIN "${_PSTOEDIT_PLUGINS}") 0018 string (COMPARE EQUAL "plot-svg" "${PSTOEDIT_SVG_PLUGIN}" PstoeditSvgOutput_FOUND ) 0019 endif() 0020 0021 if(PstoeditSvgOutput_FOUND) 0022 if(NOT Pstoedit_FIND_QUIETLY) 0023 message(STATUS "Found pstoedit version ${PSTOEDIT_VERSION}: ${PSTOEDIT_EXECUTABLE}") 0024 message(STATUS "Found pstoedit svg-plugin: ${PSTOEDIT_SVG_PLUGIN}") 0025 endif() 0026 else() 0027 if(Pstoedit_FIND_REQUIRED) 0028 message(FATAL_ERROR "Could not find pstoedit or the svg output plugin") 0029 endif() 0030 endif() 0031