summaryrefslogtreecommitdiff
path: root/zephyr/test/skyrim/CMakeLists.txt
blob: 25eb4a333a6d5befe00ce2ee6fe824066cc46fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

cmake_minimum_required(VERSION 3.13.1)
find_package(Zephyr REQUIRED HINTS "${ZEPHYR_BASE}")
project(skyrim)

zephyr_include_directories("${PLATFORM_EC_PROGRAM_DIR}/skyrim/include")

add_subdirectory(${PLATFORM_EC}/zephyr/test/test_utils test_utils)

add_subdirectory(tests/common)
add_subdirectory_ifdef(CONFIG_TEST_BOARD_BASEBOARD tests/baseboard)
add_subdirectory_ifdef(CONFIG_TEST_BOARD_FROSTFLOW tests/frostflow)
add_subdirectory_ifdef(CONFIG_TEST_BOARD_WINTERHOLD tests/winterhold)

target_sources(app PRIVATE src/${CONFIG_TEST_BOARD_NAME}/common.c)