On Thu, Dec 4, 2008 at 4:48 PM, <[EMAIL PROTECTED]> wrote: > > Is it possible to have source_group() place files into > > a "solution directory"? This would be a folder directly > > under the solution instead of inside of a project. > > I'm confused, because I don't think of SOURCE_GROUP() as > placing any files in any directory. Instead, you need to > call ADD_EXECUTABLE or ADD_LIBRARY to create a Visual Studio > "project" file (DSP or VCPROJ), and all SOURCE_GROUP does > is to specify which file names are in one of the "folders" > described within that DSP or VCPROJ file. > > And of course the DSP or VCPROJ file specifies many > different kinds of files that Visual Studio will produce. > I've already asked the mailing list how to control where > each one of _those_ files will be written. See my message > in the list archive: > > http://www.cmake.org/pipermail/cmake/2008-December/025803.html > > If this has anything to do with what you're requesting, > maybe we should combine the two requests. > > By the way, I've been following your other emails, and > they remind me of some of what I went through when I first > tried to apply CMake to an already existing software project > about five years ago. (Yes, it did ultimately work and > we've been using it on that project ever since.)
Thanks for getting back with me David. By directories I mean "Solution Folders", sorry for the confusion. This is a feature that allows you to add "Folders" to the solution. This has nothing to do with projects. You can add files to these solution folders. Solution folders are at the same level tree-wise as projects are (Directly under the solution). There are a couple of projects that I have that do not have any implementation files (Don't ask why lol). For these, I need solution folders since creating a project for these won't work- A project needs at least 1 CPP file to be usable. I'm hoping source_group() can be used without any project and simply add solution folders to the solution.
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake