rename blenderlib to blender_add_lib
[blender.git] / source / blender / imbuf / intern / dds / CMakeLists.txt
index 842f53b..2ab92be 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 *****
 
-FILE (GLOB SRC *.cpp)
+set(INC 
+       .
+       ..
+       ./intern/include
+       ../../
+       ../../../blenlib
+       ../../../blenkernel
+       ../../../makesdna
+       ../../../../../intern/guardedalloc
+)
 
-SET(INC 
-  .
-  ../../../blenkernel
-  ../../../makesdna
-  ../../
-  ..
-  ../../../blenlib
-  intern/include
-  ../../../../../intern/guardedalloc
+set(SRC
+       BlockDXT.cpp
+       ColorBlock.cpp
+       DirectDrawSurface.cpp
+       Image.cpp
+       Stream.cpp
+       dds_api.cpp
 )
 
-if(WITH_DDS)
-  ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_DDS)
+if(WITH_IMAGE_DDS)
+       add_definitions(-DWITH_DDS)
+endif()
 
-BLENDERLIB(bf_dds "${SRC}" "${INC}")                 
-#env.BlenderLib ('bf_dds', source_files, incs, defs, libtype=['core','player'], priority = [90, 200])
+blender_add_lib(bf_imbuf_dds "${SRC}" "${INC}")