<font size=2 face="sans-serif">You mean in the case of a master CMakelists.txt
file I assume? That does work, and I like that functionality. The same
kind of thing works for Visual Studio solutions as well. I just don't think
this fits the usual paradigm of building my developers and I are used to.
</font>
<br>
<br><font size=2 face="sans-serif">For example, if they want to work on
a library, they would instinctively go to that library and make a build
folder and run CMake. They would not think to go to the top of the directory
tree, create a build folder in a location they never make folders or files
or do any work, and then progress down the build folder's directory path
to the library they want to build. Which is in a completely different location
than the source files of the library, which they'll soon be modifying.</font>
<br>
<br><font size=2 face="sans-serif">This would all work though, so it is
a valid solution.</font>
<br>
<br><font size=2 face="sans-serif">-------------------------------------------------------------<br>
Aaron Wright</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Michael Jackson <mike.jackson@bluequartz.net></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">Aaron_Wright@selinc.com</font>
<tr>
<td valign=top><font size=1 color=#5f5f5f face="sans-serif">Cc:</font>
<td><font size=1 face="sans-serif">cmake@cmake.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">03/22/2010 07:32 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [CMake] Handling library dependencies
and minimizing duplicated include_directories</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>If you are using any of the "Makefile" generators,
you can simply <br>
drill down into the folder of the library you want to build and issue <br>
the "make" command. The library, and anything that it depends
on will <br>
be built (or rebuilt) accordingly.<br>
___________________________________________________________<br>
Mike Jackson
</font></tt><a href=www.bluequartz.net><tt><font size=2>www.bluequartz.net</font></tt></a><tt><font size=2><br>
<br>
<br>
On Mar 22, 2010, at 9:52 AM, Aaron_Wright@selinc.com wrote:<br>
<br>
> I've always been a little confused by FIND_PACKAGE and those "*-
<br>
> config.cmake" files. So much so that I didn't use them in my
build <br>
> system at all. The main question I have is that I have several <br>
> developers and numerous little and big libraries. Because the whole
<br>
> project is so big it would be prohibitive for them all to work from
<br>
> a master CMakeLists.txt file at the top. I want each developer to
be <br>
> able to go the folder of the library they want to work on today and
<br>
> start building there. I want all the libraries that library depends
<br>
> on to be built or rebuilt if anything has changed in addition to <br>
> building the current library.<br>
><br>
> I've been unable to find a simple solution to this problem using <br>
> CMake, which makes me wonder if what I'm doing is off the wall, but
<br>
> it sounds so normal to me. I see these "*-config.cmake"
files but it <br>
> seems they are generated from a CMakelist.txt file, which wouldn't
<br>
> make any sense, because I'm not going to have a developer go to each
<br>
> dependant library and build it seperately so that the "*- <br>
> config.cmake" can be generated so that he can have those variables
<br>
> back in the library he really wants to build.<br>
><br>
> What am I missing?<br>
><br>
> -------------------------------------------------------------<br>
> Aaron Wright<br>
><br>
><br>
><br>
> From:<br>
> Daniel Lidström <daniel.lidstrom@sbg.se><br>
> To:<br>
> Cc:<br>
> <cmake@cmake.org><br>
> Date:<br>
> 03/20/2010 01:25 PM<br>
> Subject:<br>
> Re: [CMake] Handling library dependencies and minimizing <br>
> duplicated include_directories<br>
> Sent by:<br>
> cmake-bounces@cmake.org<br>
><br>
><br>
><br>
><br>
> > If the projects UMC3D, GFL etc can be used independently, but<br>
> > are all "under your control", then you shouldn't write<br>
> > FindUMC3D.cmake, FindGFL.cmake etc files, but create<br>
> > UMC3D-config.cmake, GFL-config.cmake etc files instead. Read<br>
> > the documentation of the FIND_PACKAGE command, especially the<br>
> > paragraphs about the "config mode". You'll also find
many<br>
> > discussions on this in the archives of this list.<br>
><br>
> Thanks a lot for your help Mike!<br>
><br>
> Regards,<br>
><br>
> Daniel Lidström<br>
> Stockholm, Sweden<br>
> _______________________________________________<br>
> Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
><br>
> Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: </font></tt><a href=http://www.cmake.org/Wiki/CMake_FAQ><tt><font size=2>http://www.cmake.org/Wiki/CMake_FAQ</font></tt></a><tt><font size=2><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> </font></tt><a href=http://www.cmake.org/mailman/listinfo/cmake><tt><font size=2>http://www.cmake.org/mailman/listinfo/cmake</font></tt></a><tt><font size=2><br>
><br>
> _______________________________________________<br>
> Powered by </font></tt><a href=www.kitware.com><tt><font size=2>www.kitware.com</font></tt></a><tt><font size=2><br>
><br>
> Visit other Kitware open-source projects at </font></tt><a href=http://www.kitware.com/opensource/opensource.html><tt><font size=2>http://www.kitware.com/opensource/opensource.html</font></tt></a><tt><font size=2><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: </font></tt><a href=http://www.cmake.org/Wiki/CMake_FAQ><tt><font size=2>http://www.cmake.org/Wiki/CMake_FAQ</font></tt></a><tt><font size=2><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> </font></tt><a href=http://www.cmake.org/mailman/listinfo/cmake><tt><font size=2>http://www.cmake.org/mailman/listinfo/cmake</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>