title: CMake could not find wxWidgets on Windows
body: <p>I have the following snippet in my CMakeLists.txt, as described in <a href="https://wiki.wxwidgets.org/CMake" rel="nofollow noreferrer">wxWidgets wiki</a></p>
  
  <pre><code>set(wxWidgets_ROOT_DIR libs/wxWidgets)
  set(wxWidgets_CONFIGURATION mswu)
  find_package(wxWidgets REQUIRED
          COMPONENTS core base adv)
  include(${wxWidgets_USE_FILE})
  </code></pre>
  
  <p><code>libs/wxWidgets</code> is a git submodule. On Ubuntu 16.04, the project builds and works.
  The submodule description is:</p>
  
  <pre><code>[submodule "libs/wxWidgets"]
      path = libs/wxWidgets
      url = https://github.com/wxWidgets/wxWidgets
      branch = WX_3_0_3_BRANCH
  </code></pre>
  
  <p>However, having the same code on Windows doesn't work, with error like:</p>
  
  <pre><code>CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
        Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
    wxWidgets_INCLUDE_DIRS)
  Call Stack (most recent call first):
    C:/Program Files (x86)/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
    C:/Program Files (x86)/CMake/share/cmake-3.9/Modules/FindwxWidgets.cmake:953 (find_package_handle_standard_args)
    CMakeLists.txt:8 (find_package)
  </code></pre>
  
  <p>Other wxWidgets installation from <a href="https://www.wxwidgets.org/downloads/" rel="nofollow noreferrer">official site</a>, including <code>zip</code> and <code>Windows Installer</code> are tried, but yeilding the same error.</p>
  
  <p><a href="https://stackoverflow.com/questions/32524453/cmake-unable-to-find-my-windows-installation-of-wxwidgets">This question</a> might be related, but it has no acceptable answers.</p>