qtcreatorwidgets.pro 866 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

12
13
14
15
isEmpty(IDE_LIBRARY_BASENAME) {
    IDE_LIBRARY_BASENAME = lib
}

con's avatar
con committed
16
linux-* {
con's avatar
con committed
17
  # form abs path to qtcreator lib dir
18
19
20
  QTC_LIBS=$$dirname(PWD)
  QTC_LIBS=$$dirname(QTC_LIBS)
  QTC_LIBS=$$dirname(QTC_LIBS)
21
22
  QTC_LIBS=$$QTC_LIBS/$$IDE_LIBRARY_BASENAME/qtcreator
  QTC_LIBS=$$QTC_LIBS/$$IDE_LIBRARY_BASENAME/qtcreator
23
  QMAKE_RPATHDIR *= $$QTC_LIBS
con's avatar
con committed
24
25
26
}

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

DESTDIR= $$[QT_INSTALL_PLUGINS]/designer