2018-11-01 00:20:10 +03:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
|
2020-01-31 23:58:21 +01:00
|
|
|
# for link time optimization, remove if cmake version is >= 3.9
|
|
|
|
if(POLICY CMP0069)
|
|
|
|
cmake_policy(SET CMP0069 NEW)
|
|
|
|
endif()
|
|
|
|
|
2018-11-01 00:20:10 +03:00
|
|
|
project(RecastNavigation)
|
|
|
|
|
|
|
|
# lib versions
|
|
|
|
SET(SOVERSION 1)
|
|
|
|
SET(VERSION 1.0.0)
|
|
|
|
|
|
|
|
option(RECASTNAVIGATION_STATIC "Build static libraries" ON)
|
|
|
|
|
2020-11-18 18:03:29 +01:00
|
|
|
if(MSVC AND BUILD_SHARED_LIBS)
|
|
|
|
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2018-11-01 00:20:10 +03:00
|
|
|
add_subdirectory(DebugUtils)
|
|
|
|
add_subdirectory(Detour)
|
|
|
|
add_subdirectory(DetourCrowd)
|
|
|
|
add_subdirectory(DetourTileCache)
|
|
|
|
add_subdirectory(Recast)
|