Skip to content

Commit 1d9269f

Browse files
committed
examples-desktop cleanup
1 parent 473111d commit 1d9269f

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

examples/examples-desktop/generator/CMakeLists.txt

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,14 @@ set (DCMAKE_CXX_FLAGS "-Werror")
88
include(FetchContent)
99
option(BUILD_SHARED_LIBS "Build using shared libraries" OFF)
1010

11-
# # Build with Portaudio
12-
# FetchContent_Declare(portaudio GIT_REPOSITORY "https://github.com/PortAudio/portaudio.git" GIT_TAG master )
13-
# FetchContent_GetProperties(portaudio)
14-
# if(NOT portaudio_POPULATED)
15-
# FetchContent_Populate(portaudio)
16-
# add_subdirectory(${portaudio_SOURCE_DIR})
17-
# endif()
18-
19-
# # Build with Linux Arduino Emulator
20-
# FetchContent_Declare(arduino_emulator GIT_REPOSITORY "https://github.com/pschatzmann/Arduino-Emulator.git" GIT_TAG main )
21-
# FetchContent_GetProperties(arduino_emulator)
22-
# if(NOT arduino_emulator_POPULATED)
23-
# FetchContent_Populate(arduino_emulator)
24-
# add_subdirectory(${arduino_emulator_SOURCE_DIR})
25-
# endif()
26-
2711
# Build with arduino-audio-tools
2812
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
2913
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../.. ${CMAKE_CURRENT_BINARY_DIR}/arduino-audio-tools )
3014
endif()
3115

3216
# build sketch as executable
33-
add_executable (generator generator.cpp)
17+
set_source_files_properties(generator.ino PROPERTIES LANGUAGE CXX)
18+
add_executable (generator generator.ino)
3419

3520
# set preprocessor defines
3621
target_compile_definitions(arduino_emulator PUBLIC -DDEFINE_MAIN)

examples/examples-desktop/generator/generator.cpp

Lines changed: 0 additions & 6 deletions
This file was deleted.

examples/examples-desktop/mp3/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ if(NOT arduino_helix_POPULATED)
2121
endif()
2222

2323
# build sketch as executable
24-
add_executable (mp3_dt mp3.cpp)
24+
set_source_files_properties(mp3.ino PROPERTIES LANGUAGE CXX)
25+
add_executable (mp3_dt mp3.ino)
2526

2627
# set preprocessor defines
2728
target_compile_definitions(arduino_emulator PUBLIC -DDEFINE_MAIN)

0 commit comments

Comments
 (0)