• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

main/11-Mar-2024-156

CMakeLists.txtD11-Mar-2024364 97

MakefileD11-Mar-2024185 92

README.mdD11-Mar-20241.5 KiB3322

README.md

1# _Sample project_
2
3(See the README.md file in the upper level 'examples' directory for more information about examples.)
4
5This is the simplest buildable example. The example is used by command `idf.py create-project`
6that copies the project to user specified path and set it's name. For more information follow the [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project)
7
8
9
10## How to use example
11We encourage the users to use the example as a template for the new projects.
12A recommended way is to follow the instructions on a [docs page](https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/build-system.html#start-a-new-project).
13
14## Example folder contents
15
16The project **sample_project** contains one source file in C language [main.c](main/main.c). The file is located in folder [main](main).
17
18ESP-IDF projects are built using CMake. The project build configuration is contained in `CMakeLists.txt`
19files that provide set of directives and instructions describing the project's source files and targets
20(executable, library, or both).
21
22Below is short explanation of remaining files in the project folder.
23
24```
25├── CMakeLists.txt
26├── main
27│   ├── CMakeLists.txt
28│   └── main.c
29└── README.md                  This is the file you are currently reading
30```
31Additionally, the sample project contains Makefile and component.mk files, used for the legacy Make based build system.
32They are not used or needed when building with CMake and idf.py.
33