updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / recastnavigation-svn / cmake.patch
blobfefa6f2eb3f1937726978204bbd0b15c1b0d8fb8
1 diff -rupN -x entries recastnavigation-read-only//CMakeLists.txt recastnavigation-read-only-new//CMakeLists.txt
2 --- recastnavigation-read-only//CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100
3 +++ recastnavigation-read-only-new//CMakeLists.txt 2010-03-10 10:08:44.366086396 +0100
4 @@ -0,0 +1,20 @@
5 +cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
7 +project (RecastNavigation)
9 +SET (LIBRARY_OUTPUT_PATH
10 + ${PROJECT_BINARY_DIR}/bin
11 + CACHE PATH
12 + "Single Directory for all Libraries"
15 +SET (EXECUTABLE_OUTPUT_PATH
16 + ${PROJECT_BINARY_DIR}/bin
17 + CACHE PATH
18 + "Single Directory for all Executables."
21 +add_subdirectory (Detour)
22 +add_subdirectory (Recast)
23 +add_subdirectory (DebugUtils)
24 +add_subdirectory (RecastDemo)
25 diff -rupN -x entries recastnavigation-read-only//DebugUtils/CMakeLists.txt recastnavigation-read-only-new//DebugUtils/CMakeLists.txt
26 --- recastnavigation-read-only//DebugUtils/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100
27 +++ recastnavigation-read-only-new//DebugUtils/CMakeLists.txt 2010-03-08 13:54:14.385138498 +0100
28 @@ -0,0 +1,21 @@
29 +include_directories(
30 + ${RecastNavigation_SOURCE_DIR}/DebugUtils/Include
31 + ${RecastNavigation_SOURCE_DIR}/Detour/Include
32 + ${RecastNavigation_SOURCE_DIR}/Recast/Include
35 +link_directories (
36 + ${RecastNavigation_BINARY_DIR}/Detour
37 + ${RecastNavigation_BINARY_DIR}/Recast
40 +add_library (
41 + DebugUtils SHARED
43 + Source/DebugDraw.cpp
44 + Source/DetourDebugDraw.cpp
45 + Source/RecastDebugDraw.cpp
46 + Source/RecastDump.cpp
49 +TARGET_LINK_LIBRARIES( DebugUtils Detour Recast )
50 diff -rupN -x entries recastnavigation-read-only//Detour/CMakeLists.txt recastnavigation-read-only-new//Detour/CMakeLists.txt
51 --- recastnavigation-read-only//Detour/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100
52 +++ recastnavigation-read-only-new//Detour/CMakeLists.txt 2010-03-08 13:48:04.882066694 +0100
53 @@ -0,0 +1,13 @@
54 +include_directories( ${RecastNavigation_SOURCE_DIR}/Detour/Include )
55 +link_directories ( ${RecastNavigation_BINARY_DIR}/Recast )
57 +add_library (
58 + Detour SHARED
60 + Source/DetourCommon.cpp
61 + Source/DetourNavMesh.cpp
62 + Source/DetourNavMeshBuilder.cpp
63 + Source/DetourNode.cpp
66 +TARGET_LINK_LIBRARIES( Detour Recast )
67 diff -rupN -x entries recastnavigation-read-only//Recast/CMakeLists.txt recastnavigation-read-only-new//Recast/CMakeLists.txt
68 --- recastnavigation-read-only//Recast/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100
69 +++ recastnavigation-read-only-new//Recast/CMakeLists.txt 2010-03-08 13:49:49.398704162 +0100
70 @@ -0,0 +1,19 @@
71 +include_directories( ${RecastNavigation_SOURCE_DIR}/Recast/Include )
72 +#link_directories ( ${RecastNavigation_BINARY_DIR}/Recast )
74 +add_library (
75 + Recast SHARED
77 + Source/Recast.cpp
78 + Source/RecastArea.cpp
79 + Source/RecastContour.cpp
80 + Source/RecastFilter.cpp
81 + Source/RecastLog.cpp
82 + Source/RecastMesh.cpp
83 + Source/RecastMeshDetail.cpp
84 + Source/RecastRasterization.cpp
85 + Source/RecastRegion.cpp
86 + Source/RecastTimer.cpp
89 +#TARGET_LINK_LIBRARIES( Detour Recast )
90 diff -rupN -x entries recastnavigation-read-only//RecastDemo/CMakeLists.txt recastnavigation-read-only-new//RecastDemo/CMakeLists.txt
91 --- recastnavigation-read-only//RecastDemo/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100
92 +++ recastnavigation-read-only-new//RecastDemo/CMakeLists.txt 2010-03-10 10:08:31.589433396 +0100
93 @@ -0,0 +1,58 @@
95 +FIND_PACKAGE(OpenGL REQUIRED)
96 +FIND_PACKAGE(SDL REQUIRED)
98 +IF (OPENGL_FOUND)
99 + MESSAGE("OPENGL FOUND [${OPENGL_LIBRARIES}]")
100 +ENDIF (OPENGL_FOUND)
102 +IF (SDL_FOUND)
103 + MESSAGE("SDL FOUND [${SDL_LIBRARY}]")
104 +ENDIF (SDL_FOUND)
106 +include_directories(
107 + ${SDL_INCLUDE_DIR}
108 + ${RecastNavigation_SOURCE_DIR}/RecastDemo/Include
109 + ${RecastNavigation_SOURCE_DIR}/RecastDemo/Contrib
110 + ${RecastNavigation_SOURCE_DIR}/DebugUtils/Include
111 + ${RecastNavigation_SOURCE_DIR}/Detour/Include
112 + ${RecastNavigation_SOURCE_DIR}/Recast/Include
115 +link_directories (
116 + ${RecastNavigation_BINARY_DIR}/Detour
117 + ${RecastNavigation_BINARY_DIR}/Recast
118 + ${RecastNavigation_BINARY_DIR}/DebugUtils
121 +add_executable (
122 + RecastDemo
124 + Source/ChunkyTriMesh.cpp
125 + Source/ConvexVolumeTool.cpp
126 + Source/imgui.cpp
127 + Source/imguiRenderGL.cpp
128 + Source/InputGeom.cpp
129 + Source/main.cpp
130 + Source/MeshLoaderObj.cpp
131 + Source/NavMeshTesterTool.cpp
132 + Source/OffMeshConnectionTool.cpp
133 + Source/Sample.cpp
134 + Source/Sample_Debug.cpp
135 + Source/Sample_SoloMeshSimple.cpp
136 + Source/Sample_SoloMeshTiled.cpp
137 + Source/Sample_TileMesh.cpp
138 + Source/TestCase.cpp
139 + #Source/SDLMain.m
142 +TARGET_LINK_LIBRARIES( RecastDemo DebugUtils Detour Recast ${SDL_LIBRARY} ${OPENGL_LIBRARIES} )
144 +# create_symlink
145 +execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${RecastNavigation_SOURCE_DIR}/RecastDemo/Bin/Meshes ${EXECUTABLE_OUTPUT_PATH}/Meshes)
147 +execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${RecastNavigation_SOURCE_DIR}/RecastDemo/Bin/Tests ${EXECUTABLE_OUTPUT_PATH}/Tests)
149 +execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${RecastNavigation_SOURCE_DIR}/RecastDemo/Bin/DroidSans.ttf ${EXECUTABLE_OUTPUT_PATH})
151 +execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${RecastNavigation_SOURCE_DIR}/RecastDemo/Bin/test.chf ${EXECUTABLE_OUTPUT_PATH})