merge with/from trunk at r35190
[blender.git] / source / blender / editors / space_image / CMakeLists.txt
index 59749a47afd29441eee66cc88ae3016b9bb8206d..8568278d0bb42367719873d04558f6556e3902f9 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.c)
-
-SET(INC
+set(INC
+       ../include
+       ../../blenfont
        ../../blenkernel
+       ../../blenloader
        ../../blenlib
        ../../imbuf
        ../../bmesh
-       ../include
-       ../../../../intern/guardedalloc
        ../../makesdna
        ../../makesrna
-       ../../render/extern/include
        ../../windowmanager
+       ../../render/extern/include
+       ../../../../intern/guardedalloc
 )
 
-IF(WITH_IMAGE_OPENEXR)
-       ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+set(SRC
+       image_buttons.c
+       image_draw.c
+       image_header.c
+       image_ops.c
+       image_render.c
+       space_image.c
+
+       image_intern.h
+)
+
+if(WITH_IMAGE_OPENJPEG)
+       add_definitions(-DWITH_OPENJPEG)
+endif()
+
+if(WITH_IMAGE_OPENEXR)
+       add_definitions(-DWITH_OPENEXR)
+endif()
 
-IF(WITH_IMAGE_TIFF)
-       ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+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)
-       SET(INC ${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}")