c++ - Installing files using qmake: how to get the executable too? -


i'm building app qmake.

my project.pro file looks like:

template = app config += console config -= app_bundle config -= qt  sources += [all source files] headers += [all headers] 

after build, want "make install" copy required in subfolder, added following:

package.path = $${out_pwd}/package package.files += myapp.exe myapp.ini [other dlls] package.config = no_check_exist installs += package 

i cannot have in way compiled binary copied alongside; prefixed $$objects_dir/ , others, can't find right variable containing path build directory!

it seems these variables meant way change qmake's behaviour, example change build directory. don't want change it; want access it!

is there other variable use? basically, want put in "package.files" full path compiled executable binary.

thanks!

qmake puts complied executable (or library) in location pointed destdir. usually, when want put binary , support files, set destdir location want install stuff, set installs.path destdir.

destdir = $${out_pwd}/package  package.path = $${destdir} package.files += myapp.exe myapp.ini [other dlls] package.config = no_check_exist installs += package 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -