mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-04-12 03:03:45 +02:00
32 lines
547 B
CMake
32 lines
547 B
CMake
set (
|
|
requires
|
|
esp_driver_uart
|
|
CommandManager
|
|
ProjectConfig
|
|
)
|
|
|
|
if ("$ENV{IDF_TARGET}" STREQUAL "esp32s3")
|
|
list(APPEND requires
|
|
tinyusb
|
|
)
|
|
endif()
|
|
|
|
set (
|
|
source_files
|
|
"SerialManager/SerialManager.cpp"
|
|
)
|
|
|
|
if ("$ENV{IDF_TARGET}" STREQUAL "esp32s3" )
|
|
list(APPEND source_files
|
|
"SerialManager/SerialManager_esp32s3.cpp"
|
|
)
|
|
else()
|
|
list(APPEND source_files
|
|
"SerialManager/SerialManager_esp32.cpp"
|
|
)
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${source_files}
|
|
INCLUDE_DIRS "SerialManager"
|
|
REQUIRES ${requires}
|
|
) |