Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-09 Thread David Cole
On Fri, Dec 9, 2011 at 11:41 AM, J Decker wrote: > On Thu, Dec 8, 2011 at 1:45 PM, David Cole wrote: >> No, the FOLDER property is only a mechanism for grouping and >> organizing *targets*, it is not a source file property... >> > > uhh...  FOLDER works on projects in a solution, but it also work

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-09 Thread J Decker
On Thu, Dec 8, 2011 at 1:45 PM, David Cole wrote: > No, the FOLDER property is only a mechanism for grouping and > organizing *targets*, it is not a source file property... > uhh... FOLDER works on projects in a solution, but it also works on source files within a project. SET_TARGET_PROPERTIES

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-09 Thread Mateusz Łoskot
2011/12/9 David Cole : > 2011/12/8 Mateusz Łoskot : >> 2011/12/8 David Cole : >>> 2011/12/8 Mateusz Łoskot : On 8 December 2011 21:45, David Cole wrote: > No, the FOLDER property is only a mechanism for grouping and > organizing *targets*, it is not a source file property...

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread David Cole
2011/12/8 Mateusz Łoskot : > 2011/12/8 David Cole : >> 2011/12/8 Mateusz Łoskot : >>> On 8 December 2011 21:45, David Cole wrote: No, the FOLDER property is only a mechanism for grouping and organizing *targets*, it is not a source file property... >>> >>> Is it the source_group still th

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread Mateusz Łoskot
2011/12/8 David Cole : > 2011/12/8 Mateusz Łoskot : >> On 8 December 2011 21:45, David Cole wrote: >>> No, the FOLDER property is only a mechanism for grouping and >>> organizing *targets*, it is not a source file property... >> >> Is it the source_group still the recommended way of grouping? > >

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread David Cole
2011/12/8 Mateusz Łoskot : > On 8 December 2011 21:45, David Cole wrote: >> No, the FOLDER property is only a mechanism for grouping and >> organizing *targets*, it is not a source file property... > > Is it the source_group still the recommended way of grouping? > > Best regards, > -- > Mateusz L

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread Mateusz Łoskot
On 8 December 2011 21:45, David Cole wrote: > No, the FOLDER property is only a mechanism for grouping and > organizing *targets*, it is not a source file property... Is it the source_group still the recommended way of grouping? Best regards, -- Mateusz Loskot, http://mateusz.loskot.net Charter

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread David Cole
No, the FOLDER property is only a mechanism for grouping and organizing *targets*, it is not a source file property... On Thu, Dec 8, 2011 at 4:19 PM, J Decker wrote: > set_property(GLOBAL PROPERTY USE_FOLDERS On) > > SET_SOURCE_FILES_PROPERTIES( ${YOUR_SOURCES} PROPERTIES >                FOLDE

Re: [CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread J Decker
set_property(GLOBAL PROPERTY USE_FOLDERS On) SET_SOURCE_FILES_PROPERTIES( ${YOUR_SOURCES} PROPERTIES FOLDER "project folder name here" ) On Thu, Dec 8, 2011 at 12:32 PM, Stephen Torri wrote: > CMake version: 2.8 > IDE: Visual Studio 2008 > > For the source and header files I wou

[CMake] How to preserve directory structure within Visual Studio

2011-12-08 Thread Stephen Torri
CMake version: 2.8 IDE: Visual Studio 2008 For the source and header files I would like to preserve the directory structure within the Visual Studio "Header Files" and "Source Files" folders. Without it should there occur two files with the same name but in different directories only one is shown.