move test cases after PICO_SDK_POST_LIDR_DIRS inclusion, so pico-host-sdl can be used

This commit is contained in:
graham sanderson 2021-02-24 17:19:20 -06:00
parent d3fa64afc8
commit d652f71e1b

View File

@ -30,16 +30,17 @@ if (NOT TARGET _pico_sdk_inclusion_marker)
add_compile_options(-Winline) add_compile_options(-Winline)
# allow customization
add_sub_list_dirs(PICO_SDK_POST_LIST_DIRS)
if (PICO_SDK_TOP_LEVEL_PROJECT AND NOT DEFINED PICO_SDK_TESTS_ENABLED) if (PICO_SDK_TOP_LEVEL_PROJECT AND NOT DEFINED PICO_SDK_TESTS_ENABLED)
set(PICO_SDK_TESTS_ENABLED 1) set(PICO_SDK_TESTS_ENABLED 1)
endif() endif()
if (PICO_SDK_TESTS_ENABLED) if (PICO_SDK_TESTS_ENABLED)
add_subdirectory(test) add_subdirectory(test)
endif () endif ()
set(PICO_SDK_TESTS_ENABLED "${PICO_SDK_TESTS_ENABLED}" CACHE INTERNAL "Enable build of SDK tests")
# allow customization set(PICO_SDK_TESTS_ENABLED "${PICO_SDK_TESTS_ENABLED}" CACHE INTERNAL "Enable build of SDK tests")
add_sub_list_dirs(PICO_SDK_POST_LIST_DIRS)
# add docs at the end, as we gather documentation dirs as we go # add docs at the end, as we gather documentation dirs as we go
add_subdirectory(docs) add_subdirectory(docs)