2019-06-02 03:33:40 +08:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
2021-09-09 05:54:20 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2019-02-03 07:02:01 +08:00
|
|
|
|
|
|
|
if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
|
|
|
|
message(FATAL_ERROR
|
|
|
|
" In-source builds are not supported.\n"
|
|
|
|
" Please remove CMakeCache.txt and the CMakeFiles directory.\n"
|
|
|
|
" Then specify a build directory. Example: cmake -Bbuild ..."
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
project(SOF_TOOLS C)
|
|
|
|
|
2020-09-11 08:10:47 +08:00
|
|
|
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
|
|
|
message(STATUS "No CMAKE_BUILD_TYPE, defaulting to Debug")
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build Type" FORCE)
|
|
|
|
endif()
|
|
|
|
|
2019-02-03 07:02:01 +08:00
|
|
|
set(SOF_ROOT_SOURCE_DIRECTORY "${PROJECT_SOURCE_DIR}/..")
|
2019-02-03 07:03:40 +08:00
|
|
|
|
2021-05-19 06:11:36 +08:00
|
|
|
# Most (too) verbose, keep this one first (assuming -j1)
|
|
|
|
add_subdirectory(topology)
|
|
|
|
# Includes test/topology/
|
|
|
|
add_subdirectory(test)
|
|
|
|
|
2020-03-10 22:18:03 +08:00
|
|
|
add_subdirectory(probes)
|
2019-02-03 07:03:40 +08:00
|
|
|
add_subdirectory(logger)
|
2019-06-03 22:44:28 +08:00
|
|
|
add_subdirectory(ctl)
|