[CMake] excluded from build in Visual Studio project

Michael Legleux legleux at gmail.com
Wed Jul 13 18:35:10 EDT 2016


I have a use case that I haven't had much luck googling.

I have a project that needs to have files visible in the Visual Studio IDE
but marked with the red "Excluded from build" symbol.
The source files are not needed in any way for the visual studio project,
but for example, they use functions defined in project source files, so
they need to be searchable and updatable from the visual studio ide.

I can't seem to find any nice clean way to do this with cmake (or anyway
yet for that matter.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160713/5c345864/attachment.html>


More information about the CMake mailing list