# $Id: CMakeLists.txt 12931 2007-12-17 18:20:48Z theeth $
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Contributor(s): Jacques Beaurain.
#
# ***** END GPL LICENSE BLOCK *****

SET(INC
	../include
	../../blenfont
	../../blenkernel
	../../blenlib
	../../gpu
	../../imbuf
	../../makesdna
	../../makesrna
	../../windowmanager
	../../render/extern/include
	../../../../intern/guardedalloc
	../../../../intern/smoke/extern
)

SET(SRC
	drawanimviz.c
	drawarmature.c
	drawmesh.c
	drawobject.c
	drawvolume.c
	space_view3d.c
	view3d_buttons.c
	view3d_draw.c
	view3d_edit.c
	view3d_fly.c
	view3d_header.c
	view3d_ops.c
	view3d_select.c
	view3d_snap.c
	view3d_toolbar.c
	view3d_view.c

	view3d_intern.h
)

IF(WITH_GAMEENGINE)
	LIST(APPEND INC ../../../kernel/gen_system)
	ADD_DEFINITIONS(-DWITH_GAMEENGINE)
ENDIF(WITH_GAMEENGINE)

ADD_DEFINITIONS(-DGLEW_STATIC)

BLENDERLIB(bf_editor_space_view3d "${SRC}" "${INC}")
