Compiling Driveworks sample on DrivePX2

I have installed Eigen and OpenCV on DrivePX 2. I would prefer to compile and build the samples directly on DrivePX2.
Is it possible to compile Driveworks 1.2 sample on Drive PX2? What changes should I do in the CMakeLists?

Dear @a.a.menezes,
You need to cross compile DW samples on host. Compilation on DRIVE PX2 is not supported.