add physx lib
This commit is contained in:
parent
a2893d7c66
commit
90a08c7a40
|
|
@ -145,6 +145,18 @@ set_target_properties(glslang-default-resource-limits PROPERTIES
|
|||
)
|
||||
set(glslang_libs_name glslang OGLCompiler OSDependent SPIRV glslang-default-resource-limits MachineIndependent GenericCodeGen)
|
||||
|
||||
if(USE_PHYSICS_PHYSX)
|
||||
set(PhysXSDK PhysXCooking PhysXCharacterKinematic PhysXVehicle PhysXExtensions PhysX PhysXPvdSDK PhysXCommon PhysXFoundation)
|
||||
foreach(PX IN LISTS PhysXSDK)
|
||||
add_library(${PX} STATIC IMPORTED GLOBAL)
|
||||
set_target_properties(${PX} PROPERTIES
|
||||
IMPORTED_LOCATION ${ohos_lib_dir}/PhysX/lib${PX}_static.a
|
||||
)
|
||||
endforeach()
|
||||
else()
|
||||
set(PhysXSDK)
|
||||
endif()
|
||||
|
||||
if(OPENHARMONY)
|
||||
add_library(MachineIndependent STATIC IMPORTED GLOBAL)
|
||||
set_target_properties(MachineIndependent PROPERTIES
|
||||
|
|
@ -188,6 +200,7 @@ list(APPEND CC_EXTERNAL_LIBS
|
|||
jpeg
|
||||
png
|
||||
sqlite3
|
||||
${PhysXSDK}
|
||||
${glslang_libs_name}
|
||||
)
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue