Recast navigation

This commit is contained in:
KimLS
2019-05-16 14:24:08 -07:00
parent e00cd4afd9
commit 4836db73d7
136 changed files with 65640 additions and 0 deletions
@@ -0,0 +1,29 @@
file(GLOB SOURCES Source/*.cpp)
if(RECASTNAVIGATION_STATIC)
add_library(Detour STATIC ${SOURCES})
else()
add_library(Detour SHARED ${SOURCES})
endif()
add_library(RecastNavigation::Detour ALIAS Detour)
set(Detour_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
target_include_directories(Detour PUBLIC
"$<BUILD_INTERFACE:${Detour_INCLUDE_DIR}>"
)
set_target_properties(Detour PROPERTIES
SOVERSION ${SOVERSION}
VERSION ${VERSION}
)
install(TARGETS Detour
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
COMPONENT library
)
file(GLOB INCLUDES Include/*.h)
install(FILES ${INCLUDES} DESTINATION include)