
Some checks failed
Build / macOS-premake (Debug) (push) Has been cancelled
Build / macOS-premake (Release) (push) Has been cancelled
Build / macos-cmake (Debug) (push) Has been cancelled
Build / macos-cmake (Release) (push) Has been cancelled
Build / linux-premake (clang, debug) (push) Has been cancelled
Build / linux-premake (clang, release) (push) Has been cancelled
Build / linux-premake (gcc, debug) (push) Has been cancelled
Build / linux-premake (gcc, release) (push) Has been cancelled
Build / linux-cmake (Debug) (push) Has been cancelled
Build / linux-cmake (Release) (push) Has been cancelled
Build / windows-premake (Debug, windows-2019, 16.0, vs2019) (push) Has been cancelled
Build / windows-premake (Debug, windows-2022, 17.0, vs2022) (push) Has been cancelled
Build / windows-premake (Release, windows-2019, 16.0, vs2019) (push) Has been cancelled
Build / windows-premake (Release, windows-2022, 17.0, vs2022) (push) Has been cancelled
Build / windows-cmake (Visual Studio 16 2019, Debug, windows-2019, vs2019) (push) Has been cancelled
Build / windows-cmake (Visual Studio 16 2019, Release, windows-2019, vs2019) (push) Has been cancelled
Build / windows-cmake (Visual Studio 17 2022, Debug, windows-2022, vs2022) (push) Has been cancelled
Build / windows-cmake (Visual Studio 17 2022, Release, windows-2022, vs2022) (push) Has been cancelled
Tests / macos-tests (push) Has been cancelled
Tests / linux-tests (push) Has been cancelled
Tests / windows-tests (push) Has been cancelled
39 lines
1.2 KiB
CMake
39 lines
1.2 KiB
CMake
file(GLOB SOURCES Source/*.cpp)
|
|
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")
|
|
|
|
target_include_directories(DetourTileCache PUBLIC
|
|
"$<BUILD_INTERFACE:${DetourTileCache_INCLUDE_DIR}>"
|
|
)
|
|
|
|
target_link_libraries(DetourTileCache
|
|
Detour
|
|
)
|
|
|
|
set_target_properties(DetourTileCache PROPERTIES
|
|
SOVERSION ${SOVERSION}
|
|
VERSION ${LIB_VERSION}
|
|
COMPILE_PDB_OUTPUT_DIRECTORY .
|
|
COMPILE_PDB_NAME "DetourTileCache-d"
|
|
)
|
|
|
|
|
|
install(TARGETS DetourTileCache
|
|
EXPORT recastnavigation-targets
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT library
|
|
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation
|
|
)
|
|
|
|
file(GLOB INCLUDES Include/*.h)
|
|
install(FILES ${INCLUDES} DESTINATION
|
|
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
|
|
if(MSVC)
|
|
install(FILES "$<TARGET_FILE_DIR:DetourTileCache>/DetourTileCache-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
|
endif()
|