espressif_tinyusb/examples/device/cdc_msc_freertos/CMakeLists.txt

23 lines
713 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.5)
2021-06-12 18:02:41 +02:00
# TOP is absolute path to root directory of TinyUSB git repo
2022-12-04 07:58:47 +01:00
# needed for esp32sx build. TODO could be removed later on
2021-06-12 18:02:41 +02:00
set(TOP "../../..")
get_filename_component(TOP "${TOP}" REALPATH)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake)
2021-01-23 12:09:57 +01:00
# gets PROJECT name for the example (e.g. <BOARD>-<DIR_NAME>)
family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR})
project(${PROJECT})
2021-04-19 08:30:04 +02:00
# Checks this example is valid for the family and initializes the project
family_initialize_project(${PROJECT} ${CMAKE_CURRENT_LIST_DIR})
# Check for -DFAMILY=
if(FAMILY MATCHES "^esp32s[2-3]")
else()
message(FATAL_ERROR "Invalid FAMILY specified: ${FAMILY}")
2021-01-23 12:09:57 +01:00
endif()