Open asmodehn opened 11 years ago
This could be the task of a bunch of python scripts, and doesnt seem to be cmake related. We could "automate" wkcmake from python scripts calls. This allows more flexibility when dealing with all different kinds of platforms, and using many different tools.
XorfacX : i disagree because when the dependency is available it's used immediately. if not it'll really help the user to get it automatically. for example with svn you would use "svn externals" for a similar purpose, with our waf script we use "configure --download" ... Of course internally it can be a py script or and advanced functionality, a plugin of some sort but that means the user has to install python in order to get the full potential of wkcmake and i don't think it's such a god idea.
This seems to be what we want : http://www.kitware.com/media/html/BuildingExternalProjectsWithCMake2.8.html
We should try it first on a simple and internal project, like astyle for code formatting.
A macro must be created and used from within WkDepends in order to download and build external dependencies when not found on the computer. Necessary "modules" files must be created and will contain url to download needed sources This will allow project with a lot external dependencies to be built more easily and automatically (for example sdlut and all its sdl_* depends).