Hi, On Sun, 2008-12-21 at 22:38 +0100, Carsten Neumann wrote: > Hi Gerrit, > > > Von: Gerrit Voss <[email protected]> > > On Fri, 2008-12-19 at 14:30 -0600, Dirk Reiners wrote: > > > Carsten Neumann wrote: > > > > > > > > hmm, partially yes, having a named cmakelists file for the part that > > setups the library/project seems helpful. I still like the automatic > > collection of subdirs but I guess I could live without. Well I guess > > the best is give it a try and see how it looks ;-). > > ok, I've attached a *very* preliminary patch that does this. I had to place > the files that > describe each lib in a separate dir (e.g. CMake/lib.OSGBase/CMakeLists.txt), > mainly because INCLUDE_DIRECTORIES > is a directory property and I without it I ended up having a screen full of > -I flags lines :-/
honestly I don't like that to much. Taking it out of the source dir and putting it into the module dir is rather confusing. I would prefer something like Source/Base/CMakeLists.txt: INCLUDE(CMakeLists.libBase.cmake) and from OpenSG/CMakeLists.txt you can do ADD_SUBDIRECTORY(Source/Base) or you glob for them. Unfortunately AFAIK you can't change the cmake file name ADD_SUBDIRECTORY is looking for. > > One small warning/hint though if you glob for cmake files that contain > > the project/lib setup there is a dependency on the traversal order of > > directories. For example the one issuing the install rule must go last, > > if you don't provide a separate binary dir (Took me while to figure > > out why nothing got installed on my first try ;-))). AFAIS that mainly > > means do the CMakeLists.Lib.OSGSystem.txt explicitly first and collect > > the rest. > > hm, sorry I don't understand this part, but honestly I've not had the > patience to wait through a full > build (my box here at home is showing sings of age). I'll have it run > tomorrow and maybe I'll recognize > the problem once I run into it ;) that's why you have all these OSGBUILD_* stuff so you can build only a few libs and see if the rest of the infrastructure work without rebuilding the whole thing all the time ;-). I typically do Base/System and one more (e.g. State). kind regards gerrit ------------------------------------------------------------------------------ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
