23 lines
662 B
CMake
23 lines
662 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
# set the project name
|
|
project(mp3-metadata)
|
|
set (CMAKE_CXX_STANDARD 11)
|
|
set (DCMAKE_CXX_FLAGS "-Werror")
|
|
# add_compile_options(-Wstack-usage=1024)
|
|
|
|
# Build with arduino-audio-tools
|
|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../.. ${CMAKE_CURRENT_BINARY_DIR}/arduino-audio-tools )
|
|
endif()
|
|
|
|
# build sketch as executable
|
|
add_executable (mp3-metadata mp3-metadata.cpp)
|
|
|
|
# set preprocessor defines
|
|
target_compile_definitions(mp3-metadata PUBLIC -DIS_DESKTOP)
|
|
|
|
# specify libraries
|
|
target_link_libraries(mp3-metadata portaudio arduino_emulator arduino-audio-tools)
|
|
|