Qt5 не найден в проекте CMake с vcpkg stati c export - PullRequest
0 голосов
/ 04 августа 2020

Я хочу создать проект, использующий VSCode + CMake + VCPKG (VTK + Qt5), и я все еще хочу поделиться своими зависимостями VCPKG с товарищем по команде. Поэтому я экспортирую VCPKG.

Когда я пытаюсь find_package(Qt5 COMPONENTS Core REQUIRED) возникла проблема

By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5", but
  CMake did not find one.
  Could not find a package configuration file provided by "Qt5" with any of
  the following names:
    Qt5Config.cmake
    qt5-config.cmake
  Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
  to a directory containing one of the above files.  If "Qt5" provides a
  separate development package or SDK, be sure it has been installed.

И я пытаюсь set(Qt5_DIR "{vckpg_root_path}\installed\x64-windows\share\qt5")

Нет Qt5Config.cmake, чтобы позволить cmake читать !!

введите описание изображения здесь

Вот что внутри.

Как я могу точно использовать Qt5 И установить каталоги включаемых файлов в cmakelist.txt?

...