mirror of https://github.com/axmolengine/axmol.git
39 lines
782 B
CMake
39 lines
782 B
CMake
|
|
||
|
set(lib_name recast)
|
||
|
set(target_name ${lib_name})
|
||
|
|
||
|
project(${lib_name})
|
||
|
|
||
|
set(${target_name}_src
|
||
|
DebugDraw.cpp
|
||
|
DetourAlloc.cpp
|
||
|
DetourAssert.cpp
|
||
|
DetourCommon.cpp
|
||
|
DetourCrowd.cpp
|
||
|
DetourDebugDraw.cpp
|
||
|
DetourLocalBoundary.cpp
|
||
|
DetourNavMesh.cpp
|
||
|
DetourNavMeshBuilder.cpp
|
||
|
DetourNavMeshQuery.cpp
|
||
|
DetourNode.cpp
|
||
|
DetourObstacleAvoidance.cpp
|
||
|
DetourPathCorridor.cpp
|
||
|
DetourPathQueue.cpp
|
||
|
DetourProximityGrid.cpp
|
||
|
DetourTileCache.cpp
|
||
|
DetourTileCacheBuilder.cpp
|
||
|
)
|
||
|
|
||
|
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"
|
||
|
)
|