Skip to content

Commit c18777b

Browse files
committed
cmake
1 parent a5d8368 commit c18777b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/" # source directory
2121
if (BUILD_TESTS)
2222
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tests)
2323
else()
24-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tests EXCLUDE_FROM_ALL)
24+
# add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tests EXCLUDE_FROM_ALL)
2525
endif()

examples/examples-desktop/mp3/CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,20 @@ if(NOT arduino_audio_tools_POPULATED)
3232
add_subdirectory(${arduino_audio_tools_SOURCE_DIR})
3333
endif()
3434

35+
# Build with libhelix
36+
FetchContent_Declare(arduino_helix GIT_REPOSITORY "https://github.com/pschatzmann/arduino-libhelix.git" GIT_TAG main )
37+
FetchContent_GetProperties(arduino_helix)
38+
if(NOT arduino_helix_POPULATED)
39+
FetchContent_Populate(arduino_helix)
40+
add_subdirectory(${arduino_helix_SOURCE_DIR})
41+
endif()
3542

3643
# build sketch as executable
3744
add_executable (mp3_dt mp3.cpp)
3845

3946
# set preprocessor defines
4047
target_compile_definitions(arduino_emulator PUBLIC -DDEFINE_MAIN)
41-
#target_compile_definitions(arduino_helix PUBLIC -DARDUINO)
48+
target_compile_definitions(arduino_helix PUBLIC -DARDUINO)
4249
target_compile_definitions(mp3_dt PUBLIC -DARDUINO -DIS_DESKTOP -DEXIT_ON_STOP)
4350

4451
# OS/X might need this setting for core audio

0 commit comments

Comments
 (0)