| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- # Find PhysX
- #
- # This module defines
- # PhysX_INCLUDE_DIRS
- # PhysX_LIBRARIES
- # PhysX_FOUND
- start_find_package(PhysX)
- set(PhysX_INSTALL_DIR ${PROJECT_SOURCE_DIR}/../Dependencies/PhysX CACHE PATH "")
- gen_default_lib_search_dirs(PhysX)
- if(NOT APPLE)
- if(BS_64BIT)
- set(BS_PHYSX_SUFFIX _x64)
- else()
- set(BS_PHYSX_SUFFIX _x86)
- endif()
- endif()
- find_imported_includes(PhysX PxPhysics.h)
- if(NOT APPLE)
- find_imported_library_shared2(PhysX PhysX3${BS_PHYSX_SUFFIX} PhysX3CHECKED${BS_PHYSX_SUFFIX})
- find_imported_library_shared2(PhysX PhysX3Common${BS_PHYSX_SUFFIX} PhysX3CommonCHECKED${BS_PHYSX_SUFFIX})
- find_imported_library_shared2(PhysX PhysX3Cooking${BS_PHYSX_SUFFIX} PhysX3CookingCHECKED${BS_PHYSX_SUFFIX})
- find_imported_library_shared2(PhysX PhysX3CharacterKinematic${BS_PHYSX_SUFFIX} PhysX3CharacterKinematicCHECKED${BS_PHYSX_SUFFIX})
- find_imported_library2(PhysX PhysX3Extensions PhysX3ExtensionsCHECKED)
- else()
- find_imported_library(PhysX LowLevel)
- find_imported_library(PhysX LowLevelCloth)
- find_imported_library(PhysX PhysX3)
- find_imported_library(PhysX PhysX3Common)
- find_imported_library(PhysX PhysX3Cooking)
- find_imported_library(PhysX PhysX3CharacterKinematic)
- find_imported_library(PhysX PhysX3Extensions)
- find_imported_library(PhysX PhysXProfileSDK)
- find_imported_library(PhysX PvdRuntime)
- find_imported_library(PhysX PxTask)
- find_imported_library(PhysX SceneQuery)
- find_imported_library(PhysX SimulationController)
- endif()
- install_dependency_binaries(PhysX)
- end_find_package(PhysX PhysX3${BS_PHYSX_SUFFIX})
|