style cleanup: follow style guide for formatting of if/for/while loops, and else...
[blender.git] / source / blender / editors / space_file / CMakeLists.txt
index 0a3bce764666a7c8390e6b10fa59e278b3f1fee1..98e147413ffaa21c58d9f632f3d670cb30a4864b 100644 (file)
@@ -1,4 +1,3 @@
-# $Id: CMakeLists.txt 12931 2007-12-17 18:20:48Z theeth $
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
 # This program is free software; you can redistribute it and/or
@@ -28,9 +27,12 @@ set(INC
        ../../imbuf
        ../../makesdna
        ../../makesrna
-       ../../windowmanager
        ../../render/extern/include
+       ../../windowmanager
        ../../../../intern/guardedalloc
+)
+
+set(INC_SYS
        ${GLEW_INCLUDE_PATH}
 )
 
@@ -48,6 +50,10 @@ set(SRC
        fsmenu.h
 )
 
+if(WITH_HEADLESS)
+       add_definitions(-DWITH_HEADLESS)
+endif()
+
 if(WITH_IMAGE_OPENEXR)
        add_definitions(-DWITH_OPENEXR)
 endif()
@@ -72,4 +78,8 @@ if(WITH_IMAGE_HDR)
        add_definitions(-DWITH_HDR)
 endif()
 
-blender_add_lib(bf_editor_space_file "${SRC}" "${INC}")
+if(WITH_INTERNATIONAL)
+       add_definitions(-DWITH_INTERNATIONAL)
+endif()
+
+blender_add_lib(bf_editor_space_file "${SRC}" "${INC}" "${INC_SYS}")