1. pro文件的配置
TEMPLATE = app
CONFIG += console
CONFIG -= app_bundle
CONFIG += qt
QT += core gui
greaterThan(QT_MAJOR_VERSION, ): QT += widgets
SOURCES += main.cpp include(deployment.pri)
qtcAddDeployment()
win32:CONFIG(release, debug|release){
INCLUDEPATH += D:/Qt/VTK6.3.0/MinGW/release/include/vtk-6.3
DEPENDPATH += D:/Qt//VTK6.3.0/MinGW/release/include/vtk-6.3
LIBS += -LD:/Qt/VTK6.3.0/MinGW/release/lib\
libvtkInteractionImage-6.3 \
libvtkRenderingCore-6.3 \
libvtkRenderingOpenGL-6.3 \
libvtkInteractionStyle-6.3 \
libvtkalglib-6.3\
libvtkCommonCore-6.3 \
libvtkCommonDataModel-6.3\
libvtkCommonExecutionModel-6.3\
libvtkCommonSystem-6.3\
libvtkIOCore-6.3\
libvtkIOImage-6.3 \
libvtkIOLegacy-6.3\
libvtkViewsQt-6.3\
libvtkFiltersSources-6.3\
libvtkGUISupportQt-6.3\
libvtkGUISupportQtOpenGL-6.3\
libvtkRenderingQt-6.3\
libvtkFiltersCore-6.3\
libvtkCommonMisc-6.3\
libvtkfreetype-6.3\
libvtkRenderingFreeType-6.3\
libvtkFiltersModeling-6.3\
libvtkInteractionWidgets-6.3\
libvtkRenderingAnnotation-6.3\
libvtkRenderingLOD-6.3\
libvtkIOXML-6.3\
libvtkFiltersGeometry-6.3
}
else:win32:CONFIG(debug, debug|release){
INCLUDEPATH += D:/Qt/VTK6.3.0/MinGW/Debug/include/vtk-6.3
DEPENDPATH += D:/Qt//VTK6.3.0/MinGW/Debug/include/vtk-6.3
LIBS += -LD:/Qt/VTK6.3.0/MinGW/debug/lib\
libvtkInteractionImage-6.3d \
libvtkRenderingCore-6.3d \
libvtkRenderingOpenGL-6.3d \
libvtkInteractionStyle-6.3d \
libvtkalglib-6.3d\
libvtkCommonCore-6.3d \
libvtkCommonDataModel-6.3d\
libvtkCommonExecutionModel-6.3d\
libvtkCommonSystem-6.3d\
libvtkIOCore-6.3d\
libvtkIOImage-6.3d \
libvtkIOLegacy-6.3d\
libvtkViewsQt-6.3d\
libvtkFiltersSources-6.3d\
libvtkGUISupportQt-6.3d\
libvtkFiltersCore-6.3d\
libvtkCommonMisc-6.3d\
libvtkfreetype-6.3d\
libvtkRenderingFreeType-6.3d\
libvtkFiltersModeling-6.3d\
libvtkInteractionWidgets-6.3d\
libvtkRenderingAnnotation-6.3d\
libvtkRenderingLOD-6.3d\
libvtkIOXML-6.3d\
libvtkFiltersGeometry-6.3d
}
HEADERS += \
animateactors.h