1# SPDX-License-Identifier: BSD-3-Clause 2 3cmake_minimum_required(VERSION 3.13) 4 5if("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") 6 message(FATAL_ERROR 7 " In-source builds are not supported.\n" 8 " Please remove CMakeCache.txt and the CMakeFiles directory.\n" 9 " Then specify a build directory. Example: cmake -Bbuild ..." 10 ) 11endif() 12 13project(SOF_TOOLS C) 14 15if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) 16 message(STATUS "No CMAKE_BUILD_TYPE, defaulting to Debug") 17 set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build Type" FORCE) 18endif() 19 20set(SOF_ROOT_SOURCE_DIRECTORY "${PROJECT_SOURCE_DIR}/..") 21 22# Most (too) verbose, keep this one first (assuming -j1) 23add_subdirectory(topology) 24# Includes test/topology/ 25add_subdirectory(test) 26 27add_subdirectory(probes) 28add_subdirectory(logger) 29add_subdirectory(ctl) 30