cmake_minimum_required(VERSION 3.10)
project(OgreCrowd)
find_package(OGRE REQUIRED CONFIG)
find_package(RecastNavigation REQUIRED CONFIG)

include_directories(include src fastlz)

set(ogrecrowdcpp
src/AnimateableCharacter.cpp
src/Character.cpp
src/ConvexShapeObstacle.cpp
src/CrowdManager.cpp
src/CylinderObstacle.cpp
src/InstancedCharacter.cpp
src/Obstacle.cpp
src/OgreDetourCrowd.cpp
src/OgreDetourTileCache.cpp
src/OgreRecast.cpp
src/OgreRecastNavmeshPruner.cpp
src/RecastConvexHull.cpp
src/RecastInputGeom.cpp
src/TestCharacter.cpp
fastlz/fastlz.c
)

add_library(OgreCrowd ${ogrecrowdcpp} )
target_link_libraries(OgreCrowd PRIVATE OgreMain PUBLIC RecastNavigation::Recast RecastNavigation::Detour RecastNavigation::DebugUtils RecastNavigation::DetourCrowd RecastNavigation::DetourTileCache)

INSTALL(TARGETS OgreCrowd
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib)

