Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Force linking when an external file changes
Forum Updated to NodeBB v4.3 + New Features

Force linking when an external file changes

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 927 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.
  • F Offline
    F Offline
    fp615
    wrote on last edited by
    #1

    I need to link an external library to the Qt application (actually the lib IS the app). This library is developed externally, with another language.
    When I update the library I need to trick Qt Creator adding/removing a space from main.cpp to force it build the project.
    I imagine it is possible to add a dependency and force a link when an external lib changes....

    Can you help me ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      This is what you are looking for:

      @PRE_TARGETDEPS += "/PATH/TO/LIBRARY/MyLibrary.lib"@

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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