cmake: make main a component again
This commit is contained in:
@@ -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)
|
||||
|
||||
6
examples/bluetooth/a2dp_gatts_coex/main/CMakeLists.txt
Normal file
6
examples/bluetooth/a2dp_gatts_coex/main/CMakeLists.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
set(COMPONENT_SRCS "bt_app_av.c"
|
||||
"bt_app_core.c"
|
||||
"main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
6
examples/bluetooth/a2dp_sink/main/CMakeLists.txt
Normal file
6
examples/bluetooth/a2dp_sink/main/CMakeLists.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
set(COMPONENT_SRCS "bt_app_av.c"
|
||||
"bt_app_core.c"
|
||||
"main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
5
examples/bluetooth/a2dp_source/main/CMakeLists.txt
Normal file
5
examples/bluetooth/a2dp_source/main/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
set(COMPONENT_SRCS "bt_app_core.c"
|
||||
"main.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/ble_adv/main/CMakeLists.txt
Normal file
4
examples/bluetooth/ble_adv/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "app_bt.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
5
examples/bluetooth/ble_eddystone/main/CMakeLists.txt
Normal file
5
examples/bluetooth/ble_eddystone/main/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
set(COMPONENT_SRCS "esp_eddystone_api.c"
|
||||
"esp_eddystone_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS "")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
@@ -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)
|
||||
|
||||
5
examples/bluetooth/ble_ibeacon/main/CMakeLists.txt
Normal file
5
examples/bluetooth/ble_ibeacon/main/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
set(COMPONENT_SRCS "esp_ibeacon_api.c"
|
||||
"ibeacon_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/ble_spp_client/main/CMakeLists.txt
Normal file
4
examples/bluetooth/ble_spp_client/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "spp_client_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/ble_spp_server/main/CMakeLists.txt
Normal file
4
examples/bluetooth/ble_spp_server/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "ble_spp_server_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "example_ble_client_throughput.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "example_ble_server_throughput.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
5
examples/bluetooth/blufi/main/CMakeLists.txt
Normal file
5
examples/bluetooth/blufi/main/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
set(COMPONENT_SRCS "blufi_example_main.c"
|
||||
"blufi_security.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/bt_discovery/main/CMakeLists.txt
Normal file
4
examples/bluetooth/bt_discovery/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "bt_discovery.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/bt_spp_acceptor/main/CMakeLists.txt
Normal file
4
examples/bluetooth/bt_spp_acceptor/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "example_spp_acceptor_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/bt_spp_initiator/main/CMakeLists.txt
Normal file
4
examples/bluetooth/bt_spp_initiator/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "example_spp_initiator_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
set(COMPONENT_SRCS "example_spp_vfs_acceptor_demo.c"
|
||||
"spp_task.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
set(COMPONENT_SRCS "example_spp_vfs_initiator_demo.c"
|
||||
"spp_task.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "controller_hci_uart_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/gatt_client/main/CMakeLists.txt
Normal file
4
examples/bluetooth/gatt_client/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "gattc_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "example_ble_sec_gattc_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "example_ble_sec_gatts_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
4
examples/bluetooth/gatt_server/main/CMakeLists.txt
Normal file
4
examples/bluetooth/gatt_server/main/CMakeLists.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "gatts_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "gatts_table_creat_demo.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
@@ -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)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "gattc_multi_connect.c")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
||||
Reference in New Issue
Block a user