@ -4,6 +4,15 @@ elseif(PHYSX_SDK_PATH AND PHYSX_LOADER_LIBRARY)
set ( PHYSX_FIND_QUIETLY TRUE )
endif ( )
# T h i s i s n ' t q u i t e r i g h t , b u t w e ' l l a s s u m e t h e y a r e a l l a t t h e s a m e p l a c e .
find_path ( PHYSX_SDK_PATH SDKs/Cooking/Include/NxCooking.h
/ u s r / l o c a l / i n c l u d e
/ u s r / i n c l u d e
P A T H _ S U F F I X E S " P h y s X / v 2 . 6 . 4 "
P A T H _ S U F F I X E S " P h y s X / v 2 . 7 . 3 "
)
if ( PHYSX_SDK_PATH )
set ( PHYSX_FOUNDATION_INCLUDE_DIR "${PHYSX_SDK_PATH}/Foundation/include" )
set ( PHYSX_COOKING_INCLUDE_DIR "${PHYSX_SDK_PATH}/Cooking/include" )
@ -21,18 +30,28 @@ if(PHYSX_SDK_PATH)
$ { P H Y S X _ E X T E N S I O N S _ I N C L U D E _ D I R }
$ { P H Y S X _ P H Y S I C S _ I N C L U D E _ D I R }
$ { P H Y S X _ L O A D E R _ I N C L U D E _ D I R }
)
)
endif ( )
# T O D O : M a k e f i n d p a t h s w o r k f o r L i n u x b u i l d s t o o
# 2 . 7 . 3 i s t h e e a r l i e s t v e r s i o n t h a t c a n b e d o w n l o a d e d f r o m n V i d i a ' s a r c h i v e .
find_library ( PHYSX_COOKING_LIBRARY NAMES NxCooking
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 " )
P A T H _ S U F F I X E S " P h y s X / v 2 . 6 . 4 "
P A T H _ S U F F I X E S " P h y s X / v 2 . 7 . 3 "
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 "
)
find_library ( PHYSX_CHARACTER_LIBRARY NAMES NxCharacter
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 " )
P A T H _ S U F F I X E S " P h y s X / v 2 . 6 . 4 "
P A T H _ S U F F I X E S " P h y s X / v 2 . 7 . 3 "
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 "
)
find_library ( PHYSX_EXTENSIONS_LIBRARY NAMES NxExtensions
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 " )
P A T H _ S U F F I X E S " P h y s X / v 2 . 6 . 4 "
P A T H _ S U F F I X E S " P h y s X / v 2 . 7 . 3 "
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 "
)
find_library ( PHYSX_LOADER_LIBRARY NAMES PhysXLoader
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 " )
P A T H S " $ { P H Y S X _ S D K _ P A T H } / l i b / w i n 3 2 "
)
set ( PHYSX_LIBRARIES
$ { P H Y S X _ C O O K I N G _ L I B R A R Y }