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. adding shell commands to .pro file to update includes and libraries.
Forum Update on Monday, May 27th 2025

adding shell commands to .pro file to update includes and libraries.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 895 Views
  • 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.
  • R Offline
    R Offline
    rwpattie
    wrote on 3 May 2018, 20:35 last edited by
    #1

    I've developed a data acquisition GUI that uses CERN's ROOT software libraries. During initial development I just added the include and libraries by hand, but now that this software is being adopted around my lab I need a more dynamic way to do this on each installation. For a normal c++ program linking to the ROOT libraries I can use shell commands provided by the local installation of ROOT in the makefile to locate the includes and library paths:

    CXXFLAGS += $(shell root-config --cflags)
    LIBS += $(shell root-config --libs)

    How do I add similar lines to the Qt pro file, so that the ROOT libraries and includes can be found on any computer with ROOT installed?

    Thanks for any help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 3 May 2018, 20:39 last edited by
      #2

      Hi and welcome to devnet,

      You are likely looking for the system function.

      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

      1/2

      3 May 2018, 20:35

      • Login

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