Files @ r24425:4e31788e3af3
Branch filter:

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

Michael Lutz
Fix: [CMake, MSVC] Don't copy regression exe's into a subfolder as they need have their lang files next to them.
# 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
)