[Qt-creator] CMake builds vs qmake builds
Mohammad Mirzadeh
mirzadeh at gmail.com
Wed Apr 18 20:14:26 CEST 2012
well actually for 'folder1' and 'folder2'. The files inside those folders
are all gathered collectly
On Wed, Apr 18, 2012 at 11:13 AM, Mohammad Mirzadeh <mirzadeh at gmail.com>wrote:
> nope didn't help. Maybe this helps. So this is what my actual directory
> looks like:
>
>
> Package
> |
> |
> --- lib
> |
> |
> --- folder1
> |
> |
> ----- foo.h
> foo.c
> CMakeLists.txt
>
> --- folder2
> |
> |
> ----- bar.h
> bar.c
> CMakeLists.txt
>
> Projects
> |
> |
> --- Project1
> |
> |
> ----- src
> |
> |
> ---- main.c
> CMakeLists.txt
>
> I open up CMakeLists.txt in ./Projects/Project1/src/CMakeLists.txt and
> then I get bunch of ../../../ in the project tree for 'foo.c', 'foo.h',
> 'bar.c' and 'bar.h'
>
>
> On Wed, Apr 18, 2012 at 11:01 AM, Konstantin Tokarev <annulen at yandex.ru>wrote:
>
>>
>> 18.04.2012, 21:58, "Mohammad Mirzadeh" <mirzadeh at gmail.com>:
>> > You see with qmake, it nicely puts all files belonging to a folder
>> inside one branch with the absolute path but with my CMake it seems to use
>> relative paths and so I get lots of "../../../" branches! Is there a way to
>> fix this?
>>
>> Are you running Qt Creator from command line? If so, try to do cd `pwd
>> -P` than re-launch it and compare.
>>
>> --
>> Regards,
>> Konstantin
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120418/2347eb08/attachment.html>
More information about the Qt-creator
mailing list