cmake source definitions:
[blender.git] / source / blender / blenpluginapi / CMakeLists.txt
index 589c97d..193e401 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC intern/*.c)
+set(INC 
+       .
+       ..
+       ../blenlib
+       ../imbuf
+       ../makesdna
+       ../blenloader
+       ../../../intern/guardedalloc
+)
+
+set(INC_SYS
 
-SET(INC 
-       . .. ../../../intern/guardedalloc ../blenlib ../imbuf ../makesdna
 )
 
-IF(WIN32)
-       SET(INC ${INC} ${PTHREADS_INC})
-ENDIF(WIN32)
+set(SRC
+       intern/pluginapi.c
+
+       documentation.h
+       externdef.h
+       floatpatch.h
+       iff.h
+       plugin.h
+       util.h
+)
 
-IF(WITH_QUICKTIME)
-       SET(INC ${INC} ${QUICKTIME_INC})
-       ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+       list(APPEND INC_SYS
+               ${QUICKTIME_INCLUDE_DIRS}
+       )
+       add_definitions(-DWITH_QUICKTIME)
+endif()
 
-BLENDERLIB(bf_blenpluginapi "${SRC}" "${INC}")
-#env.BlenderLib ( libname = 'bf_blenpluginapi', sources = sources, includes = Split(incs), defines = defs, libtype=['core', 'player'], priority = [75, 35] )
+blender_add_lib(bf_blenpluginapi "${SRC}" "${INC}" "${INC_SYS}")