No subject
Tue Nov 2 11:10:42 EDT 2010
one directory by tool project, I'll need to add_subdirectory() for each tool
project, right?
I'll try to us that in my main repo that have to know the projects anyway.
On Wed, Dec 8, 2010 at 17:20, David Cole <david.cole at kitware.com> wrote:
> Every "project(...)" command in a CMakeLists.txt file (we expect at
> most one in any given CMakeLists.txt file) results in a *.sln file
> being generated for use with Visual Studio.
>
> Every add_library(...), add_executable(...) and add_custom_target(...)
> results in a *.vcproj or *.vcxproj file being generated for Visual
> Studio.
>
> The behavior you are seeing is probably due to the use of the
> "add_subdirectory(...)" command. CMake does not "scan" anything
> automatically. You must explicitly say what CMakeLists.txt files in
> sub-directories you want to read.
>
>
> HTH,
> David
>
>
> On Wed, Dec 8, 2010 at 10:57 AM, Klaim <mjklaim at gmail.com> wrote:
> > Sorry, a part of my sentence got cut :
> > I don't understand what makes, for example, the CLang project generate
> > different projects in the Visual Studio solution generated depending on
> the
> > project folder content in LLVM repo. Or maybe it's automatic because
> Cmake
> > will scan all the subfolders of folders where there is a CMakeLists.txt?
> >
> > On Wed, Dec 8, 2010 at 16:53, Klaim <mjklaim at gmail.com> wrote:
> >>
> >> I don't understand what makes, for example, the CLang project generate
> >> different projects in the solution folder depending on the project
> folder
> >> content in LLVM repo? Or maybe it's automatic because Cmake will scan
> all
> >> the subfolders of folders where there is a CMakeLists.txt?
> >
> > _______________________________________________
> > 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
> >
>
--00221534d4cf89dded0496ecccd0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Thanks it's more clear.=C2=A0<div>From what I read in the documentation=
, if I have a "tools" directory with one directory by tool projec=
t, I'll need to=C2=A0<span style=3D"font-family:arial, sans-serif;font-=
size:10.8333px;border-collapse:collapse;color:rgb(51, 51, 51)">add_subdirec=
tory() </span>for=C2=A0each tool project, right?</div>
<div>I'll try to us that in my main repo that have to know the projects=
anyway.=C2=A0</div><div><br></div><div><br>
<br><div class=3D"gmail_quote">On Wed, Dec 8, 2010 at 17:20, David Cole <sp=
an dir=3D"ltr"><<a href=3D"mailto:david.cole at kitware.com" target=3D"_bla=
nk">david.cole at kitware.com</a>></span> wrote:<br><blockquote class=3D"gm=
ail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-le=
ft:1ex">
Every "project(...)" command in a CMakeLists.txt file (we expect =
at<br>
most one in any given CMakeLists.txt file) results in a *.sln file<br>
being generated for use with Visual Studio.<br>
<br>
Every add_library(...), add_executable(...) and add_custom_target(...)<br>
results in a *.vcproj or *.vcxproj file being generated for Visual<br>
Studio.<br>
<br>
The behavior you are seeing is probably due to the use of the<br>
"add_subdirectory(...)" command. CMake does not "scan" =
anything<br>
automatically. You must explicitly say what CMakeLists.txt files in<br>
sub-directories you want to read.<br>
<br>
<br>
HTH,<br>
David<br>
<div><div></div><div><br>
<br>
On Wed, Dec 8, 2010 at 10:57 AM, Klaim <<a href=3D"mailto:mjklaim at gmail.=
com" target=3D"_blank">mjklaim at gmail.com</a>> wrote:<br>
> Sorry, a part of my sentence got cut :<br>
> =C2=A0I don't understand what makes, for example, the CLang projec=
t generate<br>
> different projects in the Visual Studio solution generated depending o=
n the<br>
> project folder content in LLVM repo. Or maybe it's automatic becau=
se Cmake<br>
> will scan all the subfolders of folders where there is a CMakeLists.tx=
t?<br>
><br>
> On Wed, Dec 8, 2010 at 16:53, Klaim <<a href=3D"mailto:mjklaim at gmai=
l.com" target=3D"_blank">mjklaim at gmail.com</a>> wrote:<br>
>><br>
>> I don't understand what makes, for example, the CLang project =
generate<br>
>> different projects in the solution folder depending on the project=
folder<br>
>> content in LLVM repo? Or maybe it's automatic because Cmake wi=
ll scan all<br>
>> the subfolders of folders where there is a CMakeLists.txt?<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.ki=
tware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href=3D"http://www.kitware.com/opensource/opensource.html" target=
=3D"_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href=3D"http://www.cmake.org/Wiki/CMake_FAQ" target=3D"_blank">http=
://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href=3D"http://www.cmake.org/mailman/listinfo/cmake" target=3D"_bla=
nk">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
</blockquote></div><br></div>
--00221534d4cf89dded0496ecccd0--
More information about the CMake
mailing list