Merged changes in the trunk up to revision 33894.
[blender.git] / source / blender / imbuf / intern / openexr / CMakeLists.txt
index 33681da55af214ddd0343e89cadf390d650c42dd..58edd53139a5433e811f71ed188c6fd54dddb991 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.
@@ -24,9 +24,7 @@
 #
 # ***** END GPL LICENSE BLOCK *****
 
-SET(SRC openexr_api.cpp)
-
-SET(INC 
+set(INC 
        .
        ../../../blenkernel
        ../../
@@ -38,9 +36,12 @@ SET(INC
        ${OPENEXR_INC}
 )
 
-IF(WITH_OPENEXR)
-       ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+set(SRC
+       openexr_api.cpp
+)
+
+if(WITH_IMAGE_OPENEXR)
+       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}")