Skip to content

Commit 28e1fab

Browse files
committed
cmake codec cleanup
1 parent b9602bc commit 28e1fab

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

tests/codec/CMakeLists.txt

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,11 @@ endif()
1212

1313
include(FetchContent)
1414

15-
# Build with Portaudio
16-
FetchContent_Declare(portaudio GIT_REPOSITORY "https://github.com/PortAudio/portaudio.git" GIT_TAG v19.7.0 )
17-
FetchContent_GetProperties(portaudio)
18-
if(NOT portaudio_POPULATED)
19-
FetchContent_Populate(portaudio)
20-
add_subdirectory(${portaudio_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/portaudio)
15+
# Build with arduino-audio-tools
16+
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
17+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../.. ${CMAKE_CURRENT_BINARY_DIR}/arduino-audio-tools )
2118
endif()
2219

23-
# Build with Linux Arduino Emulator
24-
FetchContent_Declare(arduino_emulator GIT_REPOSITORY "https://github.com/pschatzmann/Arduino-Emulator.git" GIT_TAG main )
25-
FetchContent_GetProperties(arduino_emulator)
26-
if(NOT arduino_emulator_POPULATED)
27-
FetchContent_Populate(arduino_emulator)
28-
add_subdirectory(${arduino_emulator_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/emulator)
29-
endif()
3020

3121
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/aac-fdk ${CMAKE_CURRENT_BINARY_DIR}/aac-fdk)
3222
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/aac-fdk-encode ${CMAKE_CURRENT_BINARY_DIR}/aac-fdk-encode)

0 commit comments

Comments
 (0)