Principal Scientist, Affinegy, Inc.
From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of
Ansis Malinš
Sent: Monday, February 4, 2013 2:23 AM
To: cmake
Subject: [CMake] When should I use add_subdirectory and when ExternalProject?
If I have a dependency (e.g. SDL2) that
-Original Message-
From: Alexander Neundorf
To: David Cole
Cc: cmake
Sent: Tue, Feb 5, 2013 2:50 pm
Subject: Re: [CMake] When should I use add_subdirectory and when
ExternalProject?
On Tuesday 05 February 2013, David Cole wrote:
> -Original Message-
>
On Tuesday 05 February 2013, David Cole wrote:
> -Original Message-
> From: Alexander Neundorf
> To: cmake
> Sent: Tue, Feb 5, 2013 1:09 pm
> Subject: Re: [CMake] When should I use add_subdirectory and when
> ExternalProject?
>
> On Monday 04 February 2013, D
-Original Message-
From: Alexander Neundorf
To: cmake
Sent: Tue, Feb 5, 2013 1:09 pm
Subject: Re: [CMake] When should I use add_subdirectory and when
ExternalProject?
On Monday 04 February 2013, David Cole wrote:
> The OpenChemistry project ( https://github.com/OpenChemis
Hi Alex,
You could probably pass the CMAKE_INSTALL_PREFIX option.
For example:
https://github.com/Slicer/Slicer/blob/master/SuperBuild/External_DCMTK.cmake#L44
Hth
Jc
On Tue, Feb 5, 2013 at 1:10 PM, Alexander Neundorf
wrote:
> On Monday 04 February 2013, David Cole wrote:
> > The OpenChemistry
On Monday 04 February 2013, David Cole wrote:
> The OpenChemistry project ( https://github.com/OpenChemistry/openchemistry
> ) is a very good example of a SuperBuild project that builds all of its
> external dependencies via ExternalProject, and then all of its git
> submodules ("internal dependenc
tions.
D
-Original Message-
From: Ansis Māliņš
To: Kent Williams
Cc: cmake
Sent: Mon, Feb 4, 2013 10:24 am
Subject: Re: [CMake] When should I use add_subdirectory and when
ExternalProject?
>SuperBuild pattern
Tell me all about it!
--
Powered by www.kitware.com
Visit other Kitwar
The real world example is Slicer --
http://www.slicer.org/pages/DeveloperOrientation
This is rather a large and complex project and the way they do somethings
is hard to decode.
Make sure you read through and understand this:
http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8
In a SuperBuild, all projects, even your own, are built by one large
"super-build" project that contains a series of ExternalProject_Add calls.
That's all there is to it.
On Mon, Feb 4, 2013 at 4:23 PM, Ansis Māliņš wrote:
> >SuperBuild pattern
> Tell me all about it!
>
> --
>
> Powered by www.
>SuperBuild pattern
Tell me all about it!
--
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/uns
They are two different things entirely.
add_subdirectory is used when you have a project structured hierarchically
in directories and subdirectories, but you want the entire project
configured at one time.
ExternalProject is used to download, configure and build a project that is
a prerequisite t
If your project is open source and you want to have any chance of it ever
being included in any of the major Linux distros without making somebody
very angry at you, forget about add_subdirectory() for external
dependencies.
On Mon, Feb 4, 2013 at 3:29 PM, Theodore Papadopoulo <
theodore.papadopo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 02/04/2013 09:23 AM, Ansis Māliņš wrote:
> If I have a dependency (e.g. SDL2) that seems to work with
> add_subdirectory just fine, should I still use ExternalProject_Add
> instead? Given both ways work, what should I prefer? What are the
> tradeo
Am Montag, 4. Februar 2013, 09:23:20 schrieb Ansis Māliņš:
> If I have a dependency (e.g. SDL2) that seems to work with add_subdirectory
> just fine, should I still use ExternalProject_Add instead? Given both ways
> work, what should I prefer? What are the tradeoffs?
Hello Ansis,
most of the time
I don't know about Windows, but then you might have a team that shares a
common SDL build on a network drive, and then references that using the
ExternalProject feature instead of building this external dependency over
and over again.
On Mon, Feb 4, 2013 at 12:26 PM, Ansis Māliņš wrote:
> "SDL i
"SDL installation"? But there is no such thing. At least not on Windows.
... Right?
On Mon, Feb 4, 2013 at 1:10 PM, Michael Wild wrote:
> In that case, clearly ExternalProject_Add. It is an external dependency,
> and should be treated as such. If a users have SDL already installed on
> their sy
If I have a dependency (e.g. SDL2) that seems to work with add_subdirectory
just fine, should I still use ExternalProject_Add instead? Given both ways
work, what should I prefer? What are the tradeoffs?
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.
17 matches
Mail list logo