move mlib to libs folder

This commit is contained in:
Ken Van Hoeylandt
2024-01-17 21:45:57 +01:00
parent a931b83435
commit 6550fa4583
39 changed files with 12 additions and 5 deletions
+2
View File
@@ -17,3 +17,5 @@ endif()
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(Tactility)
add_subdirectory(libs/mlib)
-3
View File
@@ -1,3 +0,0 @@
idf_component_register(
INCLUDE_DIRS "."
)
+4 -1
View File
@@ -1,5 +1,8 @@
idf_component_register(
SRC_DIRS "src"
INCLUDE_DIRS "src"
REQUIRES mlib mbedtls esp_hw_support nvs_flash
REQUIRES mbedtls esp_hw_support nvs_flash
)
target_link_libraries(${COMPONENT_LIB} ${IDF_TARGET_NAME} mlib)
+1 -1
View File
@@ -20,7 +20,6 @@ idf_component_register(
driver
fatfs
tactility-core
mlib
nvs_flash
spiffs
)
@@ -30,3 +29,4 @@ spiffs_create_partition_image(assets ${ASSETS_SRC_DIR} FLASH_IN_PROJECT)
set(CONFIG_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/config")
spiffs_create_partition_image(config ${CONFIG_SRC_DIR} FLASH_IN_PROJECT)
+4
View File
@@ -0,0 +1,4 @@
cmake_minimum_required(VERSION 3.16)
add_library(mlib INTERFACE "") # No sources
target_include_directories(mlib INTERFACE .)
+1
View File
@@ -14,3 +14,4 @@ idf_component_register(
"src/hello_world"
REQUIRES ${project_components}
)