title: How can I add dlib in cmake with findpackage?
body: <p>This is my cmakelists.txt:</p>
  
  <pre><code>project( WolframMachine )                                    
  cmake_minimum_required(VERSION 3.1)
  set (CMAKE_CXX_STANDARD 11)
  set(CMAKE_SUPPRESS_REGENERATION true)
  include(ExternalProject)
  set(Boost_INCLUDE_DIR "C:/boost_1_66_0")
  set(Boost_LIBRARY_DIR "C:/boost_1_66_0/lib64-msvc-14.0")
  SET("OpenCV_DIR" "C:/opencv-3.4.1/build")
  SET(dlib_DIR "C:/dlib-19.13/")  # &lt;============ DLIB
  find_package( OpenCV COMPONENTS core imgproc highgui aruco optflow plot REQUIRED )
  find_package(dlib REQUIRED)  # &lt;============ DLIB
  add_subdirectory(dlibtest)
  </code></pre>
  
  <p>Running cmake-gui gives me following:</p>
  
  <p><a href="https://i.stack.imgur.com/QWP69.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QWP69.png" alt="enter image description here"></a></p>
  
  <p>setting dlib_DIR manually doesn't help. How can I fix this?</p>
  
  <p><strong>UPD</strong>: tried other dlib_DIR values with no success:</p>
  
  <pre><code>SET(dlib_DIR "C:/dlib-19.13/build/dlib/CMakeFiles/Export/lib/cmake/dlib")
  </code></pre>
  
  <p>gives same error:</p>
  
  <p><a href="https://i.stack.imgur.com/m9ssd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/m9ssd.png" alt="enter image description here"></a></p>
  
  <p>and setting </p>
  
  <pre><code>SET(dlib_DIR "C:/dlib-19.13/build/dlib/config")
  </code></pre>
  
  <p>gives another meaningless error:</p>
  
  <p><a href="https://i.stack.imgur.com/w3SjM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/w3SjM.png" alt="enter image description here"></a></p>