Warning, /geant4/cmake/Modules/FindXvfb.cmake is written in an unsupported language. File is not indexed.
0001 # Check if Xvfb is installed.
0002 # Xvfb is an X server that can run on machines with no display hardware
0003 # and no physical input devices.
0004 # It emulates a dumb framebuffer using virtual memory.
0005 # It is used to test graphic examples.
0006
0007 # Usage of this module is as follows
0008 #
0009 # find_package( Xvfb )
0010 # if (XVFB_FOUND)
0011 # ...
0012 # sets XVFB_EXECUTABLE
0013
0014
0015 set(XVFB_FOUND FALSE)
0016
0017 if(UNIX)
0018 find_program(XVFB_EXECUTABLE Xvfb
0019 PATHS /usr/bin
0020 DOC "Xvfb dumb framebuffer X server")
0021 endif()
0022
0023 # handle the QUIETLY and REQUIRED arguments and set PYTHIA6_FOUND to TRUE if
0024 # all listed variables are TRUE
0025 INCLUDE(FindPackageHandleStandardArgs)
0026 FIND_PACKAGE_HANDLE_STANDARD_ARGS(Xvfb DEFAULT_MSG XVFB_EXECUTABLE)
0027
0028 mark_as_advanced(XVFB_FOUND XVFB_EXECUTABLE)