Files @ r28761:d984b313db3e
Branch filter:

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

translators
Update: Translations from eints
swedish: 1 change by SpamixOfficial
welsh: 280 changes by Ansbaradigeidfran
vietnamese: 245 changes by myquartz
estonian: 1 change by siimsoni
czech: 64 changes by LubosKolouch, 29 changes by adamek0202
arabic (egypt): 17 changes by AviationGamerX
luxembourgish: 247 changes by phreeze83
hungarian: 9 changes by nemesbala
indonesian: 21 changes by tsaqibfs, 19 changes by K4smun1
italian: 13 changes by AlphaJack
hebrew: 20 changes by Boltyansky
bulgarian: 107 changes by lamarin1
finnish: 4 changes by lanurmi
ukrainian: 18 changes by StepanIvasyn
catalan: 1 change by arnaullv
turkish: 120 changes by metsysma, 43 changes by EndChapter
danish: 23 changes by mamure, 23 changes by bscargo
dutch: 1 change by Jaws3rd
french: 1 change by Lishouuu
portuguese (brazilian): 362 changes by pasantoro
polish: 60 changes by pAter-exe
#[=======================================================================[.rst:
FindFluidsynth
-------

Finds the fluidsynth library.

Result Variables
^^^^^^^^^^^^^^^^

This will define the following variables:

``Fluidsynth_FOUND``
  True if the system has the fluidsynth library.
``Fluidsynth_INCLUDE_DIRS``
  Include directories needed to use fluidsynth.
``Fluidsynth_LIBRARIES``
  Libraries needed to link to fluidsynth.
``Fluidsynth_VERSION``
  The version of the fluidsynth library which was found.

Cache Variables
^^^^^^^^^^^^^^^

The following cache variables may also be set:

``Fluidsynth_INCLUDE_DIR``
  The directory containing ``fluidsynth.h``.
``Fluidsynth_LIBRARY``
  The path to the fluidsynth library.

#]=======================================================================]

find_package(PkgConfig QUIET)
pkg_check_modules(PC_Fluidsynth QUIET fluidsynth)

find_path(Fluidsynth_INCLUDE_DIR
    NAMES fluidsynth.h
    PATHS ${PC_Fluidsynth_INCLUDE_DIRS}
)

find_library(Fluidsynth_LIBRARY
    NAMES fluidsynth
    PATHS ${PC_Fluidsynth_LIBRARY_DIRS}
)

set(Fluidsynth_VERSION ${PC_Fluidsynth_VERSION})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Fluidsynth
    FOUND_VAR Fluidsynth_FOUND
    REQUIRED_VARS
        Fluidsynth_LIBRARY
        Fluidsynth_INCLUDE_DIR
    VERSION_VAR Fluidsynth_VERSION
)

if(Fluidsynth_FOUND)
    set(Fluidsynth_LIBRARIES ${Fluidsynth_LIBRARY})
    set(Fluidsynth_INCLUDE_DIRS ${Fluidsynth_INCLUDE_DIR})
endif()

mark_as_advanced(
    Fluidsynth_INCLUDE_DIR
    Fluidsynth_LIBRARY
)