Files @ r25613:0450f3bdfa6e
Branch filter:

Location: cpp/openttd-patchpack/source/cmake/FindGrfcodec.cmake

Patric Stout
Add: adhere the autosave_on_exit setting for Null videodriver (#9343)

This is especially useful for automated-testing, to make a save
when the game quits while using "-vnull:ticks=N".
# Autodetect grfcodec and nforenum.
#

find_program(GRFCODEC_EXECUTABLE grfcodec)
find_program(NFORENUM_EXECUTABLE nforenum)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Grfcodec
    FOUND_VAR GRFCODEC_FOUND
    REQUIRED_VARS
        GRFCODEC_EXECUTABLE
        NFORENUM_EXECUTABLE
)