2019-05-10 02:53:08 +00:00
|
|
|
idf_build_get_property(soc_name IDF_TARGET)
|
2019-04-28 07:38:23 +00:00
|
|
|
|
2019-05-10 02:53:08 +00:00
|
|
|
get_filename_component(soc_test "${CMAKE_CURRENT_SOURCE_DIR}/../${soc_name}/test" ABSOLUTE)
|
|
|
|
if(EXISTS "${soc_test}")
|
2019-04-28 07:38:23 +00:00
|
|
|
set(srcs "${soc_test}")
|
|
|
|
set(include_dirs "${soc_test}")
|
2019-03-19 03:42:51 +00:00
|
|
|
endif()
|
2018-08-27 02:48:16 +00:00
|
|
|
|
2019-04-28 07:38:23 +00:00
|
|
|
idf_component_register(SRC_DIRS "${src_dirs}"
|
|
|
|
INCLUDE_DIRS "${include_dirs}"
|
|
|
|
REQUIRES unity test_utils)
|