Split declaration and definition for ChIrrInterface and modified the cmake file.