You should add belong function to cmake file. It will solve the problem of fatal error: rabbitmq-c/amqp.h: No such file or directory 2 | #include <rabbitmq-c/amqp.h>.
find_library(RABBITMQ_LIB librabbitmq)