PROJECT(k3dsdk-sgi-tesselator)

FILE(GLOB HEADERS *.h)
SET(SOURCES
	dict.c
	dict.h
	dict-list.h
	geom.c
	geom.h
	gluos.h
	memalloc.c
	memalloc.h
	mesh.c
	mesh.h
	normal.c
	normal.h
	priorityq.c
	priorityq-heap.h
	priorityq-sort.h
	render.c
	render.h
	sweep.c
	sweep.h
	tess.c
	tess.h
	tessmono.c
	tessmono.h
	)

SET_SOURCE_FILES_PROPERTIES(
	dict.c
	geom.c
	memalloc.c
	priorityq.c
	render.c
	tess.c
	PROPERTIES COMPILE_FLAGS -w
	)

K3D_ADD_LIBRARY(k3dsdk-sgi-tesselator SHARED ${SOURCES})
K3D_GENERATE_DEF_FILE(k3dsdk-sgi-tesselator)

INSTALL(TARGETS k3dsdk-sgi-tesselator
	RUNTIME DESTINATION bin
	LIBRARY DESTINATION ${K3D_LIBDIR}
	ARCHIVE DESTINATION ${K3D_LIBDIR})

