Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [SOLVED] Using asterisk (*) in .pro-File with directories
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Banshee
    wrote on 7 May 2013, 02:03 last edited by
    #1

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

    @SOURCES += myfolder/source1.cpp
    myfolder/source2.cpp
    HEADERS += myfolder/header1.h
    myfolder/header2.h
    FORMS += myfolder/form1.ui
    myfolder/form2.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/
    .h
    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 by release/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]

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 7 May 2013, 06:01 last edited by
      #2

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

      (Z(:^

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Banshee
        wrote on 7 May 2013, 06:14 last edited by
        #3

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

        1 Reply Last reply
        0

        1/3

        7 May 2013, 02:03

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved