How to compile & run the PhysX 4 demos and examples on Linux(Ubuntu 18 LTS)?

I Posted this on StackOverflow.
[url]what are the steps to compile and run NVIDIA PhysX (version4) Kapla Demo and sample code using cmake? - Stack Overflow

I am trying to get into NVIDIA PhysX SDK. But cannot find how to actually run the following,

Kapla Demo:

[url]https://github.com/NVIDIAGameWorks/PhysX/tree/4.1/kaplademo[/url]

Other Samples:

[url]https://github.com/NVIDIAGameWorks/PhysX/tree/4.1/physx/samples[/url]

i followed the instructions here,

[url]http://gameworksdocs.nvidia.com/PhysX/4.1/documentation/physxguide/Manual/BuildingWithPhysX.html[/url]

to get a build with

sudo ./generate_projects linux

and ended up with a document hierarchy that i cannot make heads or tails of.

it would be great if i can link the Kapla Demo and other Examples with a single CMake script. All help is much much appreciated.!