Create a build directory. HPX requires an out-of-tree
build. This means you will be unable to run CMake in the HPX
$ cd hpx
$ mkdir my_hpx_build
$ cd my_hpx_build
Invoke CMake from your build directory, pointing the CMake driver to
the root of your HPX source tree.
$ cmake [CMake variable definitions] /path/to/source/tree
$ cmake -DBOOST_ROOT=~/packages/boost -DCMAKE_INSTALL_PREFIX=~/packages/hpx ~/downloads/hpx_0.8.0
Invoke GNU make. If you are on a machine with multiple cores, add the
-jN flag to your make invocation, where N is the number of parallel
processes HPX gets compiled with.
$ gmake -j4
Compiling and linking HPX needs a considerable amount
of memory. It is advisable that approximately 2 GB of memory per parallel
process is available.
To complete the build and install HPX:
$ gmake install
For more detailed information about using CMake
please refer its documentation and to the section Building
HPX with CMake.