scons: also build test applications of contrib code
|Reported by:||shaegler||Owned by:||amz|
if the scons 'tests' flag was set to 1, the test applications in the Contrib subfolders were not built. i added this snippet to the SConscript in the Contrib folder to remedy that.
shaegler@icarium ~/src/opensg-1.x-cvs-scons/Source/Contrib $ cvs diff SConscript Index: SConscript =================================================================== RCS file: /cvsroot/opensg/OpenSG/Source/Contrib/SConscript,v retrieving revision 1.10 diff -r1.10 SConscript 90a91,99 > > if _po.getOption('tests'): > # create test programs > for testsource in tests: > target = testsource.name[:-4] # get leafname and remove .cpp > BuildProgram(tc, target, [testsource], tools=, > updates=[custom, OpenSGLibrary(['OSGWindowGLUT', 'OSGSystem', 'OSGBase', 'OSGContrib'])], > CPPPATH=['.', env['PREFIX'].Dir('include'), env['PREFIX'].Dir('include/OpenSG')], > CPPDEFINES = ['OSG_BUILD_DLL', 'OSG_WITH_GLUT'])
Change History (2)
Note: See TracTickets for help on using tickets.