Skip to content

Commit

Permalink
examples-desktop cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Aug 31, 2022
1 parent 473111d commit 1d9269f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
19 changes: 2 additions & 17 deletions examples/examples-desktop/generator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,14 @@ set (DCMAKE_CXX_FLAGS "-Werror")
include(FetchContent)
option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)

# # Build with Portaudio
# FetchContent_Declare(portaudio GIT_REPOSITORY "https://github.com/PortAudio/portaudio.git" GIT_TAG master )
# FetchContent_GetProperties(portaudio)
# if(NOT portaudio_POPULATED)
# FetchContent_Populate(portaudio)
# add_subdirectory(${portaudio_SOURCE_DIR})
# endif()

# # Build with Linux Arduino Emulator
# FetchContent_Declare(arduino_emulator GIT_REPOSITORY "https://github.com/pschatzmann/Arduino-Emulator.git" GIT_TAG main )
# FetchContent_GetProperties(arduino_emulator)
# if(NOT arduino_emulator_POPULATED)
# FetchContent_Populate(arduino_emulator)
# add_subdirectory(${arduino_emulator_SOURCE_DIR})
# endif()

# 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 (generator generator.cpp)
set_source_files_properties(generator.ino PROPERTIES LANGUAGE CXX)
add_executable (generator generator.ino)

# set preprocessor defines
target_compile_definitions(arduino_emulator PUBLIC -DDEFINE_MAIN)
Expand Down
6 changes: 0 additions & 6 deletions examples/examples-desktop/generator/generator.cpp

This file was deleted.

3 changes: 2 additions & 1 deletion examples/examples-desktop/mp3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ if(NOT arduino_helix_POPULATED)
endif()

# build sketch as executable
add_executable (mp3_dt mp3.cpp)
set_source_files_properties(mp3.ino PROPERTIES LANGUAGE CXX)
add_executable (mp3_dt mp3.ino)

# set preprocessor defines
target_compile_definitions(arduino_emulator PUBLIC -DDEFINE_MAIN)
Expand Down
File renamed without changes.

0 comments on commit 1d9269f

Please sign in to comment.