1.Cmake设置
CTK_QT_VERSION 5
CTK_BUILD_ALL
2.解决错误:
fatal error C1189: #error : The C++ Standard Library forbids macroizing keywords. Enable warning C4005 to find the forbidden macro.
修改文件CTK-build/ITK/CMakeLists.txt中,添加预处理器定义_XKEYCHECK_H。
3.如果有错误:
error C1083: 无法打开包括文件: “QApplication”: No such file or directory
修改错误文件:
#include <QtWidgets/QApplication>