Page 1 of 1

How to include pcanbasic library to a CMake Project (C++) on Linux

Posted: Thu 18. Mar 2021, 10:41
by Arcon
Hi,

I have a CMake project (C++) and I would like to know how to
include your pcanbasic library to my project.

(I have already installed the "linux driver" and "pcan-basic" for linux)

Regards,
Arcon

Re: How to include pcanbasic library to a CMake Project (C++) on Linux

Posted: Thu 18. Mar 2021, 11:32
by M.Heidemann
Hello Acron,

Thanks for your request.

You should have a look at the examples provided in the peak-linux driver package.

In

Code: Select all

/peak-linux-driver-8.11.0/libpcanbasic/examples/c++/src
you will find
the source code for the example-applications provided (pcanread, pcanwrite, pcaneventwrite, pcaneventread),
you can use them as a basis for your own application.

The corresponding makefile can be found in

Code: Select all

/peak-linux-driver-8.11.0/libpcanbasic/examples/c++
For further questions feel free to contact us again.

Best Regards

Marvin