Add CMake build system on Recast&Navigation branch
authorBenoit Bolsee <benoit.bolsee@online.be>
Tue, 31 Aug 2010 22:08:01 +0000 (22:08 +0000)
committerBenoit Bolsee <benoit.bolsee@online.be>
Tue, 31 Aug 2010 22:08:01 +0000 (22:08 +0000)
extern/CMakeLists.txt
extern/recastnavigation/CMakeLists.txt [new file with mode: 0644]
source/blender/editors/object/CMakeLists.txt
source/blender/editors/object/object_navmesh.cpp
source/blender/editors/util/CMakeLists.txt
source/blender/modifiers/CMakeLists.txt
source/creator/CMakeLists.txt
source/gameengine/Converter/CMakeLists.txt
source/gameengine/Ketsji/CMakeLists.txt

index b15c8a31c730a15eb706770a1de3e8176ec83dcf..79d615ba730c1fe1eefefd8210fc8095872ec1ea 100644 (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)
diff --git a/extern/recastnavigation/CMakeLists.txt b/extern/recastnavigation/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d36de44
--- /dev/null
@@ -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 )
index a41b9e89f831bbcbbe54795b342f24e8fd0aa2bf..56f144ce63cf976c8a154328e75ca3e5de0f2af2 100644 (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)
index 572edcff976a364e6de7426e474c924baeda8878..95738a05db4590cdaebd72522ddff3be48cc52e5 100644 (file)
@@ -1,5 +1,5 @@
 /**
-* $Id:$
+* $Id$
 *
 * ***** BEGIN GPL LICENSE BLOCK *****
 *
index b4b2fd12cefc85dbf191f631dff3bf2782ad1d2e..2c55b0773be02cec63263e2ac2a1bacf9fb11019 100644 (file)
 #
 # ***** 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
index b6dcc9c03f96dee728443f12e4ad7afece780e68..1c3c772de38615a42f54ed992e7320f8090a456d 100644 (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}
 )
 
index 4088369a05be9360b428fc2ad6f1e63bbde3b62a..cec5793ae971d4924afe0899f0fef9961fac2d3c 100644 (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
index 97c367dd1f15200205fd971f365d6c1c6e3588ae..135ed820c4fe458fb4f063ff9714c2f6213cdbe0 100644 (file)
@@ -61,6 +61,7 @@ SET(INC
        ../../../source/blender/gpu
        ../../../source/blender/ikplugin
        ../../../extern/bullet2/src
+       ../../../extern/recastnavigation/Detour/Include
 )
 
 IF(WITH_PYTHON)
index d8f6e3164ec4931b4cd8d3897445bb0435e76eea..a4f9dffb360960088f80ea94e9e4a2f679ddb05b 100644 (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)