STXXL
1.4.0
|
STXXL has some optional features and compile switches that can be changed at build time.
cmake
the mode is easily defined by using $ cmake -DCMAKE_BUILD_TYPE=Debug ... <or> $ cmake -DCMAKE_BUILD_TYPE=Release ...The mode mostly changes CXXFLAGS.
$ cmake -DUSE_GNU_PARALLEL=ON ...when building. Parallel is now ON by default for gcc, if it can be detected. The cmake script will check availability of the corresponding header files.
$ cmake -DUSE_BOOST=ON ...
$ cmake -DBUILD_EXAMPLES=ON ...
tests/
, which verify most of the libraries functionality. These programs are not built by default, because this makes it easier for STXXL to be used as CMake subproject (Including STXXL as a CMake Subproject). The test suite can be built and run using $ cmake -DBUILD_TESTS=ON ... <compile> $ make testDefining BUILD_TESTS also builds everything in
examples/
. There is also a BUILD_EXTRAS
configuration flag to build even more, longer running tests. Be advised that the test suite need quite some space on your disks.$ cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ ...
$ cmake -DCMAKE_INSTALL_PREFIX=/some/dir ... <compile> $ make installAdditionally, the installation subdirectories can be specified using the following options:
INSTALL_BIN_DIR=bin INSTALL_LIB_DIR=lib INSTALL_INCLUDE_DIR=include INSTALL_PKGCONFIG_DIR=lib/pkgconfig INSTALL_CMAKE_DIR=lib/cmake/stxxl
$ cmake -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON ..
-DUSE_STD_THREADS=ON
switch.include/
compile by themselves. This is required since each header must be self-sufficient and include other headers appropriately. These test compiles are trigged with -DTRY_COMPILE_HEADERS=ON
.# with valgrind by setting $ cmake -DUSE_VALGRIND=ON ... # with gcov for test coverage analysis by setting $ cmake -DUSE_GCOV=ON ...The valgrind option also enables a few additional lines of code that clear memory areas that are intentionally uninitialized. The gcov coverage report can be automatically created using the additional targets
test-coverage
(runs everything) or lcov-html
to generate the HTML report after running the test suite.