On Friday 23 April 2010 04:23:03 Noel O'Boyle wrote:
> Hello Marcus,
> 
> The next step in getting the OB language bindings back into shape is
> to handle including them in the distribution. It should work as
> follows:
> 
> (1) The developers need to run SWIG when using the SVN repo
> (2) The swig bindings should be included into the distributed tar.gz.
> (3) The users do not need to run SWIG
> 
> As far as I can see, (1) and (3) are easily handled via a -DRUN_SWIG flag.
> 
> But what to do with (2)? According to the CMake FAQ
> (http://www.cmake.org/Wiki/CMake_FAQ#Where_is_.22make_dist.22.3F),
> CMake does not make a "make dist" target. Any ideas how to handle
> this?
> 
Sorry Noel, this one slipped by unanswered. Geoff is totally right, but we 
could make this task easier by adding a custom target, and then execute the 
command(s) you wish.

cmake --help-command add_custom_target

You can even make a CMake script, and execute it with this target to run a 
sequence of commands. The COMMAND and WORKING_DIRECTORY arguments are likely 
to be the most useful. Note that in CMake 2.8.1 there is a bundled tar and 
gzip, so you can actually use CMake to do that if you wish.

I think a custom target named dist could be adapted to do whatever you wish.

Thanks,

Marcus

------------------------------------------------------------------------------

_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to