Josef Karthauser wrote:
> Hi there again,
> I’m using cmake to create some visual studio projects, and want to
> include some non-C files (config.txt for instance) into the vcproj file
> so that my Visual Studio users can edit the file from within the IDE. 
>   I can’t add them using ADD_LIBRARY or ADD_EXECUTABLE, so how do I
> register them?

This works for me on CMake 2.4.6 and Visual Studio 8:

SET_SOURCE_FILES_PROPERTIES(readme.txt PROPERTIES HEADER_FILE_ONLY true)
ADD_LIBRARY(foo foo.cc readme.txt)

-- 
Philip Lowman
Sr. Simulation Development Engineer, Modeling and Simulation Technology
General Dynamics Land Systems
http://www.gdls.com
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to