[CMake] adding headers for QTCreator

Witold E Wolski wewolski at gmail.com
Tue Oct 9 03:34:24 EDT 2012


Hi,

I try to add all header files in the include directory so they are visible
in QTCreator.
My attempt looks like this.

file(GLOB Demo_HEADERS RELATIVE ${CMAKE_SOURCE_DIR}/include "*.h")
message(STATUS ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
message(STATUS "${Demo_HEADERS}")
message(STATUS ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
add_library(headers SHARED ${Demo_HEADERS} Dummy.cpp)

Unfortunately the ${Demo_HEADERS} thing is empty :(

regards



-- 
Witold Eryk Wolski

Triemlistrasse 155
8047 Zuerich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121009/928a4ccf/attachment-0001.htm>


More information about the CMake mailing list