diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h
index 4d2f41b48bd..3ec8d3d2fbf 100644
--- a/intern/ghost/GHOST_ISystem.h
+++ b/intern/ghost/GHOST_ISystem.h
@@ -68,13 +68,28 @@ class GHOST_IEventConsumer;
*
Access to the state of the mouse buttons and the keyboard.
* Menus for windows with events generated when they are accessed (this is
* work in progress).
+ * Video mode switching.
+ * Copy/Paste buffers.
+ * System paths.
*
* Font management has been moved to a separate library.
*
* \section platforms Platforms
*
+ * GHOST supports the following platforms:
+ *
+ * - OSX Cocoa.
+ * - OSX Carbon.
+ * - Windows.
+ * - X11.
+ * - SDL1.3 (experemental).
+ * - NULL (headless mode).
+ *
+ *
* \section Building GHOST
*
+ * GHOST is not build standalone however there are tests in intern/ghost/test
+ *
* \section interface Interface
* GHOST has two programming interfaces:
*
diff --git a/intern/ghost/test/CMakeLists.txt b/intern/ghost/test/CMakeLists.txt
index f834b55b387..75f082fe834 100644
--- a/intern/ghost/test/CMakeLists.txt
+++ b/intern/ghost/test/CMakeLists.txt
@@ -34,6 +34,25 @@ macro(suffix_relpaths
endmacro()
+# -----------------------------------------------------------------------------
+# Defines
+
+# set the endian define
+if(MSVC)
+ # for some reason this fails on msvc
+ add_definitions(-D__LITTLE_ENDIAN__)
+else()
+ include(TestBigEndian)
+ test_big_endian(_SYSTEM_BIG_ENDIAN)
+ if(_SYSTEM_BIG_ENDIAN)
+ add_definitions(-D__BIG_ENDIAN__)
+ else()
+ add_definitions(-D__LITTLE_ENDIAN__)
+ endif()
+ unset(_SYSTEM_BIG_ENDIAN)
+endif()
+
+
# -----------------------------------------------------------------------------
# Libraries
@@ -74,6 +93,7 @@ add_library(bli_lib
"../../../source/blender/blenlib/intern/fileops.c"
"../../../source/blender/blenlib/intern/rct.c"
"../../../source/blender/blenlib/intern/string.c"
+ "../../../source/blender/blenlib/intern/string_utf8.c"
"../../../source/blender/blenlib/intern/listbase.c"
"../../../source/blender/blenlib/intern/storage.c"
"../../../source/blender/blenlib/intern/path_util.c"
@@ -87,6 +107,8 @@ find_package(OpenGL REQUIRED)
find_package(Freetype REQUIRED)
+find_package(ZLIB REQUIRED)
+
include_directories(${CMAKE_SOURCE_DIR}/../)
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${FREETYPE_INCLUDE_DIRS})
@@ -151,5 +173,6 @@ target_link_libraries(multitest_c
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${FREETYPE_LIBRARY}
+ ${ZLIB_LIBRARIES}
${PLATFORM_LINKLIBS}
)