Re: [CMake] Question regarding External Project add and VTK

2014-08-08 Thread jmerkow
Ahh, I believe I answered my own question. There seems to be a new function, ExternalProject_Install_CMake, Im testing it out now. Thanks! -Jameson On Thu, Aug 7, 2014 at 2:19 PM, jmerkow [via CMake] < ml-node+s3232098n7588095...@n2.nabble.com> wrote: > Jc, > > I guess I spoke too soon on my

Re: [CMake] Question regarding External Project add and VTK

2014-08-07 Thread jmerkow
Jc, I guess I spoke too soon on my 'last question.' How does make install work with this superbuild system. Looking at slicer and ctk, they seem to set INSTALL_COMMAND to "" in their superbuild.cmake, but presumably these packages still install even with superbuild mode on. Can you offer any adv

Re: [CMake] Question regarding External Project add and VTK

2014-06-19 Thread jmerkow
Jc, Thank you! This is what Im looking for. I've been having some trouble with these paths in other places too ([1]), but haven't had the time to go back and redo it. -Jameson [1] http://cmake.3232098.n2.nabble.com/CMAKE-RUNTIME-OUTPUT-DIRECTORY-inconsistent-between-make-and-Xcode-td7586922.ht

Re: [CMake] Question regarding External Project add and VTK

2014-06-19 Thread Jean-Christophe Fillion-Robin
Hi Jameson, There is indeed a recipe, assuming you are using ExternalProjectDependency.cmake from Artichoke [1], if you pass the variable to your project using ${CMAKE_CFG_INTDIR} it will be automatically passed as CMAKE_ARGS (instead of CMAKE_CACHE_ARGS) to external project and it will be expende

Re: [CMake] Question regarding External Project add and VTK

2014-06-15 Thread jmerkow
Ok I have one final question. One of the project is built using CMake but does not contain a config file. On unix systems (make file based generators) it works fantastic, but with windows (and I presume xcode), the libraries are output to the buildtype directory. i.e. Debug/ or Release/. I can a

Re: [CMake] Question regarding External Project add and VTK

2014-06-09 Thread Jameson Merkow
Jc, I'm working on an open source project, but we're no quite ready to release it to the world yet.  We will likely post it on github or another hosting website (publicly) in the coming months and I'll be sure to let you know. We are looking at an early fall release date.  Jameson — Sent

Re: [CMake] Question regarding External Project add and VTK

2014-06-09 Thread Jean-Christophe Fillion-Robin
Hi Jameson, Glad to know you sorted out the issue. By any chance, do you think you could share a link to a github repository with your project ? That would allow us to review how you integrated "ExternalProjectDependency" and improve it. Thanks Jc On Sun, Jun 8, 2014 at 9:39 PM, jmerkow wrote

Re: [CMake] Question regarding External Project add and VTK

2014-06-08 Thread jmerkow
Ok, So I've converted my project to a super build system with ExternalProjectDependency. I ended up going through and re writing most of my project (most of it was written while I was learning CMake and was pretty ugly). It is extremely useful. It seems that superbuilds are very popular, it seems

Re: [CMake] Question regarding External Project add and VTK

2014-06-04 Thread David Cole
P.S. I'm thinking we may want to move this off the CMake mailing list? Some of us are lurking and reading this thread with interest... It would be ok to keep it on the CMake mailing list unless it goes on an entirely non-ExternalProject tangent. :-) David C. -- Powered by www.kitware.com

Re: [CMake] Question regarding External Project add and VTK

2014-06-03 Thread jmerkow
Jc, Im been updating my CMakeLists.txt to do this superbuild. But I am running into an error. Im not sure why... My project is something like the following: cmake_minimum_required(VERSION 2.8.8) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake"

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread Jean-Christophe Fillion-Robin
Hi Jameson, That is indeed the idea. To clarify even further, 1) the call to ExternalProject_Include_Dependencies [1] should be added before "ExternalProject_Add". It will recursively include the needed dependencies. 2) By simply adding an additional parameter: by default ${_EP_AR

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread jmerkow
Jc, Thanks a lot this may be exactly what I am looking for. Basically I include ExternalProjectDependency in my project, then mark_as_superbuild() options/vars that I want to pass back to the 'normal' build. Add the external project with 'CMAKE_CACHE_ARGS' and this will pass those variables to

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread Jean-Christophe Fillion-Robin
Hi Jameson, To specifically address the issue you described, I started to develop an (experimental) module extending ExternalProject and providing some convenience function. Documentation is far from being perfect but looking at (1) the tests: https://github.com/commontk/Artichoke/tree/master/

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread jmerkow
I see, that makes a lot of sense. And in order to pass options from the 'superbuild' build to the 'normal' build you make them options as command line args in your ExternalProhect_Add command? i.e.: set( proj my_prog ) ExternalProject_Add( ${proj} DOWNLOAD_COMMAND "" SOURCE_DIR "${${p

Re: [CMake] Question regarding External Project add and VTK

2014-06-02 Thread Matthew Woehlke
On 2014-06-02 17:48, jmerkow wrote: > I want to add VTK as an external project, but I have a few questions. > > Looking online at examples of other projects using vtk as an > external project, many of them use a 'superbuild' style technique > [...] they have some option to enable SuperBuild (or a

[CMake] Question regarding External Project add and VTK

2014-06-02 Thread jmerkow
Hello, I want to add VTK as an external project, but I have a few questions. Looking online at examples of other projects using vtk as an external project, many of them use a 'superbuild' style technique (example here from the archives: [1]). By that I mean that they have some option to enable