Re: [CMake] excluded from build in Visual Studio project

2016-07-13 Thread Guillaume Dumont
Hi, I think you can add any files to a library/executable target and they will show up in the IDE. If the files are actual source code files such as .cpp/.c/.cxx you can set HEADER_FILE_ONLY property on them so that they do no get compiled when the target is built the https://cmake.org/cmake/help/

Re: [CMake] excluded from build in Visual Studio project

2016-07-13 Thread Craig Scott
Somewhat related, the following thread from a few days ago may be helpful: http://public.kitware.com/pipermail/cmake/2016-July/063897.html In short, you probably want to use add_custom_target() without the ALL keyword. On Thu, Jul 14, 2016 at 8:35 AM, Michael Legleux wrote: > I have a use ca

[CMake] excluded from build in Visual Studio project

2016-07-13 Thread Michael Legleux
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 de