mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
build system: Initial cmake support, work in progress
This commit is contained in:

committed by
Angus Gratton

parent
a538644560
commit
c671a0c3eb
12
examples/get-started/hello_world/CMakeLists.txt
Normal file
12
examples/get-started/hello_world/CMakeLists.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
# 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(CMAKE_TOOLCHAIN_FILE $ENV{IDF_PATH}/toolchain.cmake)
|
||||
project(idf_project ASM C CXX)
|
||||
|
||||
include($ENV{IDF_PATH}/idf.cmake)
|
||||
|
||||
add_executable(hello_world.elf
|
||||
main/hello_world_main.c)
|
||||
|
||||
target_link_libraries(hello_world.elf ${COMPONENT_LIBRARIES})
|
Reference in New Issue
Block a user