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

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
Arcon
Posts: 4
Joined: Tue 2. Mar 2021, 09:05

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

Post by Arcon » Thu 18. Mar 2021, 10:41

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

M.Heidemann
Sales & Support
Sales & Support
Posts: 486
Joined: Fri 20. Sep 2019, 13:31

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

Post by M.Heidemann » Thu 18. Mar 2021, 11:32

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

Post Reply