sipeed / TinyMaix

TinyMaix is a tiny inference library for microcontrollers (TinyML).
Apache License 2.0
879 stars 142 forks source link

Separate `__attribute__((weak))` from source, standardize CMake #11

Closed YuzukiTsuru closed 1 year ago

YuzukiTsuru commented 1 year ago
  1. For some platforms, using __attribute__((weak)) will result in failure to link, here is managed by tm_port

    #define TM_WEAK         __attribute__((weak))
  2. Standardize CMake

    • add cmake_minimum_required(VERSION 3.1)
    • use project() instead of set(TARGET_NAME "")