Add CMakeLists.txt

This commit is contained in:
nopnop2002 2020-04-11 17:22:48 +09:00
parent 341b526275
commit 066717dbaa
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,6 @@
set(COMPONENT_ADD_INCLUDEDIRS .)
# 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(COMPONENT_SRCS "ssd1306.c")
register_component()
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(ssd1306)

4
main/CMakeLists.txt Normal file
View File

@ -0,0 +1,4 @@
set(COMPONENT_SRCS main.c ssd1306.c ssd1306_i2c.c ssd1306_spi.c)
set(COMPONENT_ADD_INCLUDEDIRS ".")
register_component()