Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Alexander Neundorf
On Wednesday 17 June 2009, Richard Offer wrote: > (probably a newbie question, but google didn't show anything relevant and > answered) > > > I have a project that includes a third party library (Poco), and then my > application that links to it. Everything is built from a single top level > CMakeL

Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Tyler Roscoe
On Wed, Jun 17, 2009 at 01:37:14PM -0700, Richard Offer wrote: > That seems to be the crux. > > Its not unreasonable that its up to the project to define that code, I was > just hoping that I'd missed that CMake would export a PROJECT/install target > to make embedding external projects easier. F

Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Richard Offer
On Wed, Jun 17, 2009 at 12:22 PM, Tyler Roscoe wrote: > > Note that CMake's INSTALL target (which runs the rules you define with > the install() command) isn't a "real" target so unfortunately you can't > do things like > >add_dependencies(INSTALL myLib1 ... mylibN) > > There is an request in

Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Tyler Roscoe
On Wed, Jun 17, 2009 at 11:20:01AM -0700, Richard Offer wrote: > make install in the Poco build directory. Does Poco build with CMake, or with something else (autotools)? > However a make install from the top level doesn't work since it seems its > trying to build all the code first and then inst

Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Richard Offer
On Wed, Jun 17, 2009 at 10:02 AM, Tyler Roscoe wrote: > On Wed, Jun 17, 2009 at 09:54:58AM -0700, Richard Offer wrote: > > However I need to run the install phase of Poco before the application > can > > link to the library - its the install phase of Poco that copies the > headers > > and librari

Re: [CMake] Install of library sub-project prior to building application

2009-06-17 Thread Tyler Roscoe
On Wed, Jun 17, 2009 at 09:54:58AM -0700, Richard Offer wrote: > However I need to run the install phase of Poco before the application can > link to the library - its the install phase of Poco that copies the headers > and libraries from all its many sub-directories into the single > LIBRARY_OUTPU

[CMake] Install of library sub-project prior to building application

2009-06-17 Thread Richard Offer
(probably a newbie question, but google didn't show anything relevant and answered) I have a project that includes a third party library (Poco), and then my application that links to it. Everything is built from a single top level CMakeLists.txt file. Poco is includes using add_subdirectory(), th