Skip to content

Commit 667e7ac

Browse files
committed
cmake
1 parent 67714f3 commit 667e7ac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,12 @@ if (BUILD_TESTS)
2222
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tests)
2323
else()
2424
# add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tests EXCLUDE_FROM_ALL)
25+
# Build with Portaudio
26+
FetchContent_Declare(portaudio GIT_REPOSITORY "https://github.com/PortAudio/portaudio.git" GIT_TAG master )
27+
FetchContent_GetProperties(portaudio)
28+
if(NOT portaudio_POPULATED)
29+
FetchContent_Populate(portaudio)
30+
add_subdirectory(${portaudio_SOURCE_DIR})
31+
endif()
32+
2533
endif()

0 commit comments

Comments
 (0)