PDA

View Full Version : qmake question



aarpon
12th February 2009, 10:25
Hello

I have a bunch of third party libraries in my project. Some of these have multiple source files with the same name, only in different directories. When I add all sources to a single qmake project, it tries to overwrite the object files (that originate from different directories but have the same name). This happens because $OBJECTS_DIR is equal for all sources.
What am I missing?

Thanks for any help.

spirit
12th February 2009, 10:27
this is known problem of qmake, there are two options:
1. rename file.
2. use another build system, for example CMake.

fullmetalcoder
14th February 2009, 12:28
Alternatively you could use subdirs. each 3rdparty would be compiled as a static lib and then they would all be linked to the main target(s).