jeudi 6 juillet 2023

I dont know how to include libraries in cmake

Hellow.I recently started working with cmake, and I need to include the following libraries I know that this is done using the function add_library(),but what should I give s as an argument?Direct path to the library? And what i must do after it?

   #include "opencv2/core/core.hpp"
   #include "opencv2/imgcodecs.hpp"
   #include "opencv2/imgproc.hpp"
   #include "rknn_api.h"

   #include <float.h>
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
   #include <sys/time.h>

P.S I'm trying to compile this code rknpu2/examples/rknn_commen_test/src/http://main.cc

Aucun commentaire:

Enregistrer un commentaire