ponder
3.2
C++ reflection library
|
These are some notes on how to build Ponder. It is assumed that you have some knowledge of CMake. If not, perhaps look at the tutorial, or search for tutorial resources, of which there are many.
You can clone or download Ponder via the Ponder project page. E.g.
Ponder requires a C++ compiler that handles a minimum of C++17. These are some notes on compilers used in testing:
Ponder uses cmake
to generate project files. As you would normally do, create a build directory and generate your project files:
There are various options you can pass to cmake to turn on optional features. These are processed in cmake/Config.cmake
.
Features:
USES_LUA:BOOL
- turns Lua binding support on. See ponder::lua.Tests:
BUILD_TEST
- includes the unit tests. You might use this for reference.BUILD_TEST_LUA:BOOL
- turns Lua testing on. You might want to build this to ensure your project is set up correctly if USES_LUA
is on.BUILD_TEST_EXAMPLES:BOOL
- includes the examples used in the documentation.Options:
BUILD_SHARED_LIBS:BOOL
- builds Ponder as a shared library.CMAKE_BUILD_TYPE:STRING
- sets the build configuration. This defaults to "RelWithDebInfo".E.g.
You can include and link to Ponder as you would a normal library. Please note if you install Ponder there is a FindPonder.cmake
module in the cmake
directory which allows you to find and configure Ponder from your client project.