From a9f761708c79991731445b3f315deac8fa79e4db Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 15 Jan 2014 08:38:00 +1100 Subject: Fix for icon generation with MSVC Big thanks to Gaia for getting this working! --- source/blender/datatoc/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source/blender/datatoc/CMakeLists.txt') diff --git a/source/blender/datatoc/CMakeLists.txt b/source/blender/datatoc/CMakeLists.txt index a1776c312f4..53fe8c32e9c 100644 --- a/source/blender/datatoc/CMakeLists.txt +++ b/source/blender/datatoc/CMakeLists.txt @@ -38,6 +38,21 @@ if(NOT WITH_HEADLESS) datatoc_icon.c ) + if(WIN32) + include_directories( + ../blenlib + ../../../intern/utfconv + ) + + # for winstuff_dir.c + add_definitions(-DUSE_STANDALONE) + + list(APPEND SRC + ../blenlib/intern/winstuff_dir.c + ../../../intern/utfconv/utfconv.c + ) + endif() + include_directories(${PNG_INCLUDE_DIR}) link_directories(${PNG_LIBPATH} ${ZLIB_LIBPATH}) -- cgit v1.2.3