queezythegreat/arduino-cmake — Issue #9: library not found/generated
Author: treaves
Created: 2011-12-18 03:18:00+00:00
State: open

The "Arduino Libraries" section of the documentation is a bit ambiguous. I am trying to use the ModbusMaster library. I have tried to put the ModbusMaster folder in my top-level folder, as well as my src/ folder (both of which contain a CMakeLists.txt file). In neither case is it found.

When I create a libraries folder in my top-level folder, and put the ModbusMaster folder in this folder, and create a CMakeLists.txt file for it (with the .h & .cpp), cmake does then see it, but I see this output:
-- Generating ModbusMaster
-- Generating Arduino ModbusMaster library

Which to me seems like it is trying to create it twice.

So, the documentation is either incorrect, or there is a defect in the project, or I'm doing something wrong. But following the #2 library note to "Place the library next to the firmware configuration file (same directory as the CMakeLists.txt)" does not seem to be working (this would be my src folder).