mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-22 06:52:20 +02:00
cmake: make main a component again
* Original commit: espressif/esp-idf@d9939cedd9
This commit is contained in:
committed by
gabsuren
parent
e8ea8786d2
commit
57672d5add
@ -1,7 +1,5 @@
|
||||
set(COMPONENT_ADD_INCLUDEDIRS asio/asio/include port/include)
|
||||
set(COMPONENT_SRCDIRS asio/asio/src)
|
||||
|
||||
set(COMPONENT_SRCEXCLUDE asio/asio/src/asio_ssl.cpp)
|
||||
set(COMPONENT_SRCS "asio/asio/src/asio.cpp")
|
||||
|
||||
set(COMPONENT_REQUIRES lwip)
|
||||
|
||||
|
@ -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/chat_client.cpp)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(asio_chat_client)
|
||||
|
@ -1,4 +1,4 @@
|
||||
set(COMPONENT_SRCDIRS ".")
|
||||
set(COMPONENT_SRCS "wifi_asio.cpp")
|
||||
|
||||
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||
|
||||
|
4
examples/protocols/asio/chat_client/main/CMakeLists.txt
Normal file
4
examples/protocols/asio/chat_client/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "chat_client.cpp")
|
||||
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/chat_server.cpp)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(asio_chat_server)
|
||||
|
@ -1,4 +1,4 @@
|
||||
set(COMPONENT_SRCDIRS ".")
|
||||
set(COMPONENT_SRCS "wifi_asio.cpp")
|
||||
|
||||
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||
|
||||
|
4
examples/protocols/asio/chat_server/main/CMakeLists.txt
Normal file
4
examples/protocols/asio/chat_server/main/CMakeLists.txt
Normal file
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "chat_server.cpp")
|
||||
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/echo_server.cpp)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(asio_tcp_echo_server)
|
||||
|
@ -1,4 +1,4 @@
|
||||
set(COMPONENT_SRCDIRS ".")
|
||||
set(COMPONENT_SRCS "wifi_asio.cpp")
|
||||
|
||||
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "echo_server.cpp")
|
||||
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/udp_echo_server.cpp)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(asio_udp_echo_server)
|
||||
|
@ -1,4 +1,4 @@
|
||||
set(COMPONENT_SRCDIRS ".")
|
||||
set(COMPONENT_SRCS "wifi_asio.cpp")
|
||||
|
||||
set(COMPONENT_PRIV_REQUIRES asio nvs_flash console)
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
set(COMPONENT_SRCS "udp_echo_server.cpp")
|
||||
set(COMPONENT_ADD_INCLUDEDIRS ".")
|
||||
|
||||
register_component()
|
Reference in New Issue
Block a user