-
Notifications
You must be signed in to change notification settings - Fork 342
/
Copy pathCMakeLists.txt
39 lines (33 loc) · 989 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.6)
set(lib_name recast)
set(target_name ext_${lib_name})
project(${lib_name})
set(${target_name}_src
DebugUtils/DebugDraw.cpp
DebugUtils/DetourDebugDraw.cpp
Detour/DetourAlloc.cpp
Detour/DetourCommon.cpp
Detour/DetourNavMesh.cpp
Detour/DetourNavMeshBuilder.cpp
Detour/DetourNavMeshQuery.cpp
Detour/DetourNode.cpp
DetourCrowd/DetourCrowd.cpp
DetourCrowd/DetourLocalBoundary.cpp
DetourCrowd/DetourObstacleAvoidance.cpp
DetourCrowd/DetourPathCorridor.cpp
DetourCrowd/DetourPathQueue.cpp
DetourCrowd/DetourProximityGrid.cpp
DetourTileCache/DetourTileCache.cpp
DetourTileCache/DetourTileCacheBuilder.cpp
fastlz/fastlz.c
)
add_library(${target_name} STATIC
${${target_name}_src}
)
target_include_directories(${target_name} PUBLIC ..)
set_target_properties(${target_name}
PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
FOLDER "External"
)