ADS_OUT_ROOT = $${OUT_PWD}/.. CONFIG += c++11 TARGET = $$qtLibraryTarget(qtadvanceddocking) DEFINES += QT_DEPRECATED_WARNINGS CONFIG(debug, debug|release) { mac: TARGET = $$join(TARGET,,,_debug) win32: TARGET = $$join(TARGET,,,d) } TEMPLATE = lib DESTDIR = $${ADS_OUT_ROOT}/lib QT += core gui widgets !adsBuildStatic { CONFIG += shared DEFINES += ADS_SHARED_EXPORT } adsBuildStatic { CONFIG += staticlib DEFINES += ADS_STATIC } windows { # MinGW *-g++* { QMAKE_CXXFLAGS += -Wall -Wextra -pedantic } # MSVC *-msvc* { } } RESOURCES += ads.qrc HEADERS += \ ads_globals.h \ DockAreaWidget.h \ DockAreaTabBar.h \ DockContainerWidget.h \ DockManager.h \ DockWidget.h \ DockWidgetTab.h \ FloatingDockContainer.h \ DockOverlay.h \ DockSplitter.h \ DockAreaTitleBar.h \ ElidingLabel.h SOURCES += \ ads_globals.cpp \ DockAreaWidget.cpp \ DockAreaTabBar.cpp \ DockContainerWidget.cpp \ DockManager.cpp \ DockWidget.cpp \ DockWidgetTab.cpp \ FloatingDockContainer.cpp \ DockOverlay.cpp \ DockSplitter.cpp \ DockAreaTitleBar.cpp \ ElidingLabel.cpp isEmpty(PREFIX){ PREFIX=..\installed warning("Install Prefix not set") } headers.path=$$PREFIX/include headers.files=$$HEADERS target.path=$$PREFIX/lib INSTALLS += headers target