Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute shell command using qmake

I want to execute a shell command using qmake. The command is :

idlpp -S -l cpp MyModel.idl

This processes my IDL and generates some .cpp and .h files that I am including in my project. Right now I am executing it manually from a terminal but I want it to be automatically done when I run qmake.

What should I add in my .pro file? Is there something equivalent to the execute_process() used by cmake?

like image 379
Loay Ashmawy Avatar asked Mar 14 '17 14:03

Loay Ashmawy


1 Answers

Use system() function in .pro file

like image 66
Alexander Trotsenko Avatar answered Oct 23 '22 17:10

Alexander Trotsenko