CMakeLists.txt 794 B

1234567891011121314151617181920212223242526272829303132333435
  1. file(GLOB SOURCES Source/*.cpp)
  2. if (RECASTNAVIGATION_STATIC)
  3. add_library(DebugUtils STATIC ${SOURCES})
  4. else()
  5. add_library(DebugUtils SHARED ${SOURCES})
  6. endif()
  7. add_library(RecastNavigation::DebugUtils ALIAS DebugUtils)
  8. set(DebugUtils_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/Include")
  9. target_include_directories(DebugUtils PUBLIC
  10. "$<BUILD_INTERFACE:${DebugUtils_INCLUDE_DIR}>"
  11. )
  12. target_link_libraries(DebugUtils
  13. Recast
  14. Detour
  15. DetourTileCache
  16. )
  17. set_target_properties(DebugUtils PROPERTIES
  18. SOVERSION ${SOVERSION}
  19. VERSION ${VERSION}
  20. )
  21. install(TARGETS DebugUtils
  22. ARCHIVE DESTINATION lib
  23. LIBRARY DESTINATION lib
  24. COMPONENT library
  25. )
  26. file(GLOB INCLUDES Include/*.h)
  27. install(FILES ${INCLUDES} DESTINATION include)