Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Searching your project for all src/*/*.cpp files
Forum Updated to NodeBB v4.3 + New Features

Searching your project for all src/*/*.cpp files

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.9k 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.
  • S Offline
    S Offline
    sayezz
    wrote on last edited by
    #1

    Hey Derpinas and Derps,

    My Project structure looks like this
    @
    src
    | - A
    | - somefile.cpp
    | - more.cpp
    | - B
    | - xyz.cpp
    | - onemore.cpp@

    What i would like to do ist to tell my qmake.pro file that it should search for every *.cpp file in src/.

    In the makefile it works with this one:
    @
    SOURCE = $(wildcard src//.cpp)
    OBJECTS = $(addprefix Debug/rc,$(notdir $(SOURCE:.cpp=.o)))
    @

    But when i try to do this one in in my qmake.pro
    @
    SOURCE = $(wildcard src//.cpp)
    @

    it looks like this in my makefile
    @
    SOURCES = $(wildcard
    src//.cpp)
    OBJECTS = Debug/src/$(wildcard.o
    Debug/src/*.o
    @

    Any ideas or hints?
    Thanks!

    1 Reply Last reply
    0

    • Login

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