Search code examples
qmake

How to rename file with qmake INSTALLS


I want to make INSTALLS option for my project.That i want is when i call "make install" to move and rename one or more files.


Solution

  • I found real answer in Qt forum

    For example i gave my own test

    MY_INSTALL_PATH =$$PWD/NewFolder
    extra_install.path = $$MY_INSTALL_PATH
    extra_install.extra = cp test.txt renamed.txt
    extra_install.files = renamed.txt
    INSTALLS += extra_install
    

    This is create copy of test.txt named rename.txt and after that put this file in NewFolder