1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 13:45:35 +00:00
openmw/extern/recastnavigation/Detour/CMakeLists.txt

31 lines
946 B
Text
Raw Normal View History

2018-10-31 21:20:10 +00:00
file(GLOB SOURCES Source/*.cpp)
add_library(Detour ${SOURCES})
2018-10-31 21:20:10 +00:00
add_library(RecastNavigation::Detour ALIAS Detour)
set_target_properties(Detour PROPERTIES DEBUG_POSTFIX -d)
2018-10-31 21:20:10 +00:00
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}
COMPILE_PDB_OUTPUT_DIRECTORY .
COMPILE_PDB_NAME "Detour-d"
2018-10-31 21:20:10 +00:00
)
install(TARGETS Detour
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2018-10-31 21:20:10 +00:00
COMPONENT library
)
file(GLOB INCLUDES Include/*.h)
install(FILES ${INCLUDES} DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}/recastnavigation)
install(FILES "$<TARGET_FILE_DIR:Detour>/Detour-d.pdb" CONFIGURATIONS "Debug" DESTINATION "lib")