diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2022-05-03 17:43:23 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2022-05-04 10:33:58 +0300 |
commit | b21ebe01b8c5f9b58b3fac2024d98a525184ccaf (patch) | |
tree | 43769785a537256d15713c20a83faf59af40f64b /README.md | |
parent | 214cf85efcdc67524335ad0e2a2d5982246b6a72 (diff) |
Add CMake build script to the project
Also add short description into readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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. |