Nuvoton
/
NuMaker-mbed-SD-FileSystem-example
NuMaker SD-File-System with SD mode
Revision 31:a31df25bd1e5, committed 20 months ago
- Comitter:
- ccli8
- Date:
- Wed Mar 29 11:56:02 2023 +0800
- Parent:
- 30:e6fd7737e046
- Commit message:
- Support CMake build
Changed in this revision
CMakeLists.txt | Show annotated file Show diff for this revision Revisions of this file |
NuMaker-mbed-SD-driver.lib | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CMakeLists.txt Wed Mar 29 11:56:02 2023 +0800 @@ -0,0 +1,39 @@ +# Copyright (c) 2020 ARM Limited. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 + +cmake_minimum_required(VERSION 3.19.0 FATAL_ERROR) + +set(MBED_PATH ${CMAKE_CURRENT_SOURCE_DIR}/mbed-os CACHE INTERNAL "") +set(MBED_CONFIG_PATH ${CMAKE_CURRENT_BINARY_DIR} CACHE INTERNAL "") +set(APP_TARGET NuMaker-mbed-SD-FileSystem-example) + +include(${MBED_PATH}/tools/cmake/app.cmake) + +project(${APP_TARGET}) + +add_subdirectory(${MBED_PATH}) +add_subdirectory(NuMaker-mbed-SD-driver) + +add_executable(${APP_TARGET}) + +mbed_configure_app_target(${APP_TARGET}) + +target_sources(${APP_TARGET} + PRIVATE + main.cpp +) + +target_link_libraries(${APP_TARGET} + PRIVATE + mbed-os + mbed-events + mbed-storage + nusd +) + +mbed_set_post_build(${APP_TARGET}) + +option(VERBOSE_BUILD "Have a verbose build process") +if(VERBOSE_BUILD) + set(CMAKE_VERBOSE_MAKEFILE ON) +endif()
--- a/NuMaker-mbed-SD-driver.lib Wed Mar 01 03:43:02 2023 +0000 +++ b/NuMaker-mbed-SD-driver.lib Wed Mar 29 11:56:02 2023 +0800 @@ -1,1 +1,1 @@ -https://github.com/OpenNuvoton/NuMaker-mbed-SD-driver/#14c1976088b84b9dab92125325a26c4cf9de345b +https://github.com/OpenNuvoton/NuMaker-mbed-SD-driver/#5d7d2fc7b0f4e81f157c68a63336030b3462025a