Skip to content

Commit e30ca22

Browse files
committed
cmake
1 parent 467cf09 commit e30ca22

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

examples/examples-desktop/generator/CMakeLists.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ 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()
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()
2626

2727
# Build with arduino-audio-tools
2828
FetchContent_Declare(arduino_audio_tools GIT_REPOSITORY "https://github.com/pschatzmann/arduino-audio-tools.git" GIT_TAG main )
@@ -43,5 +43,5 @@ target_compile_definitions(generator PUBLIC -DARDUINO -DIS_DESKTOP -DEXIT_ON_STO
4343
#target_compile_definitions(portaudio PUBLIC -DPA_USE_COREAUDIO=1)
4444

4545
# specify libraries
46-
target_link_libraries(generator portaudio arduino_emulator arduino-audio-tools)
46+
target_link_libraries(generator portaudio_static arduino_emulator arduino-audio-tools)
4747

examples/examples-desktop/mp3/CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ 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()
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()
2626

2727
# Build with arduino-audio-tools
2828
FetchContent_Declare(arduino_audio_tools GIT_REPOSITORY "https://github.com/pschatzmann/arduino-audio-tools.git" GIT_TAG main )

0 commit comments

Comments
 (0)