|
|
|
@ -1,12 +1,8 @@
|
|
|
|
|
file(GLOB SOURCES Source/*.cpp)
|
|
|
|
|
|
|
|
|
|
if (RECASTNAVIGATION_STATIC)
|
|
|
|
|
add_library(DetourTileCache STATIC ${SOURCES})
|
|
|
|
|
else ()
|
|
|
|
|
add_library(DetourTileCache SHARED ${SOURCES})
|
|
|
|
|
endif ()
|
|
|
|
|
add_library(DetourTileCache ${SOURCES})
|
|
|
|
|
|
|
|
|
|
add_library(RecastNavigation::DetourTileCache ALIAS DetourTileCache)
|
|
|
|
|
set_target_properties(DetourTileCache PROPERTIES DEBUG_POSTFIX -d)
|
|
|
|
|
|
|
|
|
|
set(DetourTileCache_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
|
|
|
|
|
|
|
|
|
@ -21,14 +17,19 @@ target_link_libraries(DetourTileCache
|
|
|
|
|
set_target_properties(DetourTileCache PROPERTIES
|
|
|
|
|
SOVERSION ${SOVERSION}
|
|
|
|
|
VERSION ${VERSION}
|
|
|
|
|
COMPILE_PDB_OUTPUT_DIRECTORY .
|
|
|
|
|
COMPILE_PDB_NAME "DetourTileCache-d"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install(TARGETS DetourTileCache
|
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
|
COMPONENT library
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
file(GLOB INCLUDES Include/*.h)
|
|
|
|
|
install(FILES ${INCLUDES} DESTINATION include)
|
|
|
|
|
install(FILES ${INCLUDES} DESTINATION
|
|
|
|
|
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
|
|
|
|
|
install(FILES "$<TARGET_FILE_DIR:DetourTileCache>/DetourTileCache-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
|
|
|
|