cmake: fix tools build with submodules

Tool build will fail without git submodule init and update.
Add the submodlue support also in tool CMake file.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
This commit is contained in:
Pan Xiuli 2020-05-15 17:15:26 +08:00 committed by Liam Girdwood
parent 4ce5ed477a
commit a2de860f42
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@ project(SOF_TOOLS C)
set(SOF_ROOT_SOURCE_DIRECTORY "${PROJECT_SOURCE_DIR}/..") set(SOF_ROOT_SOURCE_DIRECTORY "${PROJECT_SOURCE_DIR}/..")
# checkout submodules
include(${SOF_ROOT_SOURCE_DIRECTORY}/scripts/cmake/git-submodules.cmake)
add_subdirectory(probes) add_subdirectory(probes)
add_subdirectory(logger) add_subdirectory(logger)
add_subdirectory(ctl) add_subdirectory(ctl)