cmake source definitions:
[blender.git] / source / blender / blenpluginapi / CMakeLists.txt
index e6087a0..193e401 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 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}")