aboutsummaryrefslogtreecommitdiff
path: root/cmake/Findlodepng.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Findlodepng.cmake')
-rw-r--r--cmake/Findlodepng.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/cmake/Findlodepng.cmake b/cmake/Findlodepng.cmake
new file mode 100644
index 0000000..b8f7a01
--- /dev/null
+++ b/cmake/Findlodepng.cmake
@@ -0,0 +1,23 @@
+#
+# LODEPNG_INCLUDE_DIRS
+# LODEPNG_LIBRARIES
+# LODEPNG_CFLAGS
+
+
+if(LODEPNG_PATH)
+ return()
+endif()
+
+set(LODEPNG_PATH ${PROJECT_SOURCE_DIR}/deps/lodepng)
+
+list(APPEND
+ LODEPNG_SOURCES
+ ${LODEPNG_PATH}/lodepng.c
+ ${LODEPNG_PATH}/lodepng.h
+)
+
+add_library(lodepng STATIC ${LODEPNG_SOURCES})
+
+set(LODEPNG_INCLUDE_DIRS ${LODEPNG_PATH})
+set(LODEPNG_LIBRARIES lodepng)
+set(LODEPNG_CFLAGS "") \ No newline at end of file