[CMake] Adding non .cpp or .h file to a visual studio project.
Philip Lowman
philip at yhbt.com
Fri Nov 2 10:03:54 EDT 2007
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
More information about the CMake
mailing list