- 可执行文件工程配置内容:
QT += core
QT -= gui
CONFIG += c++11
TARGET = LibTest
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
- 静态库工程配置内容:
QT -= core gui
TARGET = StaticLib
TEMPLATE = lib
CONFIG += staticlib
SOURCES += StaticLib.cpp
HEADERS += StaticLib.h
unix {
target.path = /usr/lib
INSTALLS += target
}