Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Setting up environment variables in Qt Eclipse Integration.
Forum Updated to NodeBB v4.3 + New Features

Setting up environment variables in Qt Eclipse Integration.

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 2.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VC15
    wrote on last edited by
    #1

    Hi, everyone!

    I use Eclipse with Eclipse Qt Integration under Windows. I have 2 Qt projects. One is a shared library and the second is an executable which linked against this library.

    So in the 2nd project's project file I must write something like this:
    @
    INCLUDEPATH += $$(1ST_PROJECT_DIR)/src
    LIBS += -L$$(1ST_PROJECT_DIR)/debug -lmylib
    @
    I wonder if it is possible to define 1ST_PROJECT_DIR somewhere in the project's properties. I just don't want to define it in Windows user environment variables not to clutter them.
    Or maybe there is another way link projects together.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VC15
      wrote on last edited by
      #2

      I've found a better solution for organizing multiple projects. subdirs template in qmake helps with it!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved