Re: [CMake] External projects and imported targets

2010-05-24 Thread Alexander Neundorf
On Monday 17 May 2010, Timothy M. Shead wrote: On 05/16/2010 01:01 PM, Marcus D. Hanwell wrote: OK, may be others on the list may have other experiences they will share. After having spent quite a bit of time working on packaging for a Linux distro, and using CMake's external projects I see

[CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
I'd like to do the following: # Build external project A ExternalProject_Add(A ...) # Import target B, which is exported by A in AConfig.cmake ExternalProject_Get_Property(A, BINARY_DIR) set(A_DIR ${BINARY_DIR}) find_package(A) # Link with B add_library(C ...)

Re: [CMake] External projects and imported targets

2010-05-16 Thread Marcus D. Hanwell
On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead tsh...@k-3d.com wrote: I'd like to do the following: # Build external project A ExternalProject_Add(A ...) # Import target B, which is exported by A in AConfig.cmake ExternalProject_Get_Property(A, BINARY_DIR) set(A_DIR

Re: [CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead tsh...@k-3d.com mailto:tsh...@k-3d.com wrote: I'd like to do the following: # Build external project A ExternalProject_Add(A ...) # Import target B, which is exported

Re: [CMake] External projects and imported targets

2010-05-16 Thread Marcus D. Hanwell
On Sun, May 16, 2010 at 2:26 PM, Timothy M. Shead tsh...@k-3d.com wrote: On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead tsh...@k-3d.com mailto:tsh...@k-3d.com wrote: I'd like to do the following: # Build external project A

Re: [CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
On 05/16/2010 12:36 PM, Marcus D. Hanwell wrote: On Sun, May 16, 2010 at 2:26 PM, Timothy M. Shead tsh...@k-3d.com mailto:tsh...@k-3d.com wrote: On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: On Sun, May 16, 2010 at 12:48 PM, Timothy M. Shead tsh...@k-3d.com

Re: [CMake] External projects and imported targets

2010-05-16 Thread Marcus D. Hanwell
On Sun, May 16, 2010 at 2:47 PM, Timothy M. Shead tsh...@k-3d.com wrote: On 05/16/2010 12:36 PM, Marcus D. Hanwell wrote: On Sun, May 16, 2010 at 2:26 PM, Timothy M. Shead tsh...@k-3d.com mailto:tsh...@k-3d.com wrote: On 05/16/2010 12:11 PM, Marcus D. Hanwell wrote: On Sun,

Re: [CMake] External projects and imported targets

2010-05-16 Thread Timothy M. Shead
On 05/16/2010 01:01 PM, Marcus D. Hanwell wrote: OK, may be others on the list may have other experiences they will share. After having spent quite a bit of time working on packaging for a Linux distro, and using CMake's external projects I see many parallels. The external project allows us