2020-04-07 16:35:02 +07:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
2021-01-23 18:09:57 +07:00
|
|
|
# use directory name for project id
|
|
|
|
get_filename_component(PROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
|
|
|
|
2020-04-07 16:35:02 +07:00
|
|
|
# TOP is absolute path to root directory of TinyUSB git repo
|
|
|
|
set(TOP "../../..")
|
|
|
|
get_filename_component(TOP "${TOP}" REALPATH)
|
|
|
|
|
2021-01-23 18:09:57 +07:00
|
|
|
# Check for -DFAMILY=
|
|
|
|
if(NOT DEFINED FAMILY)
|
|
|
|
message(FATAL_ERROR "Invalid FAMILY specified")
|
|
|
|
endif()
|
2020-04-09 11:19:08 +07:00
|
|
|
|
2021-01-23 18:09:57 +07:00
|
|
|
include(${TOP}/hw/bsp/${FAMILY}/family.cmake)
|
|
|
|
project(${PROJECT})
|
2020-04-07 16:35:02 +07:00
|
|
|
|
|
|
|
project(hid_composite_freertos)
|