asmodehn / wkcmake

Workshop CMake - For quick and easy CMake setup of project, based on simple folder and file naming conventions
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

Create a macro to download external dependies when not found #22

Open asmodehn opened 11 years ago

asmodehn commented 11 years ago

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).

asmodehn commented 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.

asmodehn commented 11 years ago

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.

asmodehn commented 10 years ago

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.