[Qt-creator] Howto make qt-creator list the header files in the project tree for cmake in CMakelists.txt

Paulo Silva paulo.jnkml at gmail.com
Tue Nov 2 03:14:37 CET 2010


Hi guys and girls,

my question is exactly that:
Howto make qt-creator list the header files in the project tree for cmake in
CMakelists.txt?
Because I have something like
include_directories(${INCLUDE_DIRECTORIES}include) and
it does nothing.

Now, if I do

file(GLOB HEADERS "include/*.hpp")

add_executable( ${BIN} test/main.cpp ${HEADERS} )


It works but it does not feel like the optimal solution.

Is there a better way of doing this?


Thanks,

Paulo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20101102/50d8f86a/attachment.html 


More information about the Qt-creator-old mailing list