cmake source definitions:
[blender.git] / source / blender / imbuf / intern / openexr / CMakeLists.txt
index cfc977ff155537f052b51234a50fe3349f825b31..ca638b8356e16bef35ddaa57c75fe41bede7305f 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(SRC openexr_api.cpp)
-
-SET(INC 
+set(INC 
        .
        .
-       ../../../blenkernel
-       ../../
        ..
        ..
+       ../..
+       ../../../blenkernel
        ../../../blenlib
        ../../../blenlib
-       intern/include
        ../../../../../intern/guardedalloc
        ../../../makesdna
        ../../../../../intern/guardedalloc
        ../../../makesdna
-       ${OPENEXR_INC}
 )
 
 )
 
-IF(WITH_IMAGE_OPENEXR)
-       ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+set(INC_SYS
+
+)
+
+set(SRC
+       openexr_api.cpp
+)
+
+if(WITH_IMAGE_OPENEXR)
+       list(APPEND INC_SYS
+               ${OPENEXR_INCLUDE_DIRS}
+       )
+       add_definitions(-DWITH_OPENEXR)
+endif()
 
 
-BLENDERLIB(bf_openexr "${SRC}" "${INC}")                 
+blender_add_lib(bf_imbuf_openexr "${SRC}" "${INC}" "${INC_SYS}")