Antonio Di Monaco wrote:
> Hi,
>
> I've a problem importing a CMake project in Qt Creator.
>
> I mean, everything seems fine, but I'm not able to find "include"
> directory (and all files in that dir) in files list. All other
> directories (src, res, ui) are present.
>
> My CMakeLists.txt contains the row
>
> include_directories( include ${EXIF_INCLUDE_DIRS} ${CMAKE_BINARY_DIR} )
>
>
> and it builds perfectly inside Qt Creator or outside.
>
> Do you have any idea where's the problem?
>
> Thanks,
> Tony.
>
I have had the same problem and Bjørn told me that a work around is to
put the h-files into the source list aswell:
SET(SRCS
gui/widgets/button.cpp
gui/widgets/button.h
etc.
(see the reply to "Work around request for "Project files included from
CMakeLists.txt are not shown in the navigation tree" on this mailing list from
2009-08-30 for more details).
Regards,
Mar
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator