diff --git a/examples/protocols/asio/chat_client/CMakeLists.txt b/examples/protocols/asio/chat_client/CMakeLists.txt new file mode 100644 index 000000000..78d29f0bd --- /dev/null +++ b/examples/protocols/asio/chat_client/CMakeLists.txt @@ -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) diff --git a/examples/protocols/asio/chat_client/components/CMakeLists.txt b/examples/protocols/asio/chat_client/components/CMakeLists.txt new file mode 100644 index 000000000..4bb51e6a5 --- /dev/null +++ b/examples/protocols/asio/chat_client/components/CMakeLists.txt @@ -0,0 +1,5 @@ +set(COMPONENT_SRCDIRS ".") + +set(COMPONENT_PRIV_REQUIRES asio nvs_flash console) + +register_component() diff --git a/examples/protocols/asio/chat_server/CMakeLists.txt b/examples/protocols/asio/chat_server/CMakeLists.txt new file mode 100644 index 000000000..91331df14 --- /dev/null +++ b/examples/protocols/asio/chat_server/CMakeLists.txt @@ -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) diff --git a/examples/protocols/asio/chat_server/components/CMakeLists.txt b/examples/protocols/asio/chat_server/components/CMakeLists.txt new file mode 100644 index 000000000..4bb51e6a5 --- /dev/null +++ b/examples/protocols/asio/chat_server/components/CMakeLists.txt @@ -0,0 +1,5 @@ +set(COMPONENT_SRCDIRS ".") + +set(COMPONENT_PRIV_REQUIRES asio nvs_flash console) + +register_component() diff --git a/examples/protocols/asio/tcp_echo_server/CMakeLists.txt b/examples/protocols/asio/tcp_echo_server/CMakeLists.txt new file mode 100644 index 000000000..76bf9bcb6 --- /dev/null +++ b/examples/protocols/asio/tcp_echo_server/CMakeLists.txt @@ -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) diff --git a/examples/protocols/asio/tcp_echo_server/components/CMakeLists.txt b/examples/protocols/asio/tcp_echo_server/components/CMakeLists.txt new file mode 100644 index 000000000..4bb51e6a5 --- /dev/null +++ b/examples/protocols/asio/tcp_echo_server/components/CMakeLists.txt @@ -0,0 +1,5 @@ +set(COMPONENT_SRCDIRS ".") + +set(COMPONENT_PRIV_REQUIRES asio nvs_flash console) + +register_component() diff --git a/examples/protocols/asio/udp_echo_server/CMakeLists.txt b/examples/protocols/asio/udp_echo_server/CMakeLists.txt new file mode 100644 index 000000000..143a364e4 --- /dev/null +++ b/examples/protocols/asio/udp_echo_server/CMakeLists.txt @@ -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) diff --git a/examples/protocols/asio/udp_echo_server/components/CMakeLists.txt b/examples/protocols/asio/udp_echo_server/components/CMakeLists.txt new file mode 100644 index 000000000..4bb51e6a5 --- /dev/null +++ b/examples/protocols/asio/udp_echo_server/components/CMakeLists.txt @@ -0,0 +1,5 @@ +set(COMPONENT_SRCDIRS ".") + +set(COMPONENT_PRIV_REQUIRES asio nvs_flash console) + +register_component()