Add uic-created header files to installation target



  • Hi

    I have a widget library containing ui file. Pro file looks like this:

    @
    TEMPLATE = lib

    SOURCES += ...

    HEADERS += ...

    FORMS += ...

    TARGET = foo
    headers.files = $$HEADERS

    unix {
    target.path = /usr/lib
    headers.path = /usr/include/foo/
    }

    INSTALLS += target headers
    @

    When I'm installing library on system, ui_*.h files are not present in /usr/include/foo/ and this cause compilation error. How do I either remove need to those files or include them in installation target?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.