From: Branan R. <br...@gm...> - 2008-08-29 21:23:14
|
Since error tolerance should be standard across all of GLSDK, I'm explaining a way to do that. Ideally we should have a config.h that has these sorts of things, but that's more involved. I'll add a config.h template and instructins on how to add things to over the weekend. Add these lines to trunk/CMakeLists.txt, just above the chunk that sets -Wall: SET(GLSDK_ERROR_TOLERANCE <default value> CACHE STRING "The error tolerance for floating-point operations") ADD_DEFINITIONS(-DGLSDK_ERROR_TOLERANCE=${GLSDK_ERROR_TOLERANCE}) In your glm header file, you should have a construct like this, just in case it's used outside of our build system: #ifdef GLSDK_ERROR_TOLERANCE #define GLM_ERROR_TOLERANCE GLSDK_ERROR_TOLERANCE #else #define GLM_ERROR_TOLERANCE <default value> #endif On Fri, Aug 29, 2008 at 1:00 PM, Henri Häkkinen <hen...@gm...> wrote: > I have a GLM_ERROR_TOLERANCE preproc define in my mathlib which I think > should be customizable from the build system. At the moment, I just define > it in 'src/glm/defs.h'. This is just something which is used internally and > not publicly visible. Could you tell me of how to put this into CMake? > > On Fri, Aug 29, 2008 at 6:03 PM, Branan Riley <br...@gm...> wrote: >> >> A couple more buidsystem points (this is what I get for not reading >> things completely before replying >> >> * Debug and release builds are already possible using >> -DCMAKE_BUILD_TYPE=Debug or -DCMAKE_BUILD_TYPE=Release. There's also a >> "RelWithDebInfo", which builds an optimized binary with debug symbols. >> >> * Building the docbook files can be done with ADD_CUSTOM_COMMAND. >> There may even be a CMake module to handle DocBook stuff. >> >> Branan >> >> On Fri, Aug 29, 2008 at 4:40 AM, Henri Häkkinen <hen...@gm...> >> wrote: >> > There are also other things where people could contribute to. >> > >> > Let me try to write a list of things to do: >> > >> > - a better build system, which would: >> > * output libs into libs/ subdir and tests/ under subdir or similar >> > * allow debug and release builds >> > * build html, manpage etc. documentation from the DocBook files >> > >> > - help with Branan's shapelib >> > >> > - help with current mathlib issues >> > (http://sourceforge.net/tracker/?group_id=237607&atid=1103788) >> > >> > - writing the GLM API reference in DocBook format (i am currently >> > working on >> > this) >> > >> > - writing the SDK programming guide or at least designing it's contents >> > >> > - (low priority) someone who would collect all the decided coding >> > conventions etc. pieces into a more coherent file >> > >> > - (low priority) updated and professionally looking website with a CMS >> > >> > >> > On Fri, Aug 29, 2008 at 12:19 PM, <gl...@mo...> wrote: >> >> >> >> > The reason why we haven't actually written tutorials is that nobody >> >> > has actually showed interest yet. >> >> > Hopefully we will get activity once GLFW gets GL3 update. >> >> >> >> Two more reasons: >> >> -we still have no final decision if we use GLFW or not - we could >> >> assume >> >> it will support OpenGL 3.0 eventually and temporarily make examples >> >> using >> >> OpenGL 2.1 (using only what's in 3.0) >> >> >> >> -we still have no shader library (minimally it should provide one >> >> default >> >> shader) - this is a minor problem, not an obstacle >> >> >> >> >> >> Honestly if we had both I wouldn't write tutorials anyway, but I should >> >> be >> >> "back in business" at the end of the year. Right now all I have is an >> >> old >> >> laptop with Intel GPU (somewhere around GeForce 2). >> >> >> >> >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> >> challenge >> >> Build the coolest Linux based applications with Moblin SDK & win great >> >> prizes >> >> Grand prize is a trip for two to an Open Source event anywhere in the >> >> world >> >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> _______________________________________________ >> >> Glsdk-devel mailing list >> >> Gls...@li... >> >> https://lists.sourceforge.net/lists/listinfo/glsdk-devel >> > >> > >> > >> > -- >> > Henri 'henux' Häkkinen >> > >> > >> > >> > ------------------------------------------------------------------------- >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge >> > Build the coolest Linux based applications with Moblin SDK & win great >> > prizes >> > Grand prize is a trip for two to an Open Source event anywhere in the >> > world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> > _______________________________________________ >> > Glsdk-devel mailing list >> > Gls...@li... >> > https://lists.sourceforge.net/lists/listinfo/glsdk-devel >> > >> > >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Glsdk-devel mailing list >> Gls...@li... >> https://lists.sourceforge.net/lists/listinfo/glsdk-devel > > > > -- > Henri 'henux' Häkkinen > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Glsdk-devel mailing list > Gls...@li... > https://lists.sourceforge.net/lists/listinfo/glsdk-devel > > |