mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-31 18:16:34 +03:00
Add two project components, component1 and component2, and verify that their real targets are created when they are included. Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
6 lines
248 B
CMake
6 lines
248 B
CMake
idf_component_include(component1 INTERFACE component1)
|
|
|
|
add_library(${COMPONENT_TARGET} component2.c)
|
|
target_include_directories(${COMPONENT_TARGET} PUBLIC ${CMAKE_CURRENT_LIST_DIR})
|
|
target_link_libraries(${COMPONENT_TARGET} PRIVATE ${component1})
|