espressif_tinyusb/examples/device/hid_composite_freertos/CMakeLists.txt

18 lines
508 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.5)
# use BOARD-Directory name for project id
2021-01-23 12:09:57 +01:00
get_filename_component(PROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME)
set(PROJECT ${BOARD}-${PROJECT})
2021-01-23 12:09:57 +01:00
# TOP is absolute path to root directory of TinyUSB git repo
set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH)
2021-01-23 12:09:57 +01:00
# Check for -DFAMILY=
2021-04-17 20:50:16 +02:00
if(FAMILY MATCHES "^esp32s[2-3]")
include(${TOP}/hw/bsp/${FAMILY}/family.cmake)
project(${PROJECT})
else()
message(FATAL_ERROR "Invalid FAMILY specified: ${FAMILY}")
2021-01-23 12:09:57 +01:00
endif()