queezythegreat/arduino-cmake — Issue #12: Libraries not detected
Author: treaves
Created: 2012-01-09 13:08:05+00:00
State: open

This is a more focused report of the issue where libraries are not found. For this report, reference code https://code.launchpad.net/~treaves/+junk/blinkqp .

This project has a libraries folder at the root of the project. The libraries folder contains a single library, qp. If this is all I do, then cmake displayes:
-- Generating blink
-- Generating Arduino Wire library
-- Configuring done
-- Generating done
No qp generation. And the build fails with lots of undefined references.

To be able to build the project, I must both:
* create cmake entries for each library used
* add each library used to the Firmware_LIBS directive.

Once those two things are done, the compile finishes correctly.

NOTE: do to the other open linkage issue, to cleanly compile the code you must also uncomment the last three lines in project.cpp, which contain the loop() function.