There are only two kinds of build systems: the ones people complain about and the ones nobody uses.
— lt_algorithm_gt (adapted from Bjarne Stroustrup)
Note that building tests and benchmarks for Skipper is enabled by default
(and for that, Catch2 and Google/Benchmark are required).
In order to turn them off, set corresponding variables to OFF:
set(SKIPPER_ENABLE_TESTS OFF CACHE BOOL "Enable testing of the skipper library")
set(SKIPPER_ENABLE_BENCHMARKS OFF CACHE BOOL "Enable benchmarking of the skipper library")First things first, let CMake know about Skipper by adding directory with project:
add_subdirectory(skipper)Next, link your target against project-provided skipper::skipper target alias using target_link_libraries:
target_link_libraries(MyTarget PRIVATE skipper::skipper)Now, Skipper is available for #include-ing:
#include <skipper/sequential_set.hpp>
auto main() -> int {
auto skip_list = skipper::SequentialSkipListSet<int>{};
skip_list.Insert(1);
}