title: CMAKE dont find the libmpdclient-2.13 library
body: <p>I´m new to cmake and i need help to build the ympd <a href="https://github.com/notandy/ympd" rel="nofollow noreferrer">https://github.com/notandy/ympd</a> project on windows</p>
  
  <p><strong>1. Install libmpdclient</strong></p>
  
  <p>I installed the libmpdclient-2.13 library from <a href="https://www.musicpd.org/libs/libmpdclient/" rel="nofollow noreferrer">https://www.musicpd.org/libs/libmpdclient/</a> </p>
  
  <p>i did the steps to build the libmpdclient from the github repo</p>
  
  <p><a href="https://github.com/MusicPlayerDaemon/libmpdclient" rel="nofollow noreferrer">https://github.com/MusicPlayerDaemon/libmpdclient</a> </p>
  
  <p>This works well and got the following output with the .dll file:</p>
  
  <p><a href="https://i.stack.imgur.com/CINsQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CINsQ.png" alt="enter image description here"></a></p>
  
  <p><strong>2. Build the ympd project</strong></p>
  
  <p>I created a folder /build and inside this folder i did </p>
  
  <pre><code>cmake ..
  </code></pre>
  
  <p>i got this errors:</p>
  
  <pre><code>C:\mpd\ympd\build&gt;cmake ..
  -- Building for: Visual Studio 15 2017
  -- Selecting Windows SDK version 10.0.15063.0 to target Windows 10.0.16299.
  -- The C compiler identification is MSVC 19.11.25508.2
  -- The CXX compiler identification is MSVC 19.11.25508.2
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.11.25503/bin/Hostx86/x86/cl.exe -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found PkgConfig: C:/MinGW/bin/pkg-config.exe (found version "0.26")
  CMake Error at G:/Programme/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
    Could NOT find LibMPDClient (missing: LIBMPDCLIENT_LIBRARY
    LIBMPDCLIENT_INCLUDE_DIR)
  Call Stack (most recent call first):
    G:/Programme/CMake/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
    cmake/FindLibMPDClient.cmake:27 (find_package_handle_standard_args)
    CMakeLists.txt:20 (find_package)
  
  
  -- Configuring incomplete, errors occurred!
  See also "C:/mpd/ympd/build/CMakeFiles/CMakeOutput.log".
  </code></pre>
  
  <p>Question:</p>
  
  <p>How can i give cmake the parameters LIBMPDCLIENT_LIBRARY LIBMPDCLIENT_INCLUDE_DIR?</p>
  
  <p>Project Structure:</p>
  
  <pre><code>mpd/ympd/
        build/
        cmake/
            FindLibMPDClient.cmake
        contrib/
        htdocs/
        libmpdclient-2.13/
                     .output/
                          libmpdclient-2.dll 
        src/
        tools/
        .travis
        CMakeLlists
        LICENSE
        README
        ympd.1
  </code></pre>
  
  <p>File FindLibMPDClient.cmake:</p>
  
  <pre><code># - Try to find LibMPDClient
  # Once done, this will define
  #
  #   LIBMPDCLIENT_FOUND - System has LibMPDClient
  #   LIBMPDCLIENT_INCLUDE_DIRS - The LibMPDClient include directories
  #   LIBMPDCLIENT_LIBRARIES - The libraries needed to use LibMPDClient
  #   LIBMPDCLIENT_DEFINITIONS - Compiler switches required for using LibMPDClient
  
  find_package(PkgConfig)
  pkg_check_modules(PC_LIBMPDCLIENT QUIET libmpdclient)
  set(LIBMPDCLIENT_DEFINITIONS ${PC_LIBMPDCLIENT_CFLAGS_OTHER})
  
  find_path(LIBMPDCLIENT_INCLUDE_DIR
      NAMES mpd/player.h
      HINTS ${PC_LIBMPDCLIENT_INCLUDEDIR} ${PC_LIBMPDCLIENT_INCLUDE_DIRS}
  )
  
  find_library(LIBMPDCLIENT_LIBRARY
      NAMES mpdclient
      HINTS ${PC_LIBMPDCLIENT_LIBDIR} ${PC_LIBMPDCLIENT_LIBRARY_DIRS}
  )
  
  set(LIBMPDCLIENT_LIBRARIES ${LIBMPDCLIENT_LIBRARY})
  set(LIBMPDCLIENT_INCLUDE_DIRS ${LIBMPDCLIENT_INCLUDE_DIR})
  
  include(FindPackageHandleStandardArgs)
  find_package_handle_standard_args(LibMPDClient DEFAULT_MSG
      LIBMPDCLIENT_LIBRARY LIBMPDCLIENT_INCLUDE_DIR
  )
  
  mark_as_advanced(LIBMPDCLIENT_LIBRARY LIBMPDCLIENT_INCLUDE_DIR)
  </code></pre>
  
  <p>every help is appropriate, thanks</p>