Getting ESP-IDF library to work with ESP32 in Arduino

I think this is a more general thing with libraries thats why im posting it here.
Im trying to get this library ( GitHub - natanaeljr/esp32-MPU-driver: ESP32 full library for all MPU6000 MPU6050 MPU6500 MPU9150 MPU9250 with SPI and I2C support and more. ) for the MPU9250 and ESP32 in Arduino but the problem is it was made for ESP-IDF. As far as ive read because the ESP32 arduino is based on ESP-IDF it should work.
Ive come to the conclusion that i need to run a make or cmake file to set the library up. Ive installed cmake but its giving me errors (unknown and missing things). I new to these things so im probably just missing something. Any help would be great!