
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
34 lines
1.1 KiB
CMake
34 lines
1.1 KiB
CMake
file(GLOB SOURCES Source/*.cpp)
|
|
add_library(Detour ${SOURCES})
|
|
|
|
add_library(RecastNavigation::Detour ALIAS Detour)
|
|
set_target_properties(Detour PROPERTIES DEBUG_POSTFIX -d)
|
|
|
|
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 ${LIB_VERSION}
|
|
COMPILE_PDB_OUTPUT_DIRECTORY .
|
|
COMPILE_PDB_NAME "Detour-d"
|
|
)
|
|
|
|
install(TARGETS Detour
|
|
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:Detour>/Detour-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")
|
|
endif()
|