Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure qmake so my app is install with "make install"?

I have a written a small qt app that I use qmake to build, but I am missing the make install target. How to configure qmake so my binary is copied to /usr/local/bin/ when I run "make install"?

  1. qmake
  2. make
  3. make install

What do I need to add to my .pro file to get the "install" target and how do I control what file and path will be used?


Btw the install will be on Linux pc:s like Debian and Ubuntu.

like image 580
Johan Avatar asked Sep 16 '12 08:09

Johan


1 Answers

Add something like this to you .pro file

target.path = /usr/local/bin/
INSTALLS += target
like image 62
Johan Avatar answered Oct 27 '22 11:10

Johan