aboutsummaryrefslogtreecommitdiff
path: root/cmake/Findlodepng.cmake
blob: b8f7a011b6488989f72f1cf21230d778a357bf04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 "")