cmake: bluetooth: Don't #include gatt files from src files

Due to a bug in KBuild, bluetooth samples needed to #include the gatt
sources to re-use code between samples. This bug was not ported to
CMake so we can stop applying this workaround.

gatt source files are now directly added to the 'app' library instead
of having adapter source files in the app's src directory that
\#include's the gatt files.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2018-06-13 14:13:27 +02:00 committed by Johan Hedberg
commit 8f3fea300a
21 changed files with 27 additions and 40 deletions

View file

@ -3,10 +3,10 @@ project(NONE)
target_sources(app PRIVATE
src/main.c
src/hrs.c
src/dis.c
src/bas.c
src/cts.c
../gatt/hrs.c
../gatt/dis.c
../gatt/bas.c
../gatt/cts.c
)
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/samples/bluetooth)