Qt Reference Documentation

wrapper.pro Example File

activeqt/wrapper/wrapper.pro
 TEMPLATE = lib
 TARGET   = wrapperax

 CONFIG  += qt warn_off qaxserver dll
 contains(CONFIG, static):DEFINES += QT_NODLL

 SOURCES  = main.cpp
 RC_FILE  = wrapperax.rc
 DEF_FILE = $$QT_SOURCE_TREE/src/activeqt/control/qaxserver.def

 # install
 target.path = $$[QT_INSTALL_EXAMPLES]/activeqt/wrapper
 sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS wrapper.pro
 sources.path = $$[QT_INSTALL_EXAMPLES]/activeqt/wrapper
 INSTALLS += target sources