FindPhysX.cmake 949 B

12345678910111213141516171819202122232425262728
  1. # Find PhysX
  2. #
  3. # This module defines
  4. # PhysX_INCLUDE_DIRS
  5. # PhysX_LIBRARIES
  6. # PhysX_FOUND
  7. start_find_package(PhysX)
  8. set(PhysX_INSTALL_DIR ${PROJECT_SOURCE_DIR}/../Dependencies/PhysX CACHE PATH "")
  9. gen_default_lib_search_dirs(PhysX)
  10. if(NOT APPLE)
  11. if(BS_64BIT)
  12. set(BS_PHYSX_SUFFIX _x64)
  13. else()
  14. set(BS_PHYSX_SUFFIX _x86)
  15. endif()
  16. endif()
  17. find_imported_includes(PhysX PxPhysics.h)
  18. find_imported_library_shared2(PhysX PhysX3${BS_PHYSX_SUFFIX} PhysX3CHECKED${BS_PHYSX_SUFFIX})
  19. find_imported_library_shared2(PhysX PhysX3Common${BS_PHYSX_SUFFIX} PhysX3CommonCHECKED${BS_PHYSX_SUFFIX})
  20. find_imported_library_shared2(PhysX PhysX3Cooking${BS_PHYSX_SUFFIX} PhysX3CookingCHECKED${BS_PHYSX_SUFFIX})
  21. find_imported_library_shared2(PhysX PhysX3CharacterKinematic${BS_PHYSX_SUFFIX} PhysX3CharacterKinematicCHECKED${BS_PHYSX_SUFFIX})
  22. find_imported_library2(PhysX PhysX3Extensions PhysX3ExtensionsCHECKED)
  23. end_find_package(PhysX PhysX3${BS_PHYSX_SUFFIX})