[CMake] setting Visual Studio solution name
J Decker
d3ck0r at gmail.com
Tue Sep 28 22:46:37 EDT 2010
On Tue, Sep 28, 2010 at 6:23 PM, Ryan Pavlik <rpavlik at iastate.edu> wrote:
> In most cases, you won't need more than one project call - each target
> (add_executable, etc) creates a visual studio project, so the only
> reason I can think of that you'd necessarily have multiple project
> calls is if you have a subdirectory that can also stand alone as a
> separate build.
Really? I guess that's what they meant about me using
${PROJECT_NAME}... I could have chosen a custom variable to start the
beginning of a new section of code... and can probably mass
find-replace specific projects that are being issues....
but if I wanted to apply options to sources specifically for a target,
I for some reason thought that the PROJECT would serve as that
container (like a new source list per project).
There are several places where I want to compile exactly the same
source for another target but with different options (console or
windowed mode for instance). Hmm I guess I end up specifying those
options on the target instead of per source (the same source is
indistinguishable to set_source_files_properties if it's used in two
targets...)
so really PROJECT is the name of the solution, and that's about it?
Well I guess it's just an alias for each directory in the project
workspace... and only the last name really counts. Hmm well maybe
the other names are also as good for directory to the same
directory...
What would project do for codeblocks that's not the same as say
'FOLDER' in visual studio?
>
> You might consider filing an issue about this in the bug tracker.
>
> Ryan
>
> On Tue, Sep 28, 2010 at 6:28 PM, J Decker <d3ck0r at gmail.com> wrote:
>> Is there a way to specify what the name of the solution file should
>> be? Currently it's named from the last PROJECT in a CMakeLists.txt.
>> I would prefer that it be the first name... I see methods of setting
>> output files for particular projects, but not the solution
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
>
> --
> Ryan Pavlik
> HCI Graduate Student
> Virtual Reality Applications Center
> Iowa State University
>
> rpavlik at iastate.edu
> http://academic.cleardefinition.com
> Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
>
More information about the CMake
mailing list