From 7c9796fc48f804a4a236bb5aebd408a566b51ed0 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 26 May 2022 09:38:57 +0200 Subject: [PATCH] Add CMake build for examples --- example/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 example/CMakeLists.txt diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt new file mode 100644 index 00000000..a9ae31e3 --- /dev/null +++ b/example/CMakeLists.txt @@ -0,0 +1,13 @@ +cmake_minimum_required(VERSION 3.10) + +project(NanoSVG-examples C) + +find_package(NanoSVG REQUIRED) +find_package(OpenGL REQUIRED) +find_package(glfw3) + +add_executable(example1 example1.c) +target_link_libraries(example1 OpenGL::GL glfw NanoSVG::nanosvg) + +add_executable(example2 example2.c) +target_link_libraries(example2 NanoSVG::nanosvgrast) \ No newline at end of file