You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
3 years ago
|
cmake_minimum_required(VERSION 3.5)
|
||
|
project(teensy-variable-playback)
|
||
|
if (NOT DEFINED TEENSY_VERSION)
|
||
|
set(BUILD_FOR_LINUX 1)
|
||
|
add_definitions(-DBUILD_FOR_LINUX)
|
||
|
set(CMAKE_BUILD_TYPE Debug)
|
||
|
endif()
|
||
|
|
||
|
if (NOT DEFINED BUILD_FOR_LINUX)
|
||
|
import_arduino_library(cores ${COREPATH} avr debug util)
|
||
|
import_arduino_library(SPI ${DEPSPATH}/SPI)
|
||
|
import_arduino_library(SdFat ${DEPSPATH}/SdFat/src common DigitalIO ExFatLib FatLib FsLib iostream SdCard SpiDriver)
|
||
|
import_arduino_library(SD ${DEPSPATH}/SD/src)
|
||
|
import_arduino_library(SerialFlash ${DEPSPATH}/SerialFlash util)
|
||
|
import_arduino_library(Wire ${DEPSPATH}/Wire utility)
|
||
|
import_arduino_library(arm_math ${DEPSPATH}/arm_math/src)
|
||
|
import_arduino_library(Audio ${DEPSPATH}/Audio utility)
|
||
2 years ago
|
import_arduino_library(LittleFS ${DEPSPATH}/LittleFS/src littlefs)
|
||
3 years ago
|
add_subdirectory(src)
|
||
|
add_subdirectory(examples)
|
||
|
else()
|
||
|
add_subdirectory(src)
|
||
|
add_subdirectory(test)
|
||
2 years ago
|
#add_subdirectory(extras/soundio/playqueue)
|
||
3 years ago
|
add_subdirectory(extras/soundio/save_raw)
|
||
|
add_subdirectory(extras/soundio/save_raw_sd)
|
||
|
add_subdirectory(extras/soundio/save_wav)
|
||
|
add_subdirectory(extras/soundio/sd_play_all)
|
||
|
add_subdirectory(extras/linux/array)
|
||
|
add_subdirectory(extras/linux/sd_raw)
|
||
|
endif()
|