Fix: don't link to OpenGL with SDL2 as backend; SDL2 dynamically loads it (#8745)
[openttd-github.git] / cmake / FindGrfcodec.cmake
blob089f95670678e00d297f3986b4444557135ddf65
1 # Autodetect grfcodec and nforenum.
4 find_program(GRFCODEC_EXECUTABLE grfcodec)
5 find_program(NFORENUM_EXECUTABLE nforenum)
7 include(FindPackageHandleStandardArgs)
8 find_package_handle_standard_args(Grfcodec
9     FOUND_VAR GRFCODEC_FOUND
10     REQUIRED_VARS
11         GRFCODEC_EXECUTABLE
12         NFORENUM_EXECUTABLE