Add CMake build system on Recast&Navigation branch

This commit is contained in:
Benoit Bolsee
2010-08-31 22:08:01 +00:00
parent b6b277cac0
commit 0bca249298
9 changed files with 47 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
ADD_SUBDIRECTORY(glew)
ADD_SUBDIRECTORY(recastnavigation)
IF(WITH_IMAGE_OPENJPEG)
ADD_SUBDIRECTORY(libopenjpeg)

32
extern/recastnavigation/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,32 @@
# $Id$
# ***** 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# The Original Code is Copyright (C) 2006, Blender Foundation
# All rights reserved.
#
# The Original Code is: all of this file.
#
# Contributor(s): Daniel Genrich
#
# ***** END GPL LICENSE BLOCK *****
SET(INC Recast/Include Detour/Include)
FILE(GLOB SRC Recast/Source/*.cpp Detour/Source/*.cpp)
BLENDERLIB(extern_recastnavigation "${SRC}" "${INC}")
#, libtype='blender', priority = 0 )

View File

@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
FILE(GLOB SRC *.c)
FILE(GLOB SRC *.c *.cpp)
SET(INC
../include
@@ -34,6 +34,7 @@ SET(INC
../../windowmanager
../../render/extern/include
../../../../intern/guardedalloc
../../../../extern/recastnavigation/Recast/Include
)
IF(NOT WITH_PYTHON)

View File

@@ -1,5 +1,5 @@
/**
* $Id:$
* $Id$
*
* ***** BEGIN GPL LICENSE BLOCK *****
*

View File

@@ -19,13 +19,14 @@
#
# ***** END GPL LICENSE BLOCK *****
FILE(GLOB SRC *.c)
FILE(GLOB SRC *.c *.cpp)
SET(INC
../../blenkernel
../../blenlib
../include
../../../../intern/guardedalloc
../../../../extern/recastnavigation/Recast/Include
../../makesdna
../../makesrna
../../windowmanager

View File

@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
FILE(GLOB SRC intern/*.c)
FILE(GLOB SRC intern/*.c intern/*.cpp)
SET(INC
. ./intern
@@ -33,10 +33,13 @@ SET(INC
../blenkernel
../blenkernel/intern
../render/extern/include
../editors/include
../gpu
../../../intern/guardedalloc
../../../intern/decimation/extern
../../../intern/elbeem/extern
../../../intern/bsp/extern
../../../extern/recastnavigation/Recast/Include
${ZLIB_INC}
)

View File

@@ -498,6 +498,7 @@ ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
extern_binreloc
extern_glew
extern_libopenjpeg
extern_recastnavigation
bf_videotex
bf_rna
bf_dna

View File

@@ -61,6 +61,7 @@ SET(INC
../../../source/blender/gpu
../../../source/blender/ikplugin
../../../extern/bullet2/src
../../../extern/recastnavigation/Detour/Include
)
IF(WITH_PYTHON)

View File

@@ -59,6 +59,9 @@ SET(INC
../../../source/blender/gpu
../../../extern/bullet2/src
../../../extern/glew/include
../../../extern/recastnavigation/Recast/Include
../../../extern/recastnavigation/Detour/Include
../../../source/blender/editors/include
)
ADD_DEFINITIONS(-DGLEW_STATIC)