Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/memononen/nanosvg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2022-05-03 17:43:23 +0300
committertamasmeszaros <meszaros.q@gmail.com>2022-05-04 10:33:58 +0300
commitb21ebe01b8c5f9b58b3fac2024d98a525184ccaf (patch)
tree43769785a537256d15713c20a83faf59af40f64b /README.md
parent214cf85efcdc67524335ad0e2a2d5982246b6a72 (diff)
Add CMake build script to the project
Also add short description into readme
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0865cbe..b468fba 100644
--- a/README.md
+++ b/README.md
@@ -78,6 +78,16 @@ By default, NanoSVG parses only the most common colors. In order to get support
#include "nanosvg.h"
```
+Alternatively, you can install the library using CMake and import it into your project using the standard CMake `find_package` command.
+
+```CMake
+add_executable(myexe main.c)
+
+find_package(NanoSVG REQUIRED)
+
+target_link_libraries(myexe NanoSVG::nanosvg NanoSVG::nanosvgrast)
+```
+
## Compiling Example Project
In order to compile the demo project, your will need to install [GLFW](http://www.glfw.org/) to compile.