Skip to content

Embed as CMake subdirectory

You can use pareto directly in CMake projects as a subproject.

Clone the whole project inside your own project:

1
git clone https://github.com/alandefreitas/pareto/

and add the subdirectory to your CMake script:

1
add_subdirectory(pareto)

When creating your executable, link the library to the targets you want:

1
2
add_executable(my_target main.cpp)
target_link_libraries(my_target PRIVATE pareto)

Your target will be able to see the pareto headers now.