Philip Lowman wrote:
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)
I tried it this morning, and I didn't even need the SET_SOURCE_FILES_PROPERTIES.

Josh
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to