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/blenfont/CMakeLists.txt')
-rw-r--r--source/blender/blenfont/CMakeLists.txt42
1 files changed, 29 insertions, 13 deletions
diff --git a/source/blender/blenfont/CMakeLists.txt b/source/blender/blenfont/CMakeLists.txt
index 8df40344e5e..4f211bdda17 100644
--- a/source/blender/blenfont/CMakeLists.txt
+++ b/source/blender/blenfont/CMakeLists.txt
@@ -22,22 +22,38 @@
#
# ***** END GPL LICENSE BLOCK *****
-FILE(GLOB SRC intern/*.c)
-
-SET(INC
- ../../../intern/guardedalloc ../blenlib ../makesdna ../editors/include
- ../blenkernel ../../../extern/glew/include .
+set(INC
+ .
+ ../blenlib
+ ../makesdna
+ ../editors/include
+ ../blenkernel
+ ../../../intern/guardedalloc
+ ../../../extern/glew/include
${FREETYPE_INCLUDE_DIRS}
)
-IF(WITH_INTERNATIONAL)
- SET(INC ${INC} ${GETTEXT_INC})
- ADD_DEFINITIONS(-DINTERNATIONAL)
-ENDIF(WITH_INTERNATIONAL)
+set(SRC
+ intern/blf.c
+ intern/blf_dir.c
+ intern/blf_font.c
+ intern/blf_glyph.c
+ intern/blf_lang.c
+ intern/blf_util.c
+
+ BLF_api.h
+ intern/blf_internal.h
+ intern/blf_internal_types.h
+)
+
+if(WITH_INTERNATIONAL)
+ list(APPEND INC ${GETTEXT_INC})
+ add_definitions(-DINTERNATIONAL)
+endif()
-IF(WIN32)
- ADD_DEFINITIONS(-D_WIN32 -DUSE_GETTEXT_DLL)
-ENDIF(WIN32)
+if(WIN32 AND NOT UNIX)
+ add_definitions(-DUSE_GETTEXT_DLL)
+endif()
-BLENDERLIB(bf_blenfont "${SRC}" "${INC}")
+blender_add_lib(bf_blenfont "${SRC}" "${INC}")