Building RaimaDB Examples with CMake
CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. For convenience, the following sections describe how this tool can be used to build the examples for RaimaDB.
Overview
The use of CMake described in the following sections is for an "out-of-source" build. This means that directory where the build will be occurring IS NOT the installation directory for the RaimaDB product. No modifications to files in the installation directory will be made. Nor will anytime files be created within the installation directory tree.
CMake supports multiple compilers and environments. The RaimaDB packages have been tested with Microsoft compilers on Windows and GNU compilers on Linux.
Building and deploying examples to cross-compile development platforms is not covered in this section.
The beginning steps to compiling the examples for all host environments are:
$ mkdir mybuild $ cd mybuild $ cmake [options] [path_to_install_dir]
Using CMake for Building RaimaDB Examples on the Host Development Platform
The following sections describe the specifics for the usage of CMake on Windows and Linux/UNIX host platforms: