[CMake] Listing header files in Visual Studio
Brad King
brad.king at kitware.com
Tue Jan 18 09:21:26 EST 2005
E. Wing wrote:
> I tried a very simple ADD_CUSTOM_TARGET which just listed all the
> files as dependencies, but this wasn't sufficient.
>
> For the dummy file, Is there a way to detect in CMake if a Visual
> Studio project is being generated. I would prefer to isolate this case
> in a VS only block.
The variable CMAKE_GENERATOR is set to the name of the generator
selected. However, I suggest you take Bill Hoffman's idea to add the
sources to another library. As he said, if you were using a native VS
build system then you would have to do it that way anyway.
-Brad
More information about the CMake
mailing list