-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subject: Simplify Installation Instructions
Body: - Updated README and include/README.md for basic installation with guide link.
- Loading branch information
1 parent
70e8c25
commit 7163882
Showing
2 changed files
with
2 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,2 @@ | ||
# Graaf Header-Only Installation | ||
Installing Graaf on your project is easy! Simply copy the `graaflib` directory to your project and add it to your include path. For more details or alternative installation methods, take a look at our [installation guide](https://bobluppes.github.io/graaf/docs/quickstart/installation). | ||
|
||
1. Copy `graaflip` to your project. | ||
2. Before compiling, add the directory to your include path. | ||
```bash | ||
# For C compiler | ||
export C_INCLUDE_PATH="/full/path/to/include/graaflib/:$C_INCLUDE_PATH" | ||
# For Cpp compiler | ||
export CPLUS_INCLUDE_PATH="/full/path/to/include/graaflib/:$CPLUS_INCLUDE_PATH" | ||
``` | ||
|
||
Or in CMake: | ||
```CMake | ||
include_directories("graaf/src/graaflib") | ||
``` | ||
3. Include the graaf header in your sources. | ||
```c++ | ||
#include <graaflib/directed_graph.h> | ||
``` | ||
Installing Graaf on your project is easy! Simply copy the `graaflib` directory to your project and add it to your include path. For more details or alternative installation methods, take a look at our [installation guide](https://bobluppes.github.io/graaf/docs/quickstart/installation). |