CMakeLists.txt 682 B

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