Files
esp-idf/tools/cmakev2/test/components/component2/CMakeLists.txt
Frantisek Hrbata 3dfc8cdc49 feat(cmakev2/test): add simple test for component include
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>
2025-10-30 17:17:49 +08:00

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})