Thanks,
Eric
thanks,
wes
Oh, so to do that, try something like:
PROJECT(MyProject)
ADD_LIBRARY(foo MODULE foo.c)
Be aware that on OS X, there is a difference between a 'module'
(loadable bundle) and dynamic library (.dylib). If you want a dynamic
library, you should instead do:
ADD_LIBRARY(foo SHARED foo.c)
This should make a library called foo.dll on Windows, libfoo.so on
ELF, and libfoo.dylib on Mach-O. Also, there is some beta/pre-release
stuff for OS X style .frameworks if you know all the super-secret
incantations.
As for other projects to look at...I'm drawing blanks on easy stuff.
(I've been using CMake too long when there was nothing good to look
at.) I'm involved with the OpenSceneGraph project and you can look at
that one, but it's not the most trivial build system (but not horribly
complex either), but it probably does hit most of the bullet points
(executables, dynamic libraries, modules, etc). Maybe you can try
plPlot? I don't know much about the source, but it's got to be a lot
smaller than OSG.
Thanks,
Eric
Try checking LuaDist (luadist.sf.net) it uses Cmake to build Lua/
LuaJIT and modules (which are fetched from online repo) .. still a
work in progress but it works most of the time ;P.
pd.
pd.
Sexy!
wes