adding shell commands to .pro file to update includes and libraries.
-
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.
-
Hi and welcome to devnet,
You are likely looking for the system function.