[CMake] Adding "*.obj" geometry files...
Daniel Dekkers
d.dekkers at cthrough.nl
Mon Jun 25 10:49:46 EDT 2012
Hi Brad,
Yes you are right. With the VS2010 generator, with HEADER_FILE_ONLY, the file "Item Type" is set to "C++/C header". So it works (I've tested it with CMake-2.8.9-rc1).
But it is still uncomfortable that with the VS2008 generator, the file is explicitly set as "Excluded From Build", complete with red stop sign icons in the IDE, while with VS2010, the files are not "Excluded From Build" but labeled as header only.
Isn't there a "CMake-way" that always results in "Excluded From Build" set, independent of the generator?
Thanks,
Daniel Dekkers
On Jun 20, 2012, at 5:34 PM, Brad King wrote:
> On 06/20/2012 11:08 AM, Daniel Dekkers wrote:
>> Here you go...
>
> The project file contains
>
> <ItemGroup>
> <ClInclude Include="..\..\HeaderOnlyTest\test.xml" />
> <ClCompile Include="..\..\HeaderOnlyTest\main.c" />
> </ItemGroup>
>
> so it tells VS that "test.xml" is "HEADER_FILE_ONLY".
> That is the same as in my project file. I can build
> with no errors. Be sure to use a fresh build tree.
>
> -Brad
More information about the CMake
mailing list