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:
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()