mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-30 18:57:28 +02:00
cmake: Add missing example CMakeLists.txt files, CI check all examples have both
* Original commit: espressif/esp-idf@5689e446dc
This commit is contained in:
8
examples/protocols/asio/chat_client/CMakeLists.txt
Normal file
8
examples/protocols/asio/chat_client/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 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/chat_client.cpp)
|
||||||
|
|
||||||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
project(asio_chat_client)
|
@ -0,0 +1,5 @@
|
|||||||
|
set(COMPONENT_SRCDIRS ".")
|
||||||
|
|
||||||
|
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||||
|
|
||||||
|
register_component()
|
8
examples/protocols/asio/chat_server/CMakeLists.txt
Normal file
8
examples/protocols/asio/chat_server/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 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/chat_server.cpp)
|
||||||
|
|
||||||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
project(asio_chat_server)
|
@ -0,0 +1,5 @@
|
|||||||
|
set(COMPONENT_SRCDIRS ".")
|
||||||
|
|
||||||
|
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||||
|
|
||||||
|
register_component()
|
8
examples/protocols/asio/tcp_echo_server/CMakeLists.txt
Normal file
8
examples/protocols/asio/tcp_echo_server/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 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/echo_server.cpp)
|
||||||
|
|
||||||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
project(asio_tcp_echo_server)
|
@ -0,0 +1,5 @@
|
|||||||
|
set(COMPONENT_SRCDIRS ".")
|
||||||
|
|
||||||
|
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||||
|
|
||||||
|
register_component()
|
8
examples/protocols/asio/udp_echo_server/CMakeLists.txt
Normal file
8
examples/protocols/asio/udp_echo_server/CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# 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/udp_echo_server.cpp)
|
||||||
|
|
||||||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
project(asio_udp_echo_server)
|
@ -0,0 +1,5 @@
|
|||||||
|
set(COMPONENT_SRCDIRS ".")
|
||||||
|
|
||||||
|
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||||
|
|
||||||
|
register_component()
|
Reference in New Issue
Block a user