qtcreatorwidgets.pro 702 Bytes
Newer Older
con's avatar
con committed
1
2
3
4
5
6
7
8
9
10
11
CONFIG      += designer plugin debug_and_release
TARGET      = $$qtLibraryTarget(qtcreatorwidgets)
TEMPLATE    = lib

HEADERS     = customwidgets.h \
              customwidget.h

SOURCES     = customwidgets.cpp 

# Link against the qtcreator utils lib

con's avatar
con committed
12
linux-* {
con's avatar
con committed
13
14
15
16
17
18
19
20
21
  # form abs path to qtcreator lib dir
  GH_LIB=$$dirname(PWD)
  GH_LIB=$$dirname(GH_LIB)
  GH_LIB=$$dirname(GH_LIB)
  GH_LIB=$$GH_LIB/lib
  QMAKE_RPATHDIR *= $$GH_LIB
}

INCLUDEPATH += ../../../src/libs
con's avatar
con committed
22
23
24
25
26
27
28
macx {
    LIBS += -L../../../bin/QtCreator.app/Contents/PlugIns
    CONFIG(debug, debug|release):LIBS += -lUtils_debug
    else:LIBS += -lUtils
} else {
    LIBS += -L../../../lib -lUtils
}
con's avatar
con committed
29
30
31

DESTDIR= $$[QT_INSTALL_PLUGINS]/designer