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. QMake: Getting TARGET name when using VERSION
Forum Updated to NodeBB v4.3 + New Features

QMake: Getting TARGET name when using VERSION

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 1.3k 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.
  • MassimoBM Offline
    MassimoBM Offline
    MassimoB
    wrote on last edited by MassimoB
    #1

    Hi all,

    how can I get the TARGET name when using VERSION in a lib TEMPLATE
    Example (file mylib.pro):

    TEMPLATE = lib
    VERSION = 1.0.0
    message($$TARGET)

    I get "mylib" while the actual target is named "mylib1"

    Thanks,
    Massimo

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

      Hi and welcome to devnet,

      TARGET contains the name of the library so if you want mylib1 you have to assign mylib1 to TARGET.

      VERSION contains the version of the library as in mylib.so.1.0.0

      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