cmake source definitions:
[blender.git] / source / blender / imbuf / intern / openexr / CMakeLists.txt
index 2179208..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 
+       .
+       ..
+       ../..
+       ../../../blenkernel
+       ../../../blenlib
+       ../../../../../intern/guardedalloc
+       ../../../makesdna
+)
+
+set(INC_SYS
+
+)
 
-SET(INC 
-  .
-  ../../../blenkernel
-  ../../
-  ..
-  ../../../blenlib
-  intern/include
-  ../../../../../intern/guardedalloc
-  ../../../makesdna
-  ${OPENEXR_INC}
+set(SRC
+       openexr_api.cpp
 )
 
-IF(WITH_OPENEXR)
-  ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_OPENEXR)
+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}")