cmake source definitions:
[blender.git] / source / blender / imbuf / intern / openexr / CMakeLists.txt
index 33681da..ca638b8 100644 (file)
@@ -13,7 +13,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 # The Original Code is Copyright (C) 2006, Blender Foundation
 # All rights reserved.
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(SRC openexr_api.cpp)
-
-SET(INC 
+set(INC 
        .
-       ../../../blenkernel
-       ../../
        ..
+       ../..
+       ../../../blenkernel
        ../../../blenlib
-       intern/include
        ../../../../../intern/guardedalloc
        ../../../makesdna
-       ${OPENEXR_INC}
 )
 
-IF(WITH_OPENEXR)
-       ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_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}")                 
-#env.BlenderLib ('bf_openexr', source_files, incs, defs, libtype=['core','player'], priority = [90, 200])
+blender_add_lib(bf_imbuf_openexr "${SRC}" "${INC}" "${INC_SYS}")