Updated to compile:
- KdTree+Octree: max_depth changed to static const (this should be configured at compile time)
- wget tool replaced by curl, which is now more widespread
- added CMakeLists (to eventually replace SCons)
- various fixes
Import('env sdlenv have_sdl lib cc')
myenv = sdlenv.Clone()
myenv.Append(LIBPATH=['#build/lib'])
myenv.Prepend(LIBS=['pyrit'])
demos = [
	'realtime.cc', 'realtime_bunny.cc', 'realtime_dragon.cc',
	'spheres_shadow.cc', 'textures.cc']
includes = ['common_sdl.h', 'common_ply.h']
l = []
if have_sdl:
	for src in demos:
		l.append( myenv.Program(src) )
env.Alias('cc-demos', l)
if cc == 'msvc':
	# MS Visual Studio Project
	vcprojsrcs = []
	for src in demos:
		vcprojsrcs += ['ccdemos/' + src]
	vcprojincs = []
	for inc in includes:
		vcprojincs += ['ccdemos/' + inc]
	vcproj = env.MSVSProject(
		auto_build_solution=0,
		target = '#pyrit_ccdemos' + env['MSVSPROJECTSUFFIX'],
		srcs = vcprojsrcs,
		incs = vcprojincs,
		buildtarget = 'cc-demos',
		variant = 'Release')
	Return('vcproj')