KevinOConnor / can2040

Software CAN bus implementation for rp2040 micro-controllers
GNU General Public License v3.0
667 stars 66 forks source link

Add cmake import #19

Closed HondaRulez closed 1 year ago

HondaRulez commented 1 year ago

Hi, pls add this file to the project to allow importing as a library (like RTOS, and so on..) into the project.

usage: add few lines to the main CMakeLists.txt of the project as follows

Add the next line after pico_sd_init ()

include(path_to_the/can2040-import.cmake)

edit the existing line

target_link_libraries ( your-project your_lib1 your_lib2 . can2040 . your_libx )

The gzipped import cmake file:

can2040-import.cmake.gz

KevinOConnor commented 1 year ago

Thanks, but every project is likely to have notabaly different build rules. It's not a goal of mine to track the many possible build rules in the can2040 repository.

Cheers, -Kevin

github-actions[bot] commented 1 year ago

Hello,

It looks like there hasn't been any recent updates on this github ticket. We prefer to only list tickets as "open" if they are actively being worked on. Feel free to provide an update on this ticket. Otherwise the ticket will be automatically closed in a few days.

Best regards,

~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

KermMartian commented 1 year ago

Thanks for providing this! I was trying to implement this myself, and you saved me some time trying to figure this out.