diff options
| author | hathach <[email protected]> | 2021-01-26 12:46:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-01-26 12:46:24 +0700 |
| commit | 4a0f5cbd6332a9ae76dc2eea293024fab2c81885 (patch) | |
| tree | 3df25ecc15aba93ff5232b3e25a649411466bddd /examples/device/cdc_msc_freertos | |
| parent | 0e585570a38d4bd04bc907386ef7012f6e9222a9 (diff) | |
change output filename to BOARD-Directory
Diffstat (limited to 'examples/device/cdc_msc_freertos')
| -rw-r--r-- | examples/device/cdc_msc_freertos/CMakeLists.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/device/cdc_msc_freertos/CMakeLists.txt b/examples/device/cdc_msc_freertos/CMakeLists.txt index 2e55d8c47..dabb4bc80 100644 --- a/examples/device/cdc_msc_freertos/CMakeLists.txt +++ b/examples/device/cdc_msc_freertos/CMakeLists.txt @@ -1,18 +1,18 @@ cmake_minimum_required(VERSION 3.5) -# use directory name for project id +# use BOARD-Directory name for project id get_filename_component(PROJECT ${CMAKE_CURRENT_SOURCE_DIR} NAME) +set(PROJECT ${BOARD}-${PROJECT}) # TOP is absolute path to root directory of TinyUSB git repo set(TOP "../../..") get_filename_component(TOP "${TOP}" REALPATH) # Check for -DFAMILY= -if(NOT DEFINED FAMILY) +if(FAMILY STREQUAL "esp32s2") + include(${TOP}/hw/bsp/${FAMILY}/family.cmake) + project(${PROJECT}) + +else() message(FATAL_ERROR "Invalid FAMILY specified") endif() - -include(${TOP}/hw/bsp/${FAMILY}/family.cmake) -project(${PROJECT}) - -project(cdc_msc_freertos) |
