• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2021 hpmicro
2# SPDX-License-Identifier: BSD-3-Clause
3
4string(TOUPPER ${CONFIG_TOUCH} CONFIG_TOUCH_UPPER)
5string(TOLOWER ${CONFIG_TOUCH} CONFIG_TOUCH_LOWER)
6if((NOT ${CONFIG_TOUCH_LOWER} STREQUAL "ft5406") AND (NOT ${CONFIG_TOUCH_LOWER} STREQUAL "gt911"))
7message(FATAL_ERROR "${CONFIG_TOUCH} is not supported, only \"gt911\" or \"ft5406\" is supported")
8else()
9sdk_compile_definitions(-DCONFIG_TOUCH_${CONFIG_TOUCH_UPPER}=1)
10sdk_inc(.)
11add_subdirectory(${CONFIG_TOUCH_LOWER})
12endif()
13
14