[SOLVED] Using asterisk (*) in .pro-File with directories

  • Hello!
    I have a .pro file which looks like:

    @SOURCES += myfolder/source1.cpp
    HEADERS += myfolder/header1.h
    FORMS += myfolder/form1.ui

    And everything works great. However, if I try to use an asterisk to include all the files, i.e.:

    @SOURCES += myfolder/.cpp
    HEADERS += myfolder/
    FORMS += myfolder/*.ui@

    qmake throws a file-not-found-error:

    @WARNING: Failure to find: myfolder*.cpp
    :-1: error: No rule to make target myfolder/*.cpp', needed byrelease/source1.o'. Stop.@

    In both cases, Qt-Creator can find the files.

    Is there a way to use the asterisk? It's annoying to type the files manually.

    Thank you!

    [EDIT: Qt 4.8.4, Windows 7, Qt-Creator 2.6.1]

  • Moderators

    Take a look at posts by Bradley in "this thread":http://qt-project.org/forums/viewthread/1127.

  • Thank you, that's what I was searching for :)

Log in to reply

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