FindPhysX.cmake 922 B

1234567891011121314151617181920212223242526
  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(BS_64BIT)
  11. set(BS_PHYSX_SUFFIX _x64)
  12. else()
  13. set(BS_PHYSX_SUFFIX _x86)
  14. endif()
  15. find_imported_includes(PhysX PxPhysics.h)
  16. find_imported_library_shared2(PhysX PhysX3${BS_PHYSX_SUFFIX} PhysX3CHECKED${BS_PHYSX_SUFFIX})
  17. find_imported_library_shared2(PhysX PhysX3Common${BS_PHYSX_SUFFIX} PhysX3CommonCHECKED${BS_PHYSX_SUFFIX})
  18. find_imported_library_shared2(PhysX PhysX3Cooking${BS_PHYSX_SUFFIX} PhysX3CookingCHECKED${BS_PHYSX_SUFFIX})
  19. find_imported_library_shared2(PhysX PhysX3CharacterKinematic${BS_PHYSX_SUFFIX} PhysX3CharacterKinematicCHECKED${BS_PHYSX_SUFFIX})
  20. find_imported_library2(PhysX PhysX3Extensions PhysX3ExtensionsCHECKED)
  21. end_find_package(PhysX PhysX3${BS_PHYSX_SUFFIX})