Skip to content

Commit 4bdc673

Browse files
committed
Add ALIAS for all target adding the namespace Physx::
This allow to refer to the target with the same name `PhysX::PhysXCommon` when using either `add_subdirectory` or `find_package`
1 parent 9789a7a commit 4bdc673

15 files changed

+15
-0
lines changed

physx/source/compiler/cmake/FastXml.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ ADD_LIBRARY(FastXml ${FASTXML_LIBTYPE}
5151
${FASTXML_HEADERS}
5252
${FASTXML_SOURCE}
5353
)
54+
ADD_LIBRARY(PhysX::FastXml ALIAS FastXml)
5455

5556
GET_TARGET_PROPERTY(PHYSXFOUNDATION_INCLUDES PhysXFoundation INTERFACE_INCLUDE_DIRECTORIES)
5657

physx/source/compiler/cmake/LowLevel.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ ADD_LIBRARY(LowLevel ${LOWLEVEL_LIBTYPE}
145145
${LL_SOFTWARE_HEADERS}
146146
${LL_SOFTWARE_SOURCE}
147147
)
148+
ADD_LIBRARY(PhysX::LowLevel ALIAS LowLevel)
148149

149150
GET_TARGET_PROPERTY(PHYSXFOUNDATION_INCLUDES PhysXFoundation INTERFACE_INCLUDE_DIRECTORIES)
150151

physx/source/compiler/cmake/LowLevelAABB.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ ADD_LIBRARY(LowLevelAABB ${LOWLEVELAABB_LIBTYPE}
6969
${LLAABB_HEADERS}
7070
${LLAABB_SOURCE}
7171
)
72+
ADD_LIBRARY(PhysX::LowLevelAABB ALIAS LowLevelAABB)
7273

7374
GET_TARGET_PROPERTY(PHYSXFOUNDATION_INCLUDES PhysXFoundation INTERFACE_INCLUDE_DIRECTORIES)
7475

physx/source/compiler/cmake/LowLevelDynamics.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ ADD_LIBRARY(LowLevelDynamics ${LOWLEVELDYNAMICS_LIBTYPE}
137137
${LLDYNAMICS_SOURCE}
138138
${LLDYNAMICS_INTERNAL_INCLUDES}
139139
)
140+
ADD_LIBRARY(PhysX::LowLevelDynamics ALIAS LowLevelDynamics)
140141

141142
GET_TARGET_PROPERTY(PHYSXFOUNDATION_INCLUDES PhysXFoundation INTERFACE_INCLUDE_DIRECTORIES)
142143

physx/source/compiler/cmake/PhysX.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ ADD_LIBRARY(PhysX ${PHYSX_LIBTYPE}
254254

255255
${PHYSX_PLATFORM_SRC_FILES}
256256
)
257+
ADD_LIBRARY(PhysX::PhysX ALIAS PhysX)
257258

258259
# Add the headers to the install
259260
INSTALL(FILES ${PHYSX_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include)

physx/source/compiler/cmake/PhysXCharacterKinematic.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ ADD_LIBRARY(PhysXCharacterKinematic ${PHYSXCHARACTERKINEMATIC_LIBTYPE}
7676
${PHYSXCCT_HEADERS}
7777
${PHYSXCCT_SOURCE}
7878
)
79+
ADD_LIBRARY(PhysX::PhysXCharacterKinematic ALIAS PhysXCharacterKinematic)
7980

8081
INSTALL(FILES ${PHYSXCCT_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include/characterkinematic)
8182

physx/source/compiler/cmake/PhysXCommon.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ ADD_LIBRARY(PhysXCommon ${PHYSXCOMMON_LIBTYPE}
488488
${PHYSXCOMMON_GU_PCM_SOURCE}
489489
${PHYSXCOMMON_GU_SWEEP_SOURCE}
490490
)
491+
ADD_LIBRARY(PhysX::PhysXCommon ALIAS PhysXCommon)
491492

492493
INSTALL(FILES ${PHYSXCOMMON_GEOMETRY_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include/geometry)
493494
INSTALL(FILES ${PHYSXCOMMON_GEOMUTILS_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include/geomutils)

physx/source/compiler/cmake/PhysXCooking.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ ADD_LIBRARY(PhysXCooking ${PHYSXCOOKING_LIBTYPE}
115115

116116
${PHYSXCOOKING_PLATFORM_SRC_FILES}
117117
)
118+
ADD_LIBRARY(PhysX::PhysXCooking ALIAS PhysXCooking)
118119

119120
INSTALL(FILES ${PHYSX_COOKING_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include/cooking)
120121

physx/source/compiler/cmake/PhysXExtensions.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ ADD_LIBRARY(PhysXExtensions ${PHYSXEXTENSIONS_LIBTYPE}
220220
${PHYSX_EXTENSIONS_SERIALIZATION_FILE_SOURCE}
221221
${PHYSX_EXTENSIONS_SERIALIZATION_BINARY_SOURCE}
222222
)
223+
ADD_LIBRARY(PhysX::PhysXExtensions ALIAS PhysXExtensions)
223224

224225
INSTALL(FILES ${PHYSX_EXTENSIONS_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include/extensions)
225226
INSTALL(FILES ${PHYSX_FILEBUF_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include/filebuf)

physx/source/compiler/cmake/PhysXFoundation.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ ADD_LIBRARY(PhysXFoundation ${PHYSXFOUNDATION_LIBTYPE}
143143
${PXSHARED_HEADERS}
144144
${PXSHARED_PLATFORM_HEADERS}
145145
)
146+
ADD_LIBRARY(PhysX::PhysXFoundation ALIAS PhysXFoundation)
146147

147148
# Add the headers to the install
148149
INSTALL(FILES ${PHYSXFOUNDATION_HEADERS} DESTINATION ${PHYSX_INSTALL_PREFIX}/include)

0 commit comments

Comments
 (0)