From 9f9c9307c04b0210421d1f8202398e07a886b856 Mon Sep 17 00:00:00 2001 From: "Gabriele A. Ron" Date: Mon, 15 Aug 2022 07:33:31 -0500 Subject: [PATCH] v1.0.0 --- CMakeLists.txt | 2 +- README.md | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70581ac..77c2981 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.20) -project(FibonacciHeap VERSION 0.0.0 LANGUAGES CXX) +project(FibonacciHeap VERSION 1.0.0 LANGUAGES CXX) ################ # Dependencies # diff --git a/README.md b/README.md index ca0bd01..26d7cb0 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ ##### Jump To * [Requirements](#requirements) * [Usage](#usage) +* [API](#api) * [Building](#building) * [License](#license) @@ -17,6 +18,16 @@ For further explanations as to what this means, please watch [the video this pro * CTest ## Usage +This project is designed with Modern CMake principals in mind, so it can easily be used with other CMake projects. +Either install or otherwise link the project, and add: + +```cmake +find_package(FibonacciHeap 1.0.0 REQUIRED) +# Add Targets +target_link_libraries(foo PRIVATE GRon::FibonacciHeap) +``` + +## API The API for the Fibonacci Heap is quite simple: * `FibonacciHeap` @@ -73,8 +84,16 @@ The API for the Fibonacci Heap is quite simple: ```bash cmake --build build/ --config RELEASE ``` + +5. Install the project. Examples for Ninja and Make have been provided + + ```bash + cd build + make install + ninja install + ``` -5. (Optional) Run tests +6. (Optional) Run tests ```bash cd build