ElaWidgetTools qt5+vs2019编译
1、安装cmake,qt5.12.4版本
2、选择源码目录
3、点击1,2
生成会报错:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.16299.
CMake Error at CMakeLists.txt:20 (find_package):
Could not find a package configuration file provided by "QT" with any of
the following names:
Qt6Config.cmake
qt6-config.cmake
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to
a directory containing one of the above files. If "QT" provides a separate
development package or SDK, be sure it has been installed.
解决方法:
添加Qt路径
再次点击
这时候解决方案生成