merge with/from trunk at r35190
[blender.git] / source / blender / editors / space_image / CMakeLists.txt
index ca3b1f58305d007214d0048fc89d51d09c800bcb..8568278d0bb42367719873d04558f6556e3902f9 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(INC
+set(INC
        ../include
+       ../../blenfont
        ../../blenkernel
+       ../../blenloader
        ../../blenlib
        ../../imbuf
+       ../../bmesh
        ../../makesdna
        ../../makesrna
        ../../windowmanager
@@ -31,38 +34,36 @@ SET(INC
        ../../../../intern/guardedalloc
 )
 
-SET(SRC
+set(SRC
        image_buttons.c
        image_draw.c
        image_header.c
        image_ops.c
        image_render.c
        space_image.c
-)
 
-IF(WITH_IMAGE_OPENJPEG)
-       ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_IMAGE_OPENJPEG)
+       image_intern.h
+)
 
-IF(WITH_IMAGE_OPENEXR)
-       ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENJPEG)
+       add_definitions(-DWITH_OPENJPEG)
+endif()
 
-IF(WITH_IMAGE_TIFF)
-       ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+if(WITH_IMAGE_OPENEXR)
+       add_definitions(-DWITH_OPENEXR)
+endif()
 
-IF(WITH_IMAGE_CINEON)
-       ADD_DEFINITIONS(-DWITH_CINEON)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_TIFF)
+       add_definitions(-DWITH_TIFF)
+endif()
 
-IF(WITH_LCMS)
-       SET(INC ${INC} ${LCMS_INCLUDE_DIR})
-       ADD_DEFINITIONS(-DWITH_LCMS)
-ENDIF(WITH_LCMS)
+if(WITH_IMAGE_CINEON)
+       add_definitions(-DWITH_CINEON)
+endif()
 
-IF(WIN32)
-       LIST(APPEND INC ${PTHREADS_INC})
-ENDIF(WIN32)
+if(WITH_LCMS)
+       set(INC ${INC} ${LCMS_INCLUDE_DIR})
+       add_definitions(-DWITH_LCMS)
+endif()
 
-BLENDERLIB(bf_editor_space_image "${SRC}" "${INC}")
+blender_add_lib(bf_editor_space_image "${SRC}" "${INC}")