espressif_tinyusb/examples/device/cdc_msc_freertos/CMakeLists.txt

19 lines
464 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.5)
2021-01-23 12:09:57 +01:00
# use directory name for project id
get_filename_component(PROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME)
# 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=
if(NOT DEFINED FAMILY)
message(FATAL_ERROR "Invalid FAMILY specified")
endif()
2021-01-23 12:09:57 +01:00
include(${TOP}/hw/bsp/${FAMILY}/family.cmake)
project(${PROJECT})
2020-04-01 17:55:26 +02:00
project(cdc_msc_freertos)