效果
环境
- CMake
- Qt Sources
- Qt Debug Information Files
- Clion
步骤
1. 下载
使用Qt Maintenance Tool 下载 Qt Sources和 Debug Information Files
提示
如果使用其它方式下载。注意保存的目录
Qt Sources : D:\Qt\6.5.1\Src
Qt Debug Information Files: D:\Qt\6.5.1\msvc2019_64\bin
2. CMakeLists.txt
添加
include_directories(D:/Qt/6.5.1/Src)