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
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}
: 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
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
[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
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
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
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
: [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
-
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
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
: 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
: [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
; 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
}
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
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
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
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
18 matches
Mail list logo