cmake: make main a component again

This commit is contained in:
Renz Bagaporo
2018-09-13 08:52:32 +08:00
parent 8e20c13348
commit 7edf2bf66c
241 changed files with 1492 additions and 623 deletions

View File

@@ -2,11 +2,5 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/bt_app_av.c
main/bt_app_core.c
main/main.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_ble_coex)

View File

@@ -0,0 +1,6 @@
set(COMPONENT_SRCS "bt_app_av.c"
"bt_app_core.c"
"main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -2,11 +2,5 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/bt_app_av.c
main/bt_app_core.c
main/main.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(a2dp_sink)

View File

@@ -0,0 +1,6 @@
set(COMPONENT_SRCS "bt_app_av.c"
"bt_app_core.c"
"main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -2,10 +2,5 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/bt_app_core.c
main/main.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(a2dp_source)

View File

@@ -0,0 +1,5 @@
set(COMPONENT_SRCS "bt_app_core.c"
"main.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -2,9 +2,5 @@
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(MAIN_SRCS
main/app_bt.c
)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_adv)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "app_bt.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/esp_eddystone_api.c main/esp_eddystone_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_eddystone_demo)

View File

@@ -0,0 +1,5 @@
set(COMPONENT_SRCS "esp_eddystone_api.c"
"esp_eddystone_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS "")
register_component()

View File

@@ -1,11 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/ble_hidd_demo_main.c
main/hid_dev.c
main/hid_device_le_prf.c
main/esp_hidd_prf_api.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(hidd_demos)

View File

@@ -0,0 +1,7 @@
set(COMPONENT_SRCS "ble_hidd_demo_main.c"
"esp_hidd_prf_api.c"
"hid_dev.c"
"hid_device_le_prf.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/ibeacon_demo.c main/esp_ibeacon_api.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_ibeacon_demo)

View File

@@ -0,0 +1,5 @@
set(COMPONENT_SRCS "esp_ibeacon_api.c"
"ibeacon_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/spp_client_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(spp_client_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "spp_client_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/ble_spp_server_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ble_spp_server_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "ble_spp_server_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -2,9 +2,5 @@
# 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)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "example_ble_client_throughput.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -2,9 +2,5 @@
# 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

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "example_ble_server_throughput.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/blufi_security.c main/blufi_example_main.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(blufi_demo)

View File

@@ -0,0 +1,5 @@
set(COMPONENT_SRCS "blufi_example_main.c"
"blufi_security.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/bt_discovery.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_discovery)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "bt_discovery.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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_spp_acceptor_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_acceptor_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "example_spp_acceptor_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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_spp_initiator_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_initiator_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "example_spp_initiator_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,10 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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_spp_vfs_acceptor_demo.c
main/spp_task.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_vfs_acceptor_demo)

View File

@@ -0,0 +1,5 @@
set(COMPONENT_SRCS "example_spp_vfs_acceptor_demo.c"
"spp_task.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,10 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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_spp_vfs_initiator_demo.c
main/spp_task.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(bt_spp_vfs_initiator_demo)

View File

@@ -0,0 +1,5 @@
set(COMPONENT_SRCS "example_spp_vfs_initiator_demo.c"
"spp_task.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/controller_hci_uart_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(controller_hci_uart)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "controller_hci_uart_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/gattc_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_client_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "gattc_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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_sec_gattc_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sec_gattc_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "example_ble_sec_gattc_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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_sec_gatts_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(sec_gatts_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "example_ble_sec_gatts_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/gatts_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_server_demos)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "gatts_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/gatts_table_creat_demo.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_server_service_table_demo)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "gatts_table_creat_demo.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()

View File

@@ -1,8 +1,6 @@
# The following four lines of boilerplate have to be in your project's CMakeLists
# 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/gattc_multi_connect.c)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(gatt_multi_connect)

View File

@@ -0,0 +1,4 @@
set(COMPONENT_SRCS "gattc_multi_connect.c")
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()