Results 1 to 2 of 2

Thread: Project file variable that defines the build path

  1. #1
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    80
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Project file variable that defines the build path

    Hello,

    I am looking for the Qt project file variable to use in order to specify the build path.
    In my example below I would like to replace build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug by a variable as this depends on the Qt version, on the build (debug,release) version, on the compiler used, on the target platform.


    Qt Code:
    1. QT += core widgets
    2.  
    3. TARGET = pluginDemo
    4. TEMPLATE = app
    5.  
    6. SOURCES += main.cpp \
    7. mainwindow.cpp
    8. # pluginDialog.cpp
    9.  
    10. HEADERS += mainwindow.h
    11. # pluginDialog.h
    12.  
    13. RESOURCES += res/icons.qrc
    14.  
    15. win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug/src/libs/extensionsystem/release/ -lExtensionSystem
    16. else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug/src/libs/extensionsystem/debug/ -lExtensionSystem
    17. else:unix: LIBS += -L$$PWD/../../../build-Wokspace-Desktop_Qt_5_8_0_MSVC2015_64bit-Debug/src/libs/extensionsystem/ -lExtensionSystem
    18.  
    19. INCLUDEPATH += $$PWD/../../libs/extensionsystem
    20. DEPENDPATH += $$PWD/../../libs/extensionsystem
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Project file variable that defines the build path

    I think the $$OUT_PWD variable contains the build dir or part of it.

    Cheers,
    _

Similar Threads

  1. Replies: 4
    Last Post: 20th January 2013, 11:01
  2. Replies: 3
    Last Post: 27th September 2011, 06:42
  3. Qt Creator : Project DEFINES not reflected in editor
    By dot-borg in forum Qt Tools
    Replies: 3
    Last Post: 22nd April 2010, 22:05
  4. Replies: 7
    Last Post: 2nd November 2009, 19:07
  5. Adding custom defines when on debug build
    By chus in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2007, 11:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.