qtcreatorwidgets.pro 797 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
  # form abs path to qtcreator lib dir
14
15
16
  QTC_LIBS=$$dirname(PWD)
  QTC_LIBS=$$dirname(QTC_LIBS)
  QTC_LIBS=$$dirname(QTC_LIBS)
17
18
19
20
21
  linux-*64 {
    QTC_LIBS=$$QTC_LIBS/lib64/qtcreator
  } else {
    QTC_LIBS=$$QTC_LIBS/lib/qtcreator
  }
22
  QMAKE_RPATHDIR *= $$QTC_LIBS
con's avatar
con committed
23
24
25
}

INCLUDEPATH += ../../../src/libs
con's avatar
con committed
26
27
28
29
30
macx {
    LIBS += -L../../../bin/QtCreator.app/Contents/PlugIns
    CONFIG(debug, debug|release):LIBS += -lUtils_debug
    else:LIBS += -lUtils
} else {
31
    LIBS += -L$$QTC_LIBS -lUtils
con's avatar
con committed
32
}
con's avatar
con committed
33
34
35

DESTDIR= $$[QT_INSTALL_PLUGINS]/designer