Re: [CMake] Adding *.obj geometry files...

2012-06-25 Thread Daniel Dekkers
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

Re: [CMake] Adding *.obj geometry files...

2012-06-20 Thread Brad King
On 06/19/2012 04:27 PM, Daniel Dekkers wrote: CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(HeaderOnlyTest) SET(SOURCE_FILE main.c) SET(RESOURCE_FILE test.xml) SET_SOURCE_FILES_PROPERTIES(${RESOURCE_FILE} PROPERTIES HEADER_FILE_ONLY TRUE) ADD_EXECUTABLE(HeaderOnlyTest ${SOURCE_FILE}

Re: [CMake] Adding *.obj geometry files...

2012-06-19 Thread Daniel Dekkers
: Bill Hoffman; cmake@cmake.org Onderwerp: Re: [CMake] Adding *.obj geometry files... Hi Daniel. Yes, that's how Visual Studio shows excluded files. If you exclude a file by setting its Excluded from build property manually, you get the same. Petr On Tue, Jun 12, 2012 at 8:31 PM, Daniel Dekkers

Re: [CMake] Adding *.obj geometry files...

2012-06-19 Thread Brad King
On 06/19/2012 09:13 AM, Daniel Dekkers wrote: Although with the VS2008 generator setting the HEADER_FILE_ONLY property works to exclude the files from the build, in VS2010 no such luck. Am I doing something wrong in the syntax? Or is it a known issue with VS2010? IIRC CMake 2.8.7 and earlier

Re: [CMake] Adding *.obj geometry files...

2012-06-19 Thread Daniel Dekkers
[mailto:brad.k...@kitware.com] Verzonden: dinsdag 19 juni 2012 16:25 Aan: Daniel Dekkers CC: 'Petr Kmoch'; 'j'; cmake@cmake.org; 'Bill Hoffman' Onderwerp: Re: [CMake] Adding *.obj geometry files... On 06/19/2012 09:13 AM, Daniel Dekkers wrote: Although with the VS2008 generator setting

Re: [CMake] Adding *.obj geometry files...

2012-06-19 Thread Brad King
On 06/19/2012 11:28 AM, Daniel Dekkers wrote: We were already using 2.8.8. We tried the nightly build but still no effect. It's not just the obj files, it's xml, ttf, png, ... The VS2008 generator works fine, with the nightly build as well, but VS2010,.. no excludes. I just tried 2.8.8 and it

Re: [CMake] Adding *.obj geometry files...

2012-06-19 Thread Brad King
On 06/19/2012 04:27 PM, Daniel Dekkers wrote: SET_TARGET_PROPERTIES(HeaderOnlyTest PROPERTIES RESOURCE ${RESOURCE_FILE}) Does removing this line fix it? -Brad -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] Adding *.obj geometry files...

2012-06-19 Thread Daniel Dekkers
Nope :( -Oorspronkelijk bericht- Van: Brad King [mailto:brad.k...@kitware.com] Verzonden: dinsdag 19 juni 2012 22:45 Aan: Daniel Dekkers CC: 'j'; cmake@cmake.org; 'Bill Hoffman' Onderwerp: Re: [CMake] Adding *.obj geometry files... On 06/19/2012 04:27 PM, Daniel Dekkers wrote

Re: [CMake] Adding *.obj geometry files...

2012-06-13 Thread Petr Kmoch
: [CMake] Adding *.obj geometry files... On 6/12/2012 1:10 PM, Daniel Dekkers wrote: Hi, We are adding some resource files (XML files, shaders, etc.) to a Visual Studio project just to make them visible and accessible in the IDE. We also add geometry files with the extension obj. Visual Studio

Re: [CMake] Adding *.obj geometry files...

2012-06-13 Thread Daniel Dekkers
- Van: Petr Kmoch [mailto:petr.km...@gmail.com] Verzonden: woensdag 13 juni 2012 8:10 Aan: Daniel Dekkers CC: Bill Hoffman; cmake@cmake.org Onderwerp: Re: [CMake] Adding *.obj geometry files... Hi Daniel. Yes, that's how Visual Studio shows excluded files. If you exclude a file by setting its

Re: [CMake] Adding *.obj geometry files...

2012-06-13 Thread Michael Wild
On 06/13/2012 12:13 PM, Daniel Dekkers wrote: Somewhat related... We now have the resources excluded from the build but visible in the IDE. So far so good. But we also want to copy them (all) to the build directory. We have a post build command that does that. But if you only change the

Re: [CMake] Adding *.obj geometry files...

2012-06-13 Thread Tim Hutton
: Petr Kmoch [mailto:petr.km...@gmail.com] Verzonden: woensdag 13 juni 2012 8:10 Aan: Daniel Dekkers CC: Bill Hoffman; cmake@cmake.org Onderwerp: Re: [CMake] Adding *.obj geometry files... Hi Daniel. Yes, that's how Visual Studio shows excluded files. If you exclude a file by setting its

Re: [CMake] Adding *.obj geometry files...

2012-06-13 Thread Daniel Dekkers
: [CMake] Adding *.obj geometry files... You can group all the files to be copied into a single subproject. We do this here: http://reaction-diffusion.googlecode.com/svn/trunk/Ready/CMakeLists.txt (see the section copy installation files to build folder) On 13 June 2012 11:13, Daniel Dekkers d.dekk

Re: [CMake] Adding *.obj geometry files...

2012-06-13 Thread Petr Kmoch
; Bill Hoffman Onderwerp: Re: [CMake] Adding *.obj geometry files... You can group all the files to be copied into a single subproject. We do this here: http://reaction-diffusion.googlecode.com/svn/trunk/Ready/CMakeLists.txt (see the section copy installation files to build folder) On 13

Re: [CMake] Adding *.obj geometry files...

2012-06-13 Thread Daniel Dekkers
} DEPENDS ${RSRC_FILE} ) Thanks, Daniel -Oorspronkelijk bericht- Van: Petr Kmoch [mailto:petr.km...@gmail.com] Verzonden: woensdag 13 juni 2012 14:36 Aan: Daniel Dekkers CC: Tim Hutton; J; cmake@cmake.org Onderwerp: Re: [CMake] Adding *.obj geometry files

[CMake] Adding *.obj geometry files...

2012-06-12 Thread Daniel Dekkers
Hi, We are adding some resource files (XML files, shaders, etc.) to a Visual Studio project just to make them visible and accessible in the IDE. We also add geometry files with the extension obj. Visual Studio treats these as regular object files and starts using them during the build. Is

Re: [CMake] Adding *.obj geometry files...

2012-06-12 Thread Bill Hoffman
On 6/12/2012 1:10 PM, Daniel Dekkers wrote: Hi, We are adding some resource files (XML files, shaders, etc.) to a Visual Studio project just to make them visible and accessible in the IDE. We also add geometry files with the extension “obj”. Visual Studio treats these as regular object files

Re: [CMake] Adding *.obj geometry files...

2012-06-12 Thread Daniel Dekkers
2012 19:41 Aan: cmake@cmake.org Onderwerp: Re: [CMake] Adding *.obj geometry files... On 6/12/2012 1:10 PM, Daniel Dekkers wrote: Hi, We are adding some resource files (XML files, shaders, etc.) to a Visual Studio project just to make them visible and accessible in the IDE. We also add