Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-01-13 16:47:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-01-13 17:14:03 +0400
commit4c9a3a53bd3154954bc2bcf73684b87a79332a71 (patch)
treeca297c79f831f46117e1638640a187e98ddbd01c /source/blender/datatoc/CMakeLists.txt
parent08981f3a91a687efa8d28d308d6033e5a9e68b1f (diff)
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.
Diffstat (limited to 'source/blender/datatoc/CMakeLists.txt')
-rw-r--r--source/blender/datatoc/CMakeLists.txt20
1 files changed, 19 insertions, 1 deletions
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()