From 4c9a3a53bd3154954bc2bcf73684b87a79332a71 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 13 Jan 2014 23:47:33 +1100 Subject: UI Icons: store icons in git as uncompressed pixmaps (D196) this allows for updating icons without committing a new PNG each time (which is inefficient with git). The data files are converted into a PNG at builds time and used just as they were before. --- source/blender/datatoc/CMakeLists.txt | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'source/blender/datatoc/CMakeLists.txt') diff --git a/source/blender/datatoc/CMakeLists.txt b/source/blender/datatoc/CMakeLists.txt index 125e653ee5c..78ae00d8a83 100644 --- a/source/blender/datatoc/CMakeLists.txt +++ b/source/blender/datatoc/CMakeLists.txt @@ -20,10 +20,28 @@ # ----------------------------------------------------------------------------- -# Build makesdna executable +# Build datatoc executable set(SRC datatoc.c ) # SRC_DNA_INC is defined in the parent dir add_executable(datatoc ${SRC}) + + +# ----------------------------------------------------------------------------- +# Build datatoc_icon executable + +if(NOT WITH_HEADLESS) + + set(SRC + datatoc_icon.c + ) + + include_directories(${PNG_INCLUDE_DIR}) + + add_executable(datatoc_icon ${SRC}) + + link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH}) + target_link_libraries(datatoc_icon ${PNG_LIBRARIES}) +endif() -- cgit v1.2.3