Qmake and Make using separate folders for sources and headers
I'm going mad on this stupid problem.

I've a tree like this:

<pre>src
|--- sources
        |--- one.cpp
        |--- two.cpp
        |--- sources.pro
|--- headers
        |--- one.h
        |--- two.hpp
        |--- headers.pro
|--- src.pro
</pre>

I tried EVERYTHING to make it look in both the folders, but somehow I can't get it working. I don't know much about QMake, but I tought it was easy. And I was wrong.

So actually I ended up having the src.pro file in this way:
<pre>
<code>
QT += dbus

CONFIG += warn_on
DEFINES = QT_FATAL_WARNINGS QT_NO_DEBUG_OUTPUT

devel {
  DEFINES -= QT_NO_DEBUG_OUTPUT
}

OBJECTS_DIR += build
MOC_DIR += build

TARGET = example

[...]

TEMPLATE = subdirs
SUBDIRS = sources \
          headers

[...]
</code>
</pre>

And the sources.pro and headers.pro in this way:

**sources.pro**
<pre>
<code>
SOURCES = one.cpp \
          two.cpp
</code>
</pre>

**headers.pro**
<pre>
<code>
HEADERS = one.h \
          two.hpp
</code>
</pre>

And of course (not) the problem is that it still doesn't see the stuff all together.
I looked at the documentation too, but I swear I don't get it lol
Qmake and Make using separate folders for sources and headers
===

I'm going mad on this stupid problem.

I've a tree like this:

<pre>src
|--- sources
        |--- one.cpp
        |--- two.cpp
        |--- sources.pro
|--- headers
        |--- one.h
        |--- two.hpp
        |--- headers.pro
|--- src.pro
</pre>

I tried EVERYTHING to make it look in both the folders, but somehow I can't get it working. I don't know much about QMake, but I tought it was easy. And I was wrong.

So actually I ended up having the src.pro file in this way:
<pre>
<code>
QT += dbus

CONFIG += warn_on
DEFINES = QT_FATAL_WARNINGS QT_NO_DEBUG_OUTPUT

devel {
  DEFINES -= QT_NO_DEBUG_OUTPUT
}

OBJECTS_DIR += build
MOC_DIR += build

TARGET = example

[...]

TEMPLATE = subdirs
SUBDIRS = sources \
          headers

[...]
</code>
</pre>

And the sources.pro and headers.pro in this way:

**sources.pro**
<pre>
<code>
SOURCES = one.cpp \
          two.cpp
</code>
</pre>

**headers.pro**
<pre>
<code>
HEADERS = one.h \
          two.hpp
</code>
</pre>

And of course (not) the problem is that it still doesn't see the stuff all together.
I looked at the documentation too, but I swear I don't get it lol