famez / J1939-Framework

Framework to work with J1939 Frames used in CAN bus in bus, car and trucks industries
MIT License
158 stars 55 forks source link

Make CMake targets more modular to reduce required dependencies #12

Open RFRIEDM-Trimble opened 2 years ago

RFRIEDM-Trimble commented 2 years ago

As a user of this library, I want to just use a few parts of the library for things like J1939/Transport, but I am required to have a bunch of other dependencies to compile such as libgtest-dev protobuf-compiler libprotobuf-dev libncurses-dev libwebsockets jsoncpp

For example, if I just want transport, I should be able to build transport, with minimal requirements.

cmake -S . -B build && cmake --build build --target transport