rename blenderlib to blender_add_lib
[blender.git] / source / blender / imbuf / intern / dds / CMakeLists.txt
index 64a37e0..2ab92be 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE (GLOB SRC *.cpp)
-
-SET(INC 
+set(INC 
        .
-       ../../../blenkernel
-       ../../../makesdna
-       ../../
        ..
+       ./intern/include
+       ../../
        ../../../blenlib
-       intern/include
+       ../../../blenkernel
+       ../../../makesdna
        ../../../../../intern/guardedalloc
 )
 
-if(WITH_DDS)
-       ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_DDS)
+set(SRC
+       BlockDXT.cpp
+       ColorBlock.cpp
+       DirectDrawSurface.cpp
+       Image.cpp
+       Stream.cpp
+       dds_api.cpp
+)
+
+if(WITH_IMAGE_DDS)
+       add_definitions(-DWITH_DDS)
+endif()
 
-BLENDERLIB(bf_dds "${SRC}" "${INC}")                 
+blender_add_lib(bf_imbuf_dds "${SRC}" "${INC}")