cmake: Build all examples in CI

Includes some fixes for compile errors/warnings in examples.
This commit is contained in:
Angus Gratton
2018-04-18 17:54:28 +10:00
committed by Angus Gratton
parent 858b95a924
commit 381be65472
23 changed files with 310 additions and 66 deletions
View File
View File
View File
View File
View File
View File
View File
@@ -0,0 +1,10 @@
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/example_ble_client_throughput.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(throughput_client_demo)
@@ -0,0 +1,10 @@
# The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/example_ble_server_throughput.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(throughput_server_demo)
View File
View File
View File
@@ -0,0 +1,10 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/example_spp_vfs_acceptor_demo.c
main/spp_task.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_vfs_acceptor_demo)
@@ -0,0 +1,10 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/example_spp_vfs_initiator_demo.c
main/spp_task.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_vfs_initiator_demo)