forked from espressif/esp-idf
Merge branch 'bugfix/cmake_soc_test' into 'master'
soc: fix compiling unit tests with CMake Closes IDF-499 See merge request idf/esp-idf!4545
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
set(SOC_NAME ${IDF_TARGET})
|
set(SOC_NAME ${IDF_TARGET})
|
||||||
if(EXISTS "../${SOC_NAME}/test")
|
set(SOC_TEST_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../${SOC_NAME}/test)
|
||||||
set(COMPONENT_SRCDIRS "../${SOC_NAME}/test")
|
if(EXISTS "${SOC_TEST_DIR}")
|
||||||
set(COMPONENT_ADD_INCLUDEDIRS "../${SOC_NAME}/test")
|
set(COMPONENT_SRCDIRS "${SOC_TEST_DIR}")
|
||||||
|
set(COMPONENT_ADD_INCLUDEDIRS "${SOC_TEST_DIR}")
|
||||||
set(COMPONENT_REQUIRES unity test_utils)
|
|
||||||
|
|
||||||
register_component()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(COMPONENT_REQUIRES unity test_utils)
|
||||||
|
|
||||||
|
register_component()
|
||||||
|
Reference in New Issue
Block a user